fix HA opener state mapping

This commit is contained in:
technyon
2022-08-21 21:25:14 +02:00
parent fe5ebb761d
commit 313b679bf6
4 changed files with 2 additions and 3 deletions

View File

@@ -130,9 +130,9 @@ void NetworkOpener::publishBinaryState(NukiOpener::LockState lockState)
switch(lockState)
{
case NukiOpener::LockState::Locked:
case NukiOpener::LockState::RTOactive:
publishString(mqtt_topic_lock_binary_state, "locked");
break;
case NukiOpener::LockState::RTOactive:
case NukiOpener::LockState::Open:
case NukiOpener::LockState::Opening:
publishString(mqtt_topic_lock_binary_state, "unlocked");