I recently started OpenHab and went through the standard documentation. During these steps, Mobile presence is mentioned as an example. In the end I also built this and get the status in the sitemap. Now I have the status “Mobile at home” with a switch to YES, and below this item, I have the Item “Last seen”.
Now I would like to see only “Mobile at home”, But if this status changes to NO, then I would like to show “Last seen” instead of “Mobile at home”. I can’t get it done. I played with rules settings, but it didn’t work out. I can play a sound if the status changed, but I can’t manage to change the sitemap because of the status of my phone.
Basically the idea is: (No official coding languages
If status == ON {
Show on Sitemap: "Mobile at home"
else {
Show on Sitemap "Last Seen"
} endif
I guess this is pretty simpleissue, but Im not sure where to start, so I hope someone can point me out in the right direction.
Unfortunately I was not able to manage the view based on visibility=[item_name operator value, item_name operator value, … ] , I am able to change status based on this rule, but I would like to have the entire element hidden based on a status.
I hope someone can point me into the right direction of have a working example.