|
Post by LaSpencia Brown on Oct 9, 2016 2:55:48 GMT
I cannot get the garage status to update. It doesn't change status at all.
.items Number itm_garage_dist "Garage Dist [%.1f Inch]" (ALL) {mqtt="<[mymosquitto:4032:state:default]"} Contact itm_my_gar_door "Garage Door Status [MAP(en.map):%s]" <garage> (ALL)
.rules rule "Convert Door" when
Item itm_garage_dist received update
then if(itm_garage_dist.state < 15)
{
itm_my_gar_door.state = OPEN
}
else
{
itm_my_gar_door.state = CLOSED
}
end
.sitemap
sitemap demo label="House" Frame label="Garage" { Text item=itm_my_gar_door label="Garage Door Status [%s]" }
What am I doing wrong?
|
|
|
Post by greginkansas on Oct 9, 2016 11:53:03 GMT
Use a MQTT client to see if the msg is right and getting through, check for this 4032/#
|
|