Get state of a switch as string for sitemap

Hi comm,

I hope this catergory is correct.
I am searching for a solution to get the state of a switch and show it as a string-value inside a sitemap.

The reason why I need this is, because I want to have a “debugging”-sitemap for some virtual Switches where I just want to check the state without the possibility to change the states.

I hope someone can help me with this :slight_smile:
Thx in advance,

Andy

What about:

Text item=NameOfYourSwitchItem
2 Likes

Exactly. I was too much inside my coder-bubble :smiley:
I was searching for string instead of text.

And when I tried it, I tried it on switches which had no state :smiley:
Sorry and thanks :+1:

1 Like