Page 1 of 1

Reconnect after connection loss

Posted: Sunday 18 December 2016 21:40
by PatrickM
Especially during development I often reboot MySensors nodes. Domoticz does not realize the connection needs to be reestablished. I have to manually disable and enable the device in domoticz to have it reconnect with the MySensors node.

There must be a way to resolve this. Send heartbeats and have domoticz restart the MySensors plugin after data inactivity? What's the best way to handle it, I'm sure I'm not the only one annoyed by this inconvenience.

Re: Reconnect after connection loss

Posted: Sunday 18 December 2016 21:56
by SweetPants
Tried the 'Data Timeout' option already?

Re: Reconnect after connection loss

Posted: Monday 19 December 2016 10:17
by PatrickM
Was afraid I'd have to switch my device at least once per minute if I set the data timeout to 1 minute. But it seems to work fine, domoticz doesn't restart the thread when I don''t switch my device, but it does restart one minute after I disconnect. So maybe the gateway software has a builtin heartbeat? Even though it works I still like to know why/how :)

Re: Reconnect after connection loss

Posted: Tuesday 20 December 2016 8:56
by gizmocuz
domoticz sends also a heartbeat, have a look in the mysensors class