mirror of
https://github.com/KinDR007/VictronMPPT-ESPHOME.git
synced 2024-10-21 07:09:27 +00:00
f
This commit is contained in:
parent
11409507b3
commit
13e90bc9f7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user