Hi Dave,
I’ve been using this component since 0.0.4 I think, never had any issues.
Since my last update (HACS update of the component as well as HA update to 2020.12.2 I do have some stability issues.
Sometimes in the middle of the day i hear the panel beeping (like what happens when i restart HA). On other times the component is simply not available anymore. Looking at the logs I almost always see the same:
2021-01-05 12:27:27 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected due to exception [Errno 104] Connection reset by peer
2021-01-05 12:27:32 ERROR (MainThread) [custom_components.visonic.pyvisonic] Calling Exception handler.
2021-01-05 12:27:34 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Alarm Panel for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 78, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2021-01-05 12:27:40 WARNING (MainThread) [custom_components.visonic.client] Visonic Panel Request to callback handler when system not started
2021-01-05 13:15:29 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected due to exception [Errno 104] Connection reset by peer
2021-01-05 13:15:34 ERROR (MainThread) [custom_components.visonic.pyvisonic] Calling Exception handler.
2021-01-05 13:15:35 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Alarm Panel for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 78, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2021-01-05 13:39:01 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected due to exception [Errno 104] Connection reset by peer
2021-01-05 13:39:06 ERROR (MainThread) [custom_components.visonic.pyvisonic] Calling Exception handler.
2021-01-05 13:39:07 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Alarm Panel for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 78, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2021-01-05 23:55:32 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected due to exception [Errno 104] Connection reset by peer
2021-01-05 23:55:37 ERROR (MainThread) [custom_components.visonic.pyvisonic] Calling Exception handler.
2021-01-05 23:55:39 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Alarm Panel for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 78, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
Here you can see the errors are happening a few times a day. This does not alwas result in the component being unavailable.
I enabled some debugs now as described in the WIki, hope to get some more information there.
Btw after a reboot all seems stable for a while. The only warning I see at startup is:
2021-01-06 13:12:13 WARNING (MainThread) [custom_components.visonic.client] Visonic Panel Request to callback handler when system not started
any ideas?