Hey guys, I am having some trouble getting a text item to update on Sitemap. Let me explain below:
Item File:
String JMsHome "JM" <man_3> Switch JMHomekit "JM is Home" [ "Lighting" ]
Rule File
rule "Occupancy Test" when Item JMHomekit received update then switch JMHomekit.state { case ON : { postUpdate(JMsHome,"Home") } case OFF : { sendCommand(JMsHome,"Away") } } end
Sitemap:
Text item=JMsHome
HomeKit updates JMHomekit which is an ON/OFF type item and the above rule updates the JMsHome item accordingly. After activating the rule, the sitemap doesn’t display the item state. If i go into the console and use smarthomestatus JMsHome it says: Home. The logs show no errors, they verify the rule is in fact running and they show the item state being updated accordingly (home or away).
I originally just had JMHomekit and used mappings to make it say ‘Home’ or ‘Away’ on the sitemap but i didn’t like how i could click the buttons, changing the item state. This is why i chose to create the text item JMsHome to display a message i couldn’t change.
I want it to look like this but cant get the state to show on the right side where Carrie Underwood is:
Thoughts and advice is appreciated.