This commit is contained in:
Jiří Bětuňák 2022-01-24 19:56:50 +01:00
parent 11409507b3
commit 13e90bc9f7

View File

@ -474,15 +474,9 @@ void VictronComponent::handle_value_() {
device_type_text_sensor_->publish_state(device_type_text(value));
}
} else if (label_ == "LOAD") {
// ESP_LOGD(TAG, "received load value: '%s'", value_.c_str());
if ((load_state_text_sensor_ != nullptr) && !load_state_text_sensor_->has_state()) {
load_state_text_sensor_->publish_state(value_.c_str());
}
ESP_LOGD(TAG, "received load value: '%s'", value_.c_str());
} else if (label_ == "RELAY") {
// ESP_LOGD(TAG, "received relay value: '%s'", value_.c_str());
if ((relay_state_text_sensor_ != nullptr) && !relay_state_text_sensor_->has_state()) {
relay_state_text_sensor_->publish_state(value_.c_str());
}
ESP_LOGD(TAG, "received relay value: '%s'", value_.c_str());
}
// else if (label_ == "LOAD") {
// value = atoi(value_.c_str());