natekspencer / hacs-vivint

Home Assistant integration for a Vivint home security system.
MIT License
66 stars 6 forks source link

2023.8.1 - Hub shows as unavailable #115

Closed rereloluwa89 closed 1 year ago

rereloluwa89 commented 1 year ago

Just installed 2023.8.1

Only one entity doesn't work/load - the hub. It shows as unavailable, so i can't arm/disarm. Cameras and sensors appear to work fine

image

rereloluwa89 commented 1 year ago

Also, my current version: Home Assistant 2023.8.2

natekspencer commented 1 year ago

Can you see/post if there are any errors in your logs?

rereloluwa89 commented 1 year ago

Logger: homeassistant.helpers.service Source: helpers/service.py:833 First occurred: 8:39:01 AM (2 occurrences) Last logged: 9:43:08 AM

Referenced entities alarm_control_panel.ayeni_home are missing or not currently available

rereloluwa89 commented 1 year ago

Logger: homeassistant.config_entries Source: custom_components/vivint/hub.py:66 Integration: Vivint (documentation, issues) First occurred: 1:49:49 AM (1 occurrences) Last logged: 1:49:49 AM

Error setting up entry rereloluwaa@gmail.com for alarm_control_panel Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/init.py", line 115, in async_setup_entry return await component.async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 195, in async_setup_entry return await self._platforms[key].async_setup_entry(config_entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 296, in async_setup_entry return await self._async_setup_platform(async_create_setup_task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 469, in async_update await self.coordinator.async_request_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 236, in async_request_refresh await self._debounced_refresh.async_call() File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 95, in async_call await task File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 262, in async_refresh await self._async_refresh(log_failures=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 242, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/vivint/hub.py", line 66, in _async_update_data return await self.account.refresh() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/vivintpy/account.py", line 131, in refresh authuser_data = await self.api.get_authuser_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/vivintpy/vivintskyapi.py", line 97, in get_authuser_data resp = await self.get("authuser") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/vivintpy/vivintskyapi.py", line 460, in get return await self.call( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/vivintpy/vivintskyapi.py", line 501, in call resp = await method( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection transp, proto = await self._wrap_create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection sock = await self._connect_sock( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 628, in sock_connect return await fut ^^^^^^^^^ asyncio.exceptions.CancelledError: Global task timeout

rereloluwa89 commented 1 year ago

Log Details (ERROR) Logger: homeassistant.config_entries Source: config_entries.py:1367 First occurred: 1:49:49 AM (1 occurrences) Last logged: 1:49:49 AM

Error setting up entry rereloluwaa@gmail.com for vivint Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/vivint/init.py", line 123, in async_setup_entry await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1367, in async_forward_entry_setups await asyncio.gather( asyncio.exceptions.CancelledError

natekspencer commented 1 year ago

Thanks, that helps. It looks like it's just a timeout issue. If you reload the integration, you should probably get it back unless it happens again. I do see some code I can adjust though to prevent it from trying to re-update right away which is what is leading to this issue.

rereloluwa89 commented 1 year ago

ok, i'll give that a try, thanks

natekspencer commented 1 year ago

I did also release a new version to avoid an extra call to help with this

rereloluwa89 commented 1 year ago

oh ok, yeah i didn't have luck reloading. i'll download the new version

rereloluwa89 commented 1 year ago

upon install of update and after restarting, i can't seem to configure the integration:

i get an unknown error occurred window:

image

rereloluwa89 commented 1 year ago

log:

Logger: homeassistant.components.http.ban Source: components/http/ban.py:82 Integration: HTTP (documentation, issues) First occurred: 1:59:03 PM (1 occurrences) Last logged: 1:59:03 PM

Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/api/config/config_entries/flow/cb5fe1987f871171a2b01baecbcd62c9'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36)

rereloluwa89 commented 1 year ago

is this a function of trying to install via nabu casa? (i'm at work/logged in remotely)?

natekspencer commented 1 year ago

Yeah that error seems unrelated to this integration

rereloluwa89 commented 1 year ago

oh ok

github-actions[bot] commented 1 year ago

This issue has now been marked as stale and will be closed if no further activity occurs.