Dear community,
recently installed Zigbee Phoscon Gateway (raspbee) and connected Xiaomi sensors (temperature/humidity and motion sensors), integrated them via deCONZ binding into openhab 2 (running 2.5.10 on a PI3). So far so good. Everything works quite will but i cannot trigger rules based on motion detected. Tried several option to get them fired but nothing helped. See what I have done:
Thing:
presencesensor presence-no1 "Arbeitszimmer Bewegung" [ id="00:15:8d:00:02:24:d0:d8-01-0406" ]
Item:
Switch Presence_No1 "Bewegung Arbeitszimmer [%s]" <motion> { channel="deconz:presencesensor:homeserver:presence-no1:presence" }
Rules:
rule "Trigger Presence 1a"
when
Channel "deconz:presencesensor:homeserver:presence-no1:presence" triggered
then
logInfo("Rule Presence 1a triggered")
end
rule "Trigger Presence 1b"
when
Item Presence_No1 changed to ON
then
logInfo("Rule Presence 1b triggered")
end
rule "Trigger Presence 1c"
when
Item Presence_No1 received update ON
then
logInfo("Rule Presence 1c triggered")
end
rule "Trigger Presence 1d"
when
Item Presence_No1 received command ON
then
logInfo("Rule Presence 1d triggered")
end
None of the rules is about to fire. Also when checking the logfile I just can see that it receives command OFF:
2020-11-18 21:54:14.195 [ome.event.ItemCommandEvent] - Item 'Presence_No1' received command OFF
Checking it in Phoscon App I can see the the motion is detected. But it seems that it never receives command ON.
What is wrong here?
Rgds
Peter