Reconnect after connection loss

Moderator: leecollings

Post Reply
PatrickM
Posts: 20
Joined: Wednesday 18 June 2014 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Reconnect after connection loss

Post 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.
SweetPants

Re: Reconnect after connection loss

Post by SweetPants »

Tried the 'Data Timeout' option already?
PatrickM
Posts: 20
Joined: Wednesday 18 June 2014 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reconnect after connection loss

Post 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 :)
User avatar
gizmocuz
Posts: 2551
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Reconnect after connection loss

Post by gizmocuz »

domoticz sends also a heartbeat, have a look in the mysensors class
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest