Hi all, I’m not at home right now so I cannot verify the delay using tracer with an automation, I’ll do it as soon as I am back home.
I do have some random socket error and disconnection / reconnection for multiple devices in the mosquitto log:
1619811715: New connection from 192.168.1.101 on port 1883.
1619811715: New client connected from 192.168.1.101 as DVES_69C4B9 (p2, c1, k30, u'hassio').
1619811716: New connection from 192.168.1.100 on port 1883.
1619811716: New client connected from 192.168.1.100 as DVES_864893 (p2, c1, k30, u'hassio').
1619811716: New connection from 192.168.1.102 on port 1883.
1619811716: New client connected from 192.168.1.102 as DVES_8597F1 (p2, c1, k30, u'hassio').
1619811717: New connection from 192.168.1.104 on port 1883.
1619811717: New client connected from 192.168.1.104 as DVES_86547B (p2, c1, k30, u'hassio').
1619811717: New connection from 192.168.1.103 on port 1883.
1619811717: New client connected from 192.168.1.103 as DVES_D5422B (p2, c1, k30, u'hassio').
1619811718: New connection from 192.168.1.111 on port 1883.
1619811718: New client connected from 192.168.1.111 as DVES_6F567C (p2, c1, k30, u'hassio').
1619811719: New connection from 192.168.1.110 on port 1883.
1619811719: New client connected from 192.168.1.110 as DVES_376D6F (p2, c1, k30, u'hassio').
1619811753: Socket error on client DVES_864893, disconnecting.
1619811758: New connection from 192.168.1.100 on port 1883.
1619811758: New client connected from 192.168.1.100 as DVES_864893 (p2, c1, k30, u'hassio').
1619811781: Socket error on client DVES_864893, disconnecting.
1619811785: New connection from 192.168.1.100 on port 1883.
1619811785: New client connected from 192.168.1.100 as DVES_864893 (p2, c1, k30, u'hassio').
1619811849: Socket error on client DVES_864893, disconnecting.
1619811852: Socket error on client DVES_69C4B9, disconnecting.
1619811853: New connection from 192.168.1.100 on port 1883.
1619811853: New client connected from 192.168.1.100 as DVES_864893 (p2, c1, k30, u'hassio').
1619811854: Socket error on client DVES_8597F1, disconnecting.
1619811856: Socket error on client DVES_D5422B, disconnecting.
1619811856: New connection from 192.168.1.101 on port 1883.
1619811856: New client connected from 192.168.1.101 as DVES_69C4B9 (p2, c1, k30, u'hassio').
1619811858: New connection from 192.168.1.102 on port 1883.
1619811858: New client connected from 192.168.1.102 as DVES_8597F1 (p2, c1, k30, u'hassio').
1619811859: Socket error on client DVES_86547B, disconnecting.
1619811861: New connection from 192.168.1.103 on port 1883.
1619811861: New client connected from 192.168.1.103 as DVES_D5422B (p2, c1, k30, u'hassio').
1619811862: Socket error on client DVES_55F8AD, disconnecting.
1619811862: New connection from 192.168.1.104 on port 1883.
1619811862: New client connected from 192.168.1.104 as DVES_86547B (p2, c1, k30, u'hassio').
1619811863: Socket error on client DVES_865207, disconnecting.
1619811866: Socket error on client DVES_63A571, disconnecting.
1619811866: New connection from 192.168.1.105 on port 1883.
1619811866: New client connected from 192.168.1.105 as DVES_55F8AD (p2, c1, k30, u'hassio').
1619811866: New connection from 192.168.1.106 on port 1883.
1619811866: New client connected from 192.168.1.106 as DVES_865207 (p2, c1, k30, u'hassio').
1619811867: Socket error on client DVES_F799F7, disconnecting.
1619811870: New connection from 192.168.1.107 on port 1883.
1619811870: New client connected from 192.168.1.107 as DVES_63A571 (p2, c1, k30, u'hassio').
1619811870: Socket error on client DVES_456E2F, disconnecting.
1619811871: New connection from 192.168.1.108 on port 1883.
1619811871: New client connected from 192.168.1.108 as DVES_F799F7 (p2, c1, k30, u'hassio').
1619811873: Socket error on client DVES_376D6F, disconnecting.
1619811874: New connection from 192.168.1.109 on port 1883.
1619811874: New client connected from 192.168.1.109 as DVES_456E2F (p2, c1, k30, u'hassio').
1619811876: Socket error on client DVES_6F567C, disconnecting.
1619811877: New connection from 192.168.1.110 on port 1883.
[21:44:38] INFO: [INFO] found hassio on local database
1619811878: New client connected from 192.168.1.110 as DVES_376D6F (p2, c1, k30, u'hassio').
1619811880: New connection from 192.168.1.111 on port 1883.
1619811880: New client connected from 192.168.1.111 as DVES_6F567C (p2, c1, k30, u'hassio').
1619811904: Socket error on client DVES_865207, disconnecting.
1619811905: Socket error on client DVES_63A571, disconnecting.
1619811905: Socket error on client DVES_55F8AD, disconnecting.
1619811907: Socket error on client DVES_456E2F, disconnecting.
1619811910: Socket error on client DVES_F799F7, disconnecting.
1619811914: New connection from 192.168.1.106 on port 1883.
1619811914: New client connected from 192.168.1.106 as DVES_865207 (p2, c1, k30, u'hassio').
1619811915: New connection from 192.168.1.107 on port 1883.
1619811915: New client connected from 192.168.1.107 as DVES_63A571 (p2, c1, k30, u'hassio').
1619811915: New connection from 192.168.1.105 on port 1883.
1619811915: New client connected from 192.168.1.105 as DVES_55F8AD (p2, c1, k30, u'hassio').
1619811917: New connection from 192.168.1.109 on port 1883.
1619811917: New client connected from 192.168.1.109 as DVES_456E2F (p2, c1, k30, u'hassio').
1619811920: New connection from 192.168.1.108 on port 1883.
1619811920: New client connected from 192.168.1.108 as DVES_F799F7 (p2, c1, k30, u'hassio').
1619812960: Saving in-memory database to /data/mosquitto.db.
1619814761: Saving in-memory database to /data/mosquitto.db.
1619816562: Saving in-memory database to /data/mosquitto.db.
1619818363: Saving in-memory database to /data/mosquitto.db.
1619820164: Saving in-memory database to /data/mosquitto.db.
1619821965: Saving in-memory database to /data/mosquitto.db.
1619823766: Saving in-memory database to /data/mosquitto.db.
1619825567: Saving in-memory database to /data/mosquitto.db.
1619827368: Saving in-memory database to /data/mosquitto.db.
1619829169: Saving in-memory database to /data/mosquitto.db.
1619830970: Saving in-memory database to /data/mosquitto.db.
1619832771: Saving in-memory database to /data/mosquitto.db.
1619834572: Saving in-memory database to /data/mosquitto.db.
1619836373: Saving in-memory database to /data/mosquitto.db.
1619838174: Saving in-memory database to /data/mosquitto.db.
1619839975: Saving in-memory database to /data/mosquitto.db.
1619841776: Saving in-memory database to /data/mosquitto.db.
1619843577: Saving in-memory database to /data/mosquitto.db.
1619845378: Saving in-memory database to /data/mosquitto.db.
1619847179: Saving in-memory database to /data/mosquitto.db.
1619848980: Saving in-memory database to /data/mosquitto.db.
1619850781: Saving in-memory database to /data/mosquitto.db.
1619852582: Saving in-memory database to /data/mosquitto.db.
1619854383: Saving in-memory database to /data/mosquitto.db.
1619856184: Saving in-memory database to /data/mosquitto.db.
1619857985: Saving in-memory database to /data/mosquitto.db.
1619859786: Saving in-memory database to /data/mosquitto.db.
1619861587: Saving in-memory database to /data/mosquitto.db.
I’ve seen the same entries on mosquitto log the other day and taking the client on the 192.168.1.109 ip address for example, I cannot see a wifi signal drop in the tasmota console:
11:14:40.430 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:14:40","Uptime":"0T13:30:10","UptimeSec":48610,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":84,"Signal":-58,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:14:40.436 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:14:40","Switch1":"OFF"}
11:19:40.422 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:19:40","Uptime":"0T13:35:10","UptimeSec":48910,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:19:40.429 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:19:40","Switch1":"OFF"}
11:24:40.410 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:24:40","Uptime":"0T13:40:10","UptimeSec":49210,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:24:40.416 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:24:40","Switch1":"OFF"}
11:29:40.416 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:29:40","Uptime":"0T13:45:10","UptimeSec":49510,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:29:40.423 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:29:40","Switch1":"OFF"}
11:34:40.426 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:34:40","Uptime":"0T13:50:10","UptimeSec":49810,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:34:40.432 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:34:40","Switch1":"OFF"}
11:39:40.406 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:39:40","Uptime":"0T13:55:10","UptimeSec":50110,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:39:40.413 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:39:40","Switch1":"OFF"}
11:44:40.398 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:44:40","Uptime":"0T14:00:10","UptimeSec":50410,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":86,"Signal":-57,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:44:40.404 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:44:40","Switch1":"OFF"}
11:49:40.396 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:49:40","Uptime":"0T14:05:10","UptimeSec":50710,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:49:40.402 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:49:40","Switch1":"OFF"}
11:54:40.391 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:54:40","Uptime":"0T14:10:10","UptimeSec":51010,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:54:40.397 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:54:40","Switch1":"OFF"}
11:59:40.415 MQT: tele/Faretti_Armadio/STATE = {"Time":"2021-05-01T11:59:40","Uptime":"0T14:15:10","UptimeSec":51310,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"MySSID","BSSId":"xx:xx:xx:xx:xx:xx","Channel":11,"RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:03"}}
11:59:40.422 MQT: tele/Faretti_Armadio/SENSOR = {"Time":"2021-05-01T11:59:40","Switch1":"OFF"}
As you can see the downtime of this device is just 3 seconds and that’s because I do have rebooted it yesterday.
I cannot understand the timestamps on the mosquitto log to be honest. So I don’t know if the multiple connection and disconnection and socket errors are from yesterday while I was rebooting both my tasmotized devices and my AiMesh setup due to config changes or something else.
So, If I am not mistaken, what those log entries mean is that it seems that for some reason clients are dropping and restoring the connection with mosquitto broker even if they are correctly connected to my wifi?