#which part of the payload do i use in an automation

1 messages · Page 1 of 1 (latest)

white oracle
#

hey guys im a total beginner i bought a zigbee motion sensor
2024-11-20 15:24:41z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bathroom motion', payload '{"battery":100,"battery_low":false,"keep_time":60,"linkquality":180,"occupancy":true,"sensitivity":"medium","tamper":false,"voltage":2900}'
this is what im getting from it how do i triggre it on "occupancy":true

i currently have topic: zigbee2mqtt/bathroom motion
payload: "{"occupancy": true}"
but that doesnt seem to work

hallow fractal
#

That's Zigbee2MQTT, you have a binary_sensor entity you can use instead

#

If you want hard mode then you'll need #1284966664357810196 to parse the payload and pull out just the bit you want