Hi,
I have a zigbee door sensor which sends updates of its status every 3 hours (or immediately it the status is changed). I’ve connected OH with Z2M and I see the status change, but OH doesn’t record status update when the status is not changed. It seems the issue is between OH and Z2M, but I don’t know where and how to fix it.
If I use OH Zigbee binding then everything works correctly.
If nothing’s wrong with your installation then zigbee2mqtt should transfer all item updates to openhab.
Usually you don’t use updates within rules so much but I just tried and it works. Just create a rule that is triggered by an update event and let the rule write something to the log
Thx for all answers!
Let me clarify the situation. I have door sensor linked with switch Item and datetime item (update type) linked to switch item. Thanks this, when I have Zigbee binding I see when the switch item was updated (about every 3h, even without state change). But… when I use Zigbee2MQTT, the item is updated only when the door is opining or closing. As Larsen mentioned, it will not be big deal unless unexpected power outage In this case, after OH startup, my switch item has NULL state until someone opens/closes the door. With Zigbee binding I just have to wait up to 3h .
Yes, but on this case I will not be sure if the restored value from mapdb match the real door’s state (maybe someone had open the door during the power outage)
Then I check in a rule if the time difference between now and a member of my last_seen-group is higher than 6 hours and in that case send a message via telegram.