Versions Compared

Key

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

...

Code Block
       {
            "accessory": "mqttthing",
            "type": "switch",
            "name": "sonoff-occupancy",
            "url": "http://192.168.1.50:1883",
            "topics":
            {
                "getOccupancyDetectedgetOn": {
                     "topic": "tele/zigbee/SENSOR",
                     "apply": "return JSON.parse(message).ZbReceived['0x0321'].Power;"

                 }
            },
            "integerValue": "true"
        },

...