Closed mountaindude closed 8 years ago
You should use topic devices/003/light/on/set => true/false
Yes, to receive messages you need to send them on devices/003/light/on/set
..
The "/devices/003/$online" = false
is not normal, it means the device is disconnected from the broker... I'll investigate.
By the way, what is your MQTT broker?
@dholmen, ah that can explain it. Will test that topic. I read the docs so many times... but missed that final "set"
@marvinroger: Mosquitto 1.4.2-4 running on a Synology NAS.
@mountaindude read https://github.com/marvinroger/homie :)
@marvinroger: Promise - I did read that (excellent) page a ton of times, just that it was 1.30 am in the morning... should have known better. lol
Btw, the issue with the device going offline could be due to the way the serial port works on this particular ESP8266 unit. Will try powering it from just a cell phone charger rather than a computer USB port.
@mountaindude I can't reproduce this behavior... Was it a power issue?
Closing this, feel free to reopen.
I don't Homie responding to ANY MQTT messages, which could be cause by
Also, after reporting the system messages to MQTT, the device sends a couple of "devices/003/$signal" messages, then goes offline with a "/devices/003/$online" = false message..
Would be good to rule out option 1. Can someone confirm that topic and message is correct, for the demo code referenced?
Using an ESP201 Sweet peas ESP8266 device, with latest PlatformIO (2.8.6) and Homie (1.3.0).