Tasmota and HA. Light goes off after about 3min

Hi everyone!!

Light goes off after about 3min if I use my switch on the wall.
If I use HA on my phone it stays on, all lights is doing this.
I have 5 sonoff basics and 1 x 3 gang and 1 node-mcu in PC.

tasmota v6.4.1
HA v0.85.1
MQTT v4

My ap is Unifi AP LR’s
got 3 in my house about 5 to 10 m away from any Tasmota

PS if I turn a light on at the wall my Home assistant registers the message

MQTT Info

[INFO] found admin on local database
1547903327: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903342: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903342: Socket error on client DVES_AF6E09, disconnecting.
1547903348: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903348: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903363: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903363: Socket error on client DVES_AF6E09, disconnecting.
1547903373: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903374: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903380: Socket error on client DVES_3A3F83, disconnecting.
1547903380: New connection from 192.168.2.13 on port 1883.
[INFO] found admin on local database
1547903380: New client connected from 192.168.2.13 as DVES_3A3F83 (c1, k10, u’admin’).
1547903389: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903389: Socket error on client DVES_AF6E09, disconnecting.
1547903410: Socket error on client DVES_3A4DFE, disconnecting.
1547903413: New connection from 192.168.2.12 on port 1883.
[INFO] found admin on local database
1547903413: New client connected from 192.168.2.12 as DVES_3A4DFE (c1, k10, u’admin’).
1547903427: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903427: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903441: Socket error on client DVES_AF6E09, disconnecting.
1547903441: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903441: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903455: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903455: Socket error on client DVES_AF6E09, disconnecting.
1547903475: New connection from 192.168.2.13 on port 1883.
[INFO] found admin on local database
1547903475: Client DVES_3A3F83 already connected, closing old connection.
1547903475: Client DVES_3A3F83 disconnected.
1547903475: New client connected from 192.168.2.13 as DVES_3A3F83 (c1, k10, u’admin’).
1547903492: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903492: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903504: Socket error on client DVES_3A4DFE, disconnecting.
1547903505: New connection from 192.168.2.12 on port 1883.
[INFO] found admin on local database
1547903505: New client connected from 192.168.2.12 as DVES_3A4DFE (c1, k10, u’admin’).
1547903505: Socket error on client DVES_AF6E09, disconnecting.
1547903506: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903506: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903519: Socket error on client DVES_3A3F83, disconnecting.
1547903519: New connection from 192.168.2.13 on port 1883.
[INFO] found admin on local database
1547903519: New client connected from 192.168.2.13 as DVES_3A3F83 (c1, k10, u’admin’).
1547903520: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903520: Socket error on client DVES_AF6E09, disconnecting.
1547903527: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903527: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903548: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903548: Socket error on client DVES_AF6E09, disconnecting.
1547903552: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903553: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903568: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903568: Socket error on client DVES_AF6E09, disconnecting.
1547903571: Socket error on client DVES_3A3F83, disconnecting.
1547903577: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903577: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903578: Socket error on client DVES_3A4DFE, disconnecting.
1547903581: New connection from 192.168.2.13 on port 1883.
[INFO] found admin on local database
1547903581: New client connected from 192.168.2.13 as DVES_3A3F83 (c1, k10, u’admin’).
1547903587: New connection from 192.168.2.12 on port 1883.
[INFO] found admin on local database
1547903588: New client connected from 192.168.2.12 as DVES_3A4DFE (c1, k10, u’admin’).
1547903593: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903593: Socket error on client DVES_AF6E09, disconnecting.
1547903602: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903602: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903617: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903617: Socket error on client DVES_AF6E09, disconnecting.
1547903623: Socket error on client DVES_3A3F83, disconnecting.
1547903627: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903627: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903634: New connection from 192.168.2.13 on port 1883.
[INFO] found admin on local database
1547903634: New client connected from 192.168.2.13 as DVES_3A3F83 (c1, k10, u’admin’).
1547903642: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903642: Socket error on client DVES_AF6E09, disconnecting.
1547903651: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903652: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’).
1547903666: Client DVES_AF6E09 has exceeded timeout, disconnecting.
1547903666: Socket error on client DVES_AF6E09, disconnecting.
1547903676: New connection from 192.168.2.14 on port 1883.
[INFO] found admin on local database
1547903676: New client connected from 192.168.2.14 as DVES_AF6E09 (c1, k10, u’admin’)

Info on my Sonoff 3 gang thats doing the same

Sonoff T1 3CH Module

Outside Lights

Program Version 6.4.1(sonoff)
Build Date & Time 2018-12-24T14:41:00
Core/SDK Version 2_4_2/2.2.1(cfd48f3)
Uptime 0T00:09:57
Flash write Count 2095 at 0xFA000
Boot Count 81
Restart Reason Software/System restart
Friendly Name 1 Outside Lights
Friendly Name 2 Braai Room
Friendly Name 3 Braai LED
AP1 SSId (RSSI) Unifi (84%)
Hostname sonoff3ch-7485.local
IP Address 192.168.2.11
Gateway 192.168.2.1
Subnet Mask 255.255.255.0
DNS Server 8.8.8.8
MAC Address 84:0D:8E:48:5D:3D
MQTT Host 192.168.2.5
MQTT Port 1883
MQTT User admin
MQTT Client DVES_485D3D
MQTT Topic sonoff3ch
MQTT Group Topic sonoffs
MQTT Full Topic sonoff3ch/cmnd/
MQTT Fallback Topic cmnd/DVES_485D3D_fb/
Emulation None
mDNS Discovery Enabled
mDNS Advertise Web Server
ESP Chip Id 4742461
Flash Chip Id 0x144051
Flash Size 1024kB
Program Flash Size 1024kB
Program Size 521kB
Free Program Space 480kB
Free Memory 20kB

problem was with tasmota 6.4.1 downgraded to 6.4.0 and all good now
looks like 6.4.1 does not send
MQT: stat/sonoff_entry_light/RESULT = {“POWER”:“ON”}

It only sends:
MQT: stat/sonoff_entry_light/POWER = ON

Now it sends both if i use the switch on the sonoff

I don’t have a wall switch issue but recently added a Sonoff iFan02 and saw the “New client connected” spamming in the Mosquitto broker add-on log. Found your thread, upgraded to 6.4.1.13 and seems resolved.

thanks!

1 Like