I recently change from zha to z2m to get a unsupported device running.
It is the Schneider Odace S520531 zigbee switch.
I can see it working in the Zigbee2MQTT web interface. But in MQTT the only entity is the battery.
Here is what a message sent by the device look like when i press the button:
zigbee2mqtt/switch_1st_floor
2 dernier(s) message(s) reçu(s)
Received 18:45:00
QoS: 0
Payload: {"action":"on_top","battery":90,"linkquality":98}
Received 18:46:47
QoS: 0
Payload: {"action":"on_bottom","battery":90,"linkquality":87}
My goal is to set a MQTT binary sensor according to the documentation : https://www.home-assistant.io/integrations/binary_sensor.mqtt/
Here is the part of the config file for this device :
mqtt:
- binary_sensor:
name: switch_1st_floor
state_topic: "zigbee2mqtt/switch_1st_floor/action"
payload_on: top_on
payload_off: top_off
qos: 0
I also tried with things like payload_on: “top_on” or define the device with more details (identifiers, via device …)
The binary sensor is always in unknown mode
I can’t figure out why it doesn’t work. I’m new to MQTT and doesn’t know the best way to debug.
What am i missing here ?
beside of that, the switch is very nice !