Page 1 of 1

Domoticz stops responding when MySensors plugin doesn't receive information

Posted: Wednesday 25 September 2024 12:21
by Lightning707
Hello,

I have created a controller for my roller shutters (and some other devices) with relays, controlled by an Arduino. For this I use the library of MySensors.
In Domoticz I use the Plugin "MySensors Gateway with MQTT interface".

For a yet unknown reason, the LAN connection of the Arduino is sometimes interrupted. I am still investigating this problem further.

However, the problem is that I notice that Domoticz appears to freeze after a while (+/- 5 minutes) when the MySensors plugin does not receive any information.

The only (error messages) I receive are the following:

Code: Select all

2024-09-25 11:45:22.347 Error: MySensors MQTT hardware (23) nothing received for more than 1 Minute!....
2024-09-25 11:45:23.350 Error: Restarting: MySensors MQTT
Followed by the status messages below, indicating that the connection to my broker is working correctly.

Code: Select all

2024-09-25 11:45:23.532 Status: MySensors MQTT: Worker stopped...
2024-09-25 11:45:24.545 Status: MySensors MQTT: Connecting to localhost:1883
2024-09-25 11:45:24.760 Status: MySensors MQTT: Connected to: localhost:1883
2024-09-25 11:45:24.775 Status: MySensors MQTT: Connected to: localhost:1883
This processes of the above messages is repeated several times. But after a while, Domoticz's web page stops responding without error message.
All I can do then is restart Domoticz via the command line and disable the MySensors plugin.
Version: 2024.7
Build Hash: b317cfab1
Compile Date: 2024-07-13 16:59:31
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]

Re: Domoticz stops responding when MySensors plugin doesn't receive information

Posted: Wednesday 25 September 2024 13:11
by waltervl
What is the "Data Timeout" setting of the "MySensors Gateway with MQTT interface" hardware gateway? (menu Setup-Hardware) It should normally be "Disabled".

See also
https://www.domoticz.com/wiki/Hardware_ ... re_Gateway

Re: Domoticz stops responding when MySensors plugin doesn't receive information

Posted: Wednesday 25 September 2024 17:09
by Lightning707
The data timeout was set at 1 min. I disabled it and that indeed seems to solve the problem. Domoticz doesn't seem to crash anymore. Thank you!

Although I still don't understand why Domoticz crashes on this. Doesn't the timeout ensure that the connection is automatically restored when the MySensor is back online? Or should I set the timeout setting higher (e.g. 15min) to avoid overloading Domoticz??

Re: Domoticz stops responding when MySensors plugin doesn't receive information

Posted: Wednesday 25 September 2024 18:53
by waltervl
Domoticz has contact with the MQTT Broker so only when MQTT Broker is sending no info you should have issues. But I dont know how this MQTT for Mysensors is implemented. Perhaps check it on the Mysensors.org forum.

And indeed if a time-out setting is needed I would set it to 30 min or so.