OpenVoiceOS / ovos-PHAL-plugin-homeassistant

HomeAssistant PHAL Plugin for OpenVoice OS
Apache License 2.0
10 stars 3 forks source link

Add grouping support, camera and switch entity and multiple fixes #2

Closed AIIX closed 1 year ago

AIIX commented 1 year ago

Multiple Changes:

Demo of above changes: homeassistant-updates-2

NeonDaniel commented 1 year ago

I'll try to troubleshoot more, but load times are really slow for me and I do see some logged errors around the websocket connection

2022-12-09 10:47:46.360 - enclosure - ovos_PHAL_plugin_homeassistant.logic.connector:client:269 - ERROR - Client not connected, re-initializing
2022-12-09 10:47:48.083 - enclosure - ovos_PHAL_plugin_homeassistant.logic.connector:client:269 - ERROR - Client not connected, re-initializing
2022-12-09 10:47:56.521 - enclosure - ovos_PHAL_plugin_homeassistant.logic.connector:client:269 - ERROR - Client not connected, re-initializing
2022-12-09 10:48:01.222 - enclosure - ovos_PHAL_plugin_homeassistant.logic.connector:client:269 - ERROR - Client not connected, re-initializing
2022-12-09 10:48:02.378 - enclosure - ovos_PHAL_plugin_homeassistant:handle_show_dashboard:423 - INFO - Using group display
AIIX commented 1 year ago

The websocket client errors have been around since the websocket PR, but it currently works even tho a bit slow here even with some errors, so the websocket api and asyncio errors need looking into maybe as a separate thing? Also note you might find it slower because there is 2 second sleep time when adding a instance it seems the mycroft config is not always updated on time for validation to succeed, so have to wait for it