Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
        {
            "accessory": "mqttthing",
            "type": "lightbulb",
            "name": "garage-light",
            "url": "http://192.168.1.50:1883",
            "username": "homebridge",
            "password": "pass",
            "topics": {
                "getOn": "stat/garage-light/POWER1",
                "setOn": {
                  "topic": "cmnd/garage-light/POWER2",
                  "apply": "return 'toggle';"
                }
            },
            "onValue": "ON",
            "offValue": "OFF",
            "startPub": {
                "cmnd/garage-light/POWER1": ""
            },
            "confirmationPeriodms": 1000
        },

Out of Sync

Sometimes the switch may be out of sync with what it reports to homebridge. When you click Toggle 2, the Toggle1 should reflect the current state of the light. If this is not the case, click the Toggle 1 button.

Image Added

Reference

...