Merge pull request #83 from syssi/improve-relay-handling

This commit is contained in:
Jiří Bětuňák 2022-06-15 12:11:04 +02:00 committed by GitHub
commit 0d5dcec4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}