Alright, now that I’ve got your attention.
If you’re thinking about running away stop. Please.
While you’re here can you help me?
I’ve copied the code from the forums into their designated spots in openhabian yet despite this the state on the sensor isn’t updating.
//This is the items file
//Demo items
Switch DEMOSW “Demo Switch”
//Security items
Switch SecuritySystem “Security System”
Contact MKDoorSensor1 “Side Door [%s]” { mqtt="<[broker:MK-SmartHouse/security/MK-DoorSensor1:state:default]" }
sitemap home label=“MK-SmartHouse”
{
Frame label=“Demo”
{
Switch item=DEMOSW
}
Frame label=“Information”
{
Switch item=DEMOSW
}
Frame label=“Security”
{
Switch item=SecuritySystem
Text item=MKDoorSensor1
}
Frame label=“MK-Room”
{
Switch item=DEMOSW
}
Frame label=“JK-Room”
{
Switch item=DEMOSW
}
Frame label=“Master Bedroom”
{
Switch item=DEMOSW
}
Frame label=“Living Room”
{
Switch item=DEMOSW
}
Frame label=“Garage”
{
Switch item=DEMOSW
}
Frame label=“Outside”
{
Switch item=DEMOSW
}
}
//This is the rules file
//Side Door Sensor Is Open
rule “Side Door Sensor”
when
Item MKDoorSensor1 received update OPEN
then
if(SecuritySystem.state == ON)
{
sendBroadcastNotification(“SECURITY SYSTEM: SIDE DOOR OPEN”)
}
end
All I see is an open door and a small rectangle instead of “closed” or “open”
MQTTFX shows open and closed though
Summary
This text will be hidden