Hello,
I’ve got a problem with binary sensor configuration. I’ve got Aqara door sensor working and the payload is:
payload: '{"battery":100,"voltage":3035,"linkquality":76,"contact":false}' payload: '{"battery":100,"voltage":3035,"linkquality":84,"contact":true}'
so according to the documentation something like this should work (binary_sensor):
- platform: mqtt state_topic: "zigbee2mqtt/0x00158d000274f749" name: "Hall entrance" device_class: door payload_on: true payload_off: false value_template: "{{ value_json.contact }}"
and it works fine for payload_on action - if I open the door I can see door opened on the home assistant homepage. But when I close the door nothing happens on frontend - sensor is still in “on” mode.
I’ve tried also with quotes:
payload_on: "true" payload_off: "false"
but then it was not working at all and in the logs I could find:
WARNING (MainThread) [homeassistant.components.binary_sensor.mqtt] No matching payload found for entity: Hall entrance with state_topic: zigbee2mqtt/0x00158d000274f749
What am I doing wrong? ![]()