nimroddolev / akuvox

Home Assistant integration to add Akuvox SmartPlus door cameras, door open relay buttons and temporary keys
MIT License
16 stars 1 forks source link

`akuvox_door_update` event not firing #44

Open romilbhardwaj opened 3 months ago

romilbhardwaj commented 3 months ago

System Health details

System Information

version core-2024.4.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.20+rpt-rpi-2712
arch aarch64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.34.0 Stage | running Available Repositories | 1399 Downloaded Repositories | 1 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 2 -- | -- resources | 0 views | 0 mode | storage
Recorder oldest_recorder_run | April 22, 2024 at 6:54 PM -- | -- current_recorder_run | April 26, 2024 at 12:13 AM estimated_db_size | 1.37 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

akuvox_door_update event does not seem to be fired when my door bell is rang. I am able to use the relays to unlock the door and access the camera just fine from HA, but ringing the door bell does not fire the akuvox_door_update event, and as a result I cannot build any automations around it.

Occurs on both v0.0.7 and https://github.com/nimroddolev/akuvox/commit/7c33d71fe86d89e8f60292e6540ed20c00c3799f. I am in US region, if that helps.

Reproduction steps

  1. Setup automations which use akuvox_door_update (without any event_data) and/or use /developer-tools/event page to listen for akuvox_door_update.
  2. Ring the door bell.
  3. Event is not fired.

Debug logs

2024-04-26 00:13:06.382 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration akuvox 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
2024-04-26 00:13:06.383 WARNING (SyncWorker_2) [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
2024-04-26 00:13:07.466 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-04-26 00:14:13.622 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'akuvox' calls `async_run_job`, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/akuvox/api.py, line 81: hass.async_run_job(self.async_set_stored_data_for_key, "wait_for_image_url", self.wait_for_image_url), please create a bug report at https://github.com/nimroddolev/akuvox/issues
2024-04-26 00:14:25.487 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.12/asyncio/base_events.py:1973: RuntimeWarning: coroutine 'AkuvoxData.async_set_stored_data_for_key' was never awaited
handle = self._ready.popleft()
2024-04-26 00:14:29.803 WARNING (MainThread) [custom_components.akuvox] 📜 Regional API subdomain not configured...using pre v0.0.7 backward compatible 'ecloud'
2024-04-26 00:17:36.622 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:17:40.395 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:17:44.022 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:17:47.701 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:33.525 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.front_gate] Error from stream worker: Stream ended; no additional packets
2024-04-26 00:22:33.957 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:37.661 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:41.408 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:45.051 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:48.944 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:52.848 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:22:56.489 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"
2024-04-26 00:23:00.225 DEBUG (MainThread) [custom_components.akuvox] Changing app type "single" <--> "community"


### Diagnostics dump

_No response_
nimroddolev commented 1 month ago

Hi @romilbhardwaj, sorry you've had this issue.

I just released a new beta release, v0.2.0-beta2, which includes many fixes including the personal door log polling (which is responsible for firing the akuvox_door_update event).

Can you please upgrade to the beta and let me know if the issue is resolved for you?

To install the new beta version:

  1. Open the Akuvox SmartPlus repository in HACS
  2. Click on the button in the top right
  3. Select the ↻ Redownload option
  4. Enable the Show beta versions option (it may take a moment to update the list)
  5. Select version v0.2.0-beta2 from the updated version drop-down list
  6. Restart Home Assistant
romilbhardwaj commented 1 month ago

Awesome, thanks @nimroddolev! Appreciate the fix - will try it soon and report back.