zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
443 stars 180 forks source link

Custom Integration loses connection, only fixed with Node-red container restart #178

Closed marleyjaffe closed 1 year ago

marleyjaffe commented 1 year ago

Version of the custom_component:

Custom_component v1.2.0
Home Assistant 2023.4.6
Supervisor 2023.04.1 
Operating System 10.0 
Frontend 20230411.1 - latest 
Node-red 3.0.2

Configuration

not sure what HA config is relevant.

Describe the bug

HA loses connection to Node-Red. Updating configuration node and/or deploying a flow does not reestablish the connection. Using the Reload functionality in the integration page also does not fix the issue. Issue is most apparent when node-red created buttons are missing from HA. Issue is not resolved with reboot of HA. Only method to fix the issue is to restart the Node-Red Docker container. Is there a way to get alerted to this disconnect when it occurs so I can proactively fix? Some method of a "health check"?

Debug log

2023-04-24 13:07:33.241 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.242 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.243 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.244 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration pirateweather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.245 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.246 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.247 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.247 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration apple_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:33.249 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration truenas which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-24 13:07:41.236 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_nut: Can't read stats from addon_a0d7b954_nut: Expecting value: line 1 column 1 (char 0)
2023-04-24 13:07:42.779 INFO (MainThread) [custom_components.nodered] 
-------------------------------------------------------------------
Node-RED Companion
Version: 1.2.0
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/zachowj/hass-node-red/issues
-------------------------------------------------------------------

2023-04-24 13:07:47.543 ERROR (SyncWorker_2) [roombapy.remote_client] Can't connect to 192.168.1.139, error: [Errno 113] Host is unreachable
2023-04-24 13:07:50.628 ERROR (SyncWorker_2) [roombapy.remote_client] Can't connect to 192.168.1.139, error: [Errno 113] Host is unreachable
2023-04-24 13:07:51.802 WARNING (MainThread) [homeassistant.components.vesync.fan] Bedroom humidifier - Unknown device type - Classic300S
2023-04-24 13:07:53.680 ERROR (SyncWorker_2) [roombapy.remote_client] Can't connect to 192.168.1.139, error: [Errno 113] Host is unreachable
2023-04-24 13:07:53.689 ERROR (SyncWorker_2) [roombapy.remote_client] Unable to connect to 192.168.1.139
2023-04-24 13:07:53.744 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Roomba' for roomba integration not ready yet; Retrying in background
2023-04-24 13:08:39.729 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: braviatv
2023-04-24 13:09:59.795 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_livingroom_mute or it is/they are currently not available
2023-04-24 13:10:01.061 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_living_room_quiet or it is/they are currently not available
2023-04-24 13:10:01.956 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_living_room_medium or it is/they are currently not available
2023-04-24 13:10:03.153 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_living_room_loud or it is/they are currently not available
2023-04-24 13:11:30.031 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_living_room_medium or it is/they are currently not available
2023-04-24 13:11:31.267 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_livingroom_mute or it is/they are currently not available
2023-04-24 13:11:32.394 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_livingroom_mute or it is/they are currently not available
2023-04-24 13:11:33.076 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_livingroom_mute or it is/they are currently not available
2023-04-24 13:11:33.636 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities button.nr_livingroom_mute or it is/they are currently not available
zachowj commented 1 year ago

What do your NR logs show?

marleyjaffe commented 1 year ago

I thought that may be the question... I believe they wipe after restarting the container. Ill see if I can find the old one and I'll be sure to grab them next time I notice the issue.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.