- Platform information:
- Hardware: Celeron N3160, 4G RAM, 120G SSD
- OS: CentOS 7.7
- Java Runtime Environment: 1.8.0.232
- openHAB version: 2.5.0~RC1-1
- Issue of the topic: Thing updates, setting it’s status to null when it should be 0
I’ve got a garage door sensor that lately gets updated daily (or close to it). When that happens it’s status goes to NULL and then shortly after to 0. When it’s 0 it means the garage door is closed and that triggers a rule. All this happens while the garage door doesn’t move at all, actually it’s been happening about 3AM each day.
2019-12-27 03:10:19.493 [me.event.ThingUpdatedEvent] - Thing 'zwave:device:2eebb52b:node31' has been updated.
2019-12-27 03:22:52.316 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node31_barrier_state changed from NULL to 0
I have a rule that detects the door closing by triggering when the state changes to 0:
rule "Wife leaving the house"
when
Item zwave_device_2eebb52b_node31_barrier_state changed to 0
then
sendTelegram("telebot", "Garage door closed, image to follow.")
sendTelegramPhoto("telebot", "http://cam03/snapshot/view4.jpg", "Garage cam-sent from openHAB")
sendTelegramPhoto("telebot", "http://cam04/snapshot/view0.jpg", "FYard cam-sent from openHAB")
end
Is there a better way to detect the door closing or ignoring the thing update status? It’s not a big deal just a little annoying to see the notifications.
The normal sequence of state changes when the garage door opens and then closes is:
2019-12-26 04:54:57.888 [ome.event.ItemCommandEvent] - Item 'zwave_device_2eebb52b_node30_barrier_state' received command 255
2019-12-26 04:54:57.895 [nt.ItemStatePredictedEvent] - zwave_device_2eebb52b_node30_barrier_state predicted to become 255
2019-12-26 04:54:57.906 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 0 to 255
2019-12-26 04:55:03.828 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 255 to 254
2019-12-26 04:55:09.800 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 254 to 255
2019-12-26 04:55:54.608 [ome.event.ItemCommandEvent] - Item 'zwave_device_2eebb52b_node30_barrier_state' received command 0
2019-12-26 04:55:54.610 [nt.ItemStatePredictedEvent] - zwave_device_2eebb52b_node30_barrier_state predicted to become 0
2019-12-26 04:55:54.655 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 255 to 0
2019-12-26 04:56:12.516 [ome.event.ItemCommandEvent] - Item 'zwave_device_2eebb52b_node30_barrier_state' received command 0
2019-12-26 04:56:12.536 [nt.ItemStatePredictedEvent] - zwave_device_2eebb52b_node30_barrier_state predicted to become 0
2019-12-26 04:56:19.410 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 0 to 252
2019-12-26 04:56:34.731 [vent.ItemStateChangedEvent] - zwave_device_2eebb52b_node30_barrier_state changed from 252 to 0
That’s my garage door that’s triggered open and closed with a zwave keyfob, my wife does not use a keyfob, just the normal clicker that came with the garage door opener.