node-red-contrib-homebridge-automation icon indicating copy to clipboard operation
node-red-contrib-homebridge-automation copied to clipboard

hb control node loses connection

Open ahartman opened this issue 4 years ago • 6 comments

I am returning to the use of your module after 2 years of using home Assistant, since HA now crashes every night. I note the following issue. I have 4 control nodes for Shelly switches defined in Homebridge. These nodes lose connection with Homebridge almost daily. At the same time a status node for the same Shelly switch reports status correctly. Please see 'Inkom Deur' in the screen image at the right top (control node) and at the bottom (status node).

I also note that three of the four Shelly switches are 'device not available', 'Inkom Straatlamp' is still ok. In the iPhone Home app, all 4 devices can be operated normally. Sending a control signal to a device 'not available' makes the device behave normally!

image

Regards, ahartman, belgium

ahartman avatar Jul 09 '21 10:07 ahartman

The 'Device not available' message is triggered when homebridge-automation can't find the device in it's device cache. Is your system stable ? I'm thinking it may occur shortly after node-red starts, before the cache is fully populated ( usually within about 30 seconds or so from startup ). The node-red log will have some messages about device discovery.

NorthernMan54 avatar Jul 11 '21 00:07 NorthernMan54

The 'Device not available' message is triggered when homebridge-automation can't find the device in it's device cache. Is your system stable ? I'm thinking it may occur shortly after node-red starts, before the cache is fully populated ( usually within about 30 seconds or so from startup ). The node-red log will have some messages about device discovery.

Hi! Could you tell me how I can clear this devices cache, otherwise for a very long time (20 minutes after reboot) the "availability" of devices appears? It started after the upgrade of the homebridge. The system works stably.

AdamVR7 avatar Sep 29 '21 20:09 AdamVR7

Are you starting node-red last, after starting Homebridge etc ? Is their a possibility node-red is starting before homebridge is ready, and that is causing this behaviour ?

In my setup I have node-red start 30 seconds after homebridge, to give Homebridge time to start up etc.

NorthernMan54 avatar Sep 29 '21 20:09 NorthernMan54

Are you starting node-red last, after starting Homebridge etc ? Is their a possibility node-red is starting before homebridge is ready, and that is causing this behaviour ?

I don’t know(

In my setup I have node-red start 30 seconds after homebridge, to give Homebridge time to start up etc.

Could you tell me how

AdamVR7 avatar Sep 29 '21 21:09 AdamVR7

In my setup I use systemd to control the startup sequence of the services.

NorthernMan54 avatar Sep 30 '21 13:09 NorthernMan54

If it still a pain for you, check your homebridge instances. They should be switched into "INSECURE MODE". "

SyBeer avatar Jan 05 '23 15:01 SyBeer