Hey,
I am currently trying to create a rule based on magnetic sensor triggering.
My issue is that my rule never triggers - I might have a little issue while writing my things and my items, but I can not find it (and I followed the examples in the documentation).
Here is my item:
Contact UsaBaie_Status { channel="mihome:sensor_magnet:<GatewayId>:<ItemId>:isOpen" }
Here are my xiaomi things:
Bridge mihome:bridge:<GatewayId> "Xiaomi Gateway" [ serialNumber="GatewayId", ipAddress="192.168.1.100", port=9898, key="developerKey", pollingInterval=6000 ] {
Things:
gateway GatewayId[itemId="GatewayId"]
usa_baie ItemID[itemId="ItemID"]
}
And here is the rule
rule "Status usa baie"
when
Item UsaBaie_Status changed
then
logInfo("got here");
end
I tried at the rule Channel "mihome:sensor_magnet:<GatewayId>:<ItemId>:isOpen" triggered
but it does not work too.
Also, was looking through the log and I can not find any status changed updates there. When the thing was found by PaperUI I could see status changing from OPEN to CLOSED