Fixed CCL and DCL init + added more yambms_debuglogs
This commit is contained in:
1 parent
81afb1d054
commit
b0a4c6c645
1 file changed
+9
-7
@@ -906,8 +906,8 @@ interval:
|
||||
}
|
||||
// Publish the sensor
|
||||
id(${yambms_id}_requested_charge_current).publish_state(requested_charge_current);
|
||||
if (requested_charge_current > 0) id(${yambms_id}_var_requested_ccl_init) = true;
|
||||
id(${yambms_id}_var_charge_current_step)++;
|
||||
id(${yambms_id}_var_requested_ccl_init) = true;
|
||||
}
|
||||
|
||||
// +-----------------------------------------------+
|
||||
@@ -932,8 +932,8 @@ interval:
|
||||
}
|
||||
// Publish the sensor
|
||||
id(${yambms_id}_requested_discharge_current).publish_state(requested_discharge_current);
|
||||
if (requested_discharge_current > 0) id(${yambms_id}_var_requested_dcl_init) = true;
|
||||
id(${yambms_id}_var_discharge_current_step)++;
|
||||
id(${yambms_id}_var_requested_dcl_init) = true;
|
||||
}
|
||||
|
||||
// +-----------------------------------------------+
|
||||
@@ -952,7 +952,7 @@ interval:
|
||||
{
|
||||
id(${yambms_id}_var_initialized) = true;
|
||||
}
|
||||
else id(${yambms_id}_var_initialized) = false;
|
||||
else id(${yambms_id}_var_initialized) = false; // Communication with the inverter stops.
|
||||
}
|
||||
|
||||
// +-----------------------------------------------+
|
||||
@@ -976,10 +976,12 @@ interval:
|
||||
else ESP_LOGD("yambms_debug", "Discharging instruction : false");
|
||||
}
|
||||
if (id(${yambms_id}_requested_charge_voltage).has_state()) ESP_LOGD("yambms_debug", "Requested CVL : %f V", id(${yambms_id}_requested_charge_voltage).state);
|
||||
if (id(${yambms_id}_requested_charge_voltage).has_state()) ESP_LOGD("yambms_debug", "Requested DVL : %f V", id(${yambms_id}_requested_discharge_voltage).state);
|
||||
if (id(${yambms_id}_var_requested_ccl_init) == true) ESP_LOGD("yambms_debug", "Requested CCL : %f A", id(${yambms_id}_requested_charge_current).state);
|
||||
if (id(${yambms_id}_var_requested_dcl_init) == true) ESP_LOGD("yambms_debug", "Requested DCL : %f A", id(${yambms_id}_requested_discharge_current).state);
|
||||
|
||||
if (id(${yambms_id}_requested_discharge_voltage).has_state()) ESP_LOGD("yambms_debug", "Requested DVL : %f V", id(${yambms_id}_requested_discharge_voltage).state);
|
||||
if (id(${yambms_id}_requested_charge_current).has_state()) ESP_LOGD("yambms_debug", "Requested CCL : %f A", id(${yambms_id}_requested_charge_current).state);
|
||||
if (id(${yambms_id}_requested_discharge_current).has_state()) ESP_LOGD("yambms_debug", "Requested DCL : %f A", id(${yambms_id}_requested_discharge_current).state);
|
||||
if (id(${yambms_id}_ccl_derating_reason).has_state()) ESP_LOGD("yambms_debug", "CCL derating reason : %s", id(${yambms_id}_ccl_derating_reason).state.c_str());
|
||||
if (id(${yambms_id}_dcl_derating_reason).has_state()) ESP_LOGD("yambms_debug", "DCL derating reason : %s", id(${yambms_id}_dcl_derating_reason).state.c_str());
|
||||
|
||||
// if (id().has_state()) ESP_LOGD("yambms_debug", "Text : %f V", id().state);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user