Versions Compared

Key

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

...

Code Block
tele/zigbee/SENSOR

{
   "ZbReceived":{
      "0x6373":{
         "Device":"0x6373",
         "0500<00":"000000010000",
         "ZoneStatusChange":0,
         "ZoneStatusChangeZone":1,
         "Occupancy":0,
         "Endpoint":1,
         "LinkQuality":136
      }
   }
}



MQTTTHING

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

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



References

ReferenceURL
Sonoff Zigbee Bridge | How to flash with Tasmota and setup in Home Assistant with ZHAhttps://www.youtube.com/watch?v=SDynPbCGvS0
Tasmota Releaseshttps://github.com/arendst/Tasmota/releases
Tasmota Zigbeehttps://tasmota.github.io/docs/Zigbee/

...