I currently use a sonoff with espeasy (105) for switching a light.
The problem is that the MQTT command doesn’t seem to always reach the switch.
This seems to be the case especially after the esp was idle for some time (no switch messages). If I then switch it on and off again it almost always works (sometimes it takes two tries). As soon as it switched once it can be toggled without problems.
I’m currently using mosquitto as a broker.
Maybe the esp disconnets sporadically?
- How can I set up mosquitto to send out all he messages which have accumulated while the client esp was disconnected as soon as it reconnects?
Maybe the plugin could be improved? @wutu
- If there is a state topic defined send message x times until state message is received, if not “time out” and leave switch in original position.