Read the statement by Michael Teeuw here.
MMM-IOBROKER
-
Hi guys,
how can i show the status of a light - On/Off
In the broker i used the Power Infos with true and false.Here my script.
{ name: 'Schwarzes_Haus', deviceStates: [ { id: 'sonoff.0.Schwarze_Haus.POWER', icon: 'fa-solid fa-toggle-on', suffix: 'Ligth is on' }, { id: 'sonoff.0.Schwarze_Haus.POWER', icon: 'fa-solid fa-toogle-off', suffix: 'Light is off' } ] },How can I distinguish the status - On and OFF.
Thank you.
-
@MichaelS the doc says
Go to the ioBroker admin, find the state ID.I think what you have is the entity id…
-
i Think ist is.

-
i Think i have des correct State ID

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login