MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-IOBROKER

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 381 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MichaelS
      last edited by sdetweil

      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.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MichaelS
        last edited by

        @MichaelS the doc says

         Go to the ioBroker admin, find the state ID.
        

        I think what you have is the entity id…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MichaelS @sdetweil
          last edited by

          @sdetweil

          i Think ist is.
          b9934582-906d-4a7b-a999-1db6b556c4f8-image.png

          1 Reply Last reply Reply Quote 0
          • M Offline
            MichaelS
            last edited by

            i Think i have des correct State ID

            f24b929b-214b-4684-82c0-2f435f5402be-image.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy