So currently I’m trying to build a small Esp8266 motion sensor which publishes mqtt messages, everytime a motion is detected.
So the esp successfully publishes messages like this:
{"id":"esp","name":"room1","distance":3}
And my home assistant configuration is like this:
- platform: mqtt_room
device_id: esp
name: 'room1'
state_topic: 'esp/motion'
scan_interval: 5
But the state never changes and remains not_home all the time.
Am I doing something wrong?