I have a nodemcu sketch that publishes messages when a switch is triggered ,
i can see this messages on mqtt when i listen for the message
Message 5 received on device/alarm/sensor/kidsroom at 12:29 PM:
1
so far so good I think, so i added the yamel config
switch:
- platform: mqtt
name: "kidsroom"
state_topic: "device/alarm/sensor/kidsroom"
command_topic: "device/alarm/sensor/kidsroom"
qos: 0
payload_on: "ON"
payload_off: "OFF"
I was expecting the switch to toggle depending on the status, but its not happening . I don’t know if I missed any steps
can some one advice , I did try with taking command_topic off
Thanks