@wutu said in Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home:
@llgb Hi
Set the protocol to OpenHAB MQTT.
See also the Tools > Advanced that is filled Publish and Subscribe Template.
Hey,
I’ve tried this in the last few days and checked a lot of possiblities (cleaned up my rapsbian packages, installed a clean working mosquitto, and so on) because sometimes my Sonoffs were working (I thought), I connected my lights to the Sonoff’s, switched them on via pimatic and after 5 minutes they were switched off -.-
I have 3 Sonoffs names: espeasy01, espeasy02, espeasy03.
The last two days I have only connected espeasy02 and it ran pretty stable. Got a huge uptime in its webGUI, Log was fine and I was possible to switch it via pimatic.
BUT (and here comes the strange thing) as soon as I powered on another Sonoff (espeasy03) BOTH of them showed the typical misbehaviour and restared every 5-7minutes.
Log looks like (content is repeating, counting up the ConnectFailures):
Log
127095 : Subscribed to: /espeasy02/#
156068 : WD : Uptime 2 ConnectFailures 8 FreeMem 29232
156068 : MQTT : Connection lost
157084 : MQTT : Connected to broker
157092 : Subscribed to: /espeasy02/#
158172 : SW : State 0.00
186069 : WD : Uptime 3 ConnectFailures 10 FreeMem 28368
186069 : MQTT : Connection lost
187088 : MQTT : Connected to broker
187096 : Subscribed to: /espeasy02/#
So as far as I connect only one Sonoff to my pi, it keeps its connection and everything is fine. But as soon as I power on another Sonoff (no lamp connected) BOTH of them seem to loese their connection.
This makes no sense to me! Does anyone of you have a clu what could cause this behaviour?