I have been trying for over a week to setup a binary sensor from a value in an MQTT message. The full message is
The MQTT message exists in tele/zigbee/8E43/SENSOR
{"0x8E43":{"Device":"0x8E43","0500<00":"000000000000","ZoneStatusChange":0,"Endpoint":1,"LinkQuality":86}}
The sensor is the Zigbee SNZB-03 and the “ZoneStatusChange” is the value I need
I have added an entry in binary_sensors.yaml;
- platform: mqtt
name: "Kitchen_motion"
state_topic: tele/zigbee/8E43/SENSOR
value_template: '{{ value_json.0x8E43.ZoneStatusChange }}'
payload_on: "1"
payload_off: "0"
The sensor is setup but remains permanently in the off state.
I am quite new to programming HA so any suggestions would be great.
Thanks