Sunday, 21 July 2019

Problems with Extension Zone MV

Sent on Sunday 21st July 2019 over WhatsApp to Kilnageer CH group:

Hi Fellas. I'm trying to use CH for extension zone tonight but the "Extension Zone" SonOff keeps going to off (after 5 mins or so)
As I mentioned before this is due to it losing Wifi to Vodafone-2124 and reseting. I'm investigating.
..Happy days. Setting "retained" flag to on for the "Extension Zone" MQTT Dash app button ensures wifi drop outs on its SonOff restore the correct settings.
This falg was set for all the other MQTT Dash buttons so you would not have been aware of this issue.
Liam. Any progress on programming Node-Red for a 15 minute timer or based on your room temperature probe? As I need this now for the Extension Zone :)
Up Mayo! :) Donegal next!

Here's the details:

2C:3A:E8:07:B8:4F       192.168.1.101 Extension Zone MV
B8:27:EB:C8:19:85       192.168.1.100 Raspberry Pi Controller
2C:3A:E8:0F:4D:99       192.168.1.104 Cylinder MV
2C:3A:E8:0F:4C:E8       192.168.1.103 Sleeping Zone
EC:FA:BC:86:D5:E4       192.168.1.105 Oil Burner and Pump
2C:3A:E8:4F:4D:02       192.168.1.106 Living Zone
5C:CF:7F:67:29:50       192.168.1.107 Shower Pump

Looking at console log for Extension Zone I see when it loses Wifi and
turns itself off:
18:54:38 DNS: Initialized
18:54:39 MQT: Attempting connection...
18:54:39 MQT: Connected
18:54:39 MQT: tele/sonoff_6223/LWT = Online (retained)
18:54:39 MQT: cmnd/sonoff_6223/POWER =
18:54:39 MQT: stat/sonoff_6223/RESULT = {"POWER":"OFF"}
18:54:39 MQT: stat/sonoff_6223/POWER = OFF (retained)


Then when MQTT Dash app turns it on I see:
18:55:12 DNS: Initialized
18:55:13 MQT: Attempting connection...
18:55:13 MQT: Connected
18:55:13 MQT: tele/sonoff_6223/LWT = Online (retained)
18:55:13 MQT: cmnd/sonoff_6223/POWER =
18:55:13 MQT: stat/sonoff_6223/RESULT = {"POWER":"OFF"}
18:55:13 MQT: stat/sonoff_6223/POWER = OFF (retained)
18:55:31 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
18:55:31 MQT: stat/sonoff_6223/POWER = ON (retained)

Then I used 192.168.1.100:1880/ui to turn the extension zone on:

19:02:37 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:02:37 MQT: stat/sonoff_6223/POWER = ON (retained)

Which is causing SonOff to update its retained settings! So now when
it loses connection it comes back as ON (rather than OFF)

19:03:05 MQT: Attempting connection...
19:03:05 MQT: Connect failed to 192.168.1.100:1883, rc -2. Retry in 10 sec
19:03:05 WIF: Connecting to AP1 vodafone-2124 in mode 11N as sonoff_6223-6223...
19:03:09 WIF: Connected
19:03:09 DNS: Initialized
19:03:20 MQT: Attempting connection...
19:03:20 MQT: Connected
19:03:20 MQT: tele/sonoff_6223/LWT = Online (retained)
19:03:20 MQT: cmnd/sonoff_6223/POWER =
19:03:20 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:03:20 MQT: stat/sonoff_6223/POWER = ON (retained)
19:03:26 MQT: tele/sonoff_6223/STATE =
{"Time":"2019-07-21T19:03:26",
"Uptime":"15T11:21:44","Vcc":3.476,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"vodafone-2124","BSSId":"D0:FF:98:1B:31:3C","Channel":9,"RSSI":78}}
19:05:29 DNS: Initialized
19:05:30 MQT: Attempting connection...
19:05:30 MQT: Connected
19:05:30 MQT: tele/sonoff_6223/LWT = Online (retained)
19:05:30 MQT: cmnd/sonoff_6223/POWER =
19:05:30 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:05:30 MQT: stat/sonoff_6223/POWER = ON (retained)

So I set the Retained flag in MQTT Dash app for the "Extension Zone"
and now when I set it from there..

Turning off from Node-Red..
19:06:54 MQT: stat/sonoff_6223/POWER = ON (retained)
19:08:06 MQT: Attempting connection...
19:08:06 MQT: Connect failed to 192.168.1.100:1883, rc -2. Retry in 10 sec
19:08:09 DNS: Initialized
19:08:20 MQT: Attempting connection...
19:08:20 MQT: Connected
19:08:20 MQT: tele/sonoff_6223/LWT = Online (retained)
19:08:20 MQT: cmnd/sonoff_6223/POWER =
19:08:20 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:08:20 MQT: stat/sonoff_6223/POWER = ON (retained)
19:08:26 MQT: tele/sonoff_6223/STATE =
{"Time":"2019-07-21T19:08:26","Uptime":"15T11:26:44","Vcc":3.495,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"vodafone-2124","BSSId":"D0:FF:98:1B:31:3C","Channel":9,"RSSI":80}}
19:08:45 DNS: Initialized
19:08:46 MQT: Attempting connection...
19:08:46 MQT: Connected
19:08:46 MQT: tele/sonoff_6223/LWT = Online (retained)
19:08:46 MQT: cmnd/sonoff_6223/POWER =
19:08:46 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:08:46 MQT: stat/sonoff_6223/POWER = ON (retained)
..
19:09:22 MQT: stat/sonoff_6223/RESULT = {"POWER":"OFF"}
19:09:22 MQT: stat/sonoff_6223/POWER = OFF (retained)
..

And so it stays like this (OFF) after Wifi loss..

19:46:26 MQT: stat/sonoff_6223/RESULT = {"POWER":"OFF"}
19:46:26 MQT: stat/sonoff_6223/POWER = OFF (retained)
19:47:21 WIF: Connecting to AP1 vodafone-2124 in mode 11N as sonoff_6223-6223...
19:47:25 WIF: Connected
19:47:25 DNS: Initialized
19:47:26 MQT: Attempting connection...
19:47:26 MQT: Connected
19:47:26 MQT: tele/sonoff_6223/LWT = Online (retained)
19:47:26 MQT: cmnd/sonoff_6223/POWER =
19:47:26 MQT: stat/sonoff_6223/RESULT = {"POWER":"OFF"}
19:47:26 MQT: stat/sonoff_6223/POWER = OFF (retained)

turned on retained..
19:47:46 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:47:46 MQT: stat/sonoff_6223/POWER = ON (retained)

next drop out..
19:48:04 MQT: Attempting connection...
19:48:04 MQT: Connect failed to 192.168.1.100:1883, rc -2. Retry in 10 sec
19:48:05 WIF: Connecting to AP1 vodafone-2124 in mode 11N as sonoff_6223-6223...
19:48:09 WIF: Connected
19:48:09 DNS: Initialized
19:48:20 MQT: Attempting connection...
19:48:20 MQT: Connected
19:48:20 MQT: tele/sonoff_6223/LWT = Online (retained)
19:48:20 MQT: cmnd/sonoff_6223/POWER =
19:48:20 MQT: stat/sonoff_6223/RESULT = {"POWER":"ON"}
19:48:20 MQT: stat/sonoff_6223/POWER = ON (retained)
19:48:26 MQT: tele/sonoff_6223/STATE =
{"Time":"2019-07-21T19:48:26","Uptime":"15T12:06:44","Vcc":3.478,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"vodafone-2124","BSSId":"D0:FF:98:1B:31:3C","Channel":9,"RSSI":70}}

Happy days it stays on.

Was going to set it for all other MQTT Dash buttons - but it was already set!!!

No comments:

Post a Comment