mirror of
https://github.com/KinDR007/VictronMPPT-ESPHOME.git
synced 2024-10-21 07:09:27 +00:00
Merge pull request #83 from syssi/improve-relay-handling
This commit is contained in:
commit
0d5dcec4e3
@ -624,7 +624,7 @@ void VictronComponent::handle_value_() {
|
||||
}
|
||||
|
||||
if (label_ == "LOAD") {
|
||||
this->publish_state_(load_state_binary_sensor_, value_ == "ON");
|
||||
this->publish_state_(load_state_binary_sensor_, value_ == "ON" || value_ == "On");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -666,7 +666,7 @@ void VictronComponent::handle_value_() {
|
||||
}
|
||||
|
||||
if (label_ == "Relay") {
|
||||
this->publish_state_(relay_state_binary_sensor_, value_ == "ON");
|
||||
this->publish_state_(relay_state_binary_sensor_, value_ == "ON" || value_ == "On");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user