Domoticz stops responding when MySensors plugin doesn't receive information Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Lightning707
Posts: 11
Joined: Friday 16 April 2021 13:58
Target OS: Linux
Domoticz version:
Contact:

Domoticz stops responding when MySensors plugin doesn't receive information

Post 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]
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Lightning707
Posts: 11
Joined: Friday 16 April 2021 13:58
Target OS: Linux
Domoticz version:
Contact:

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

Post 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??
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests