Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Locks in sync and Code slot sensors show as unavailable #358

Open
amura11 opened this issue Aug 30, 2024 · 0 comments
Open

[ISSUE] Locks in sync and Code slot sensors show as unavailable #358

amura11 opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amura11
Copy link

amura11 commented Aug 30, 2024

What happened?

After adding the dashboard and getting it working all the Locks in sync and Code slot sensors sections show the entities as unavailable. Looking at the logs there are a couple errors about the slots and the code constantly shows an error that all slots are out of sync.

Steps to reproduce the issue

  1. Setup a lock following the guide
  2. Add the dashboard following the guide

Home Assistant Version

2024.8.3

What version of Lock Code Manager are you running?

0.51

Lock make and model

Kwikset HC620

Relevant log output

2024-08-29 18:49:13.177 DEBUG (MainThread) [custom_components.lock_code_manager] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Adding lock lock.lock_front_entry slot 2 sensor
2024-08-29 18:49:13.177 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 2 because it is out of sync
2024-08-29 18:49:13.177 ERROR (MainThread) [homeassistant.components.binary_sensor] lock_code_manager: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 727, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update
    await self.async_update()
  File "/config/custom_components/lock_code_manager/binary_sensor.py", line 245, in async_update
    await self._async_update_state()
  File "/config/custom_components/lock_code_manager/binary_sensor.py", line 307, in _async_update_state
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1002, in async_write_ha_state
    self._async_verify_state_writable()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 985, in _async_verify_state_writable
    raise NoEntitySpecifiedError(
homeassistant.exceptions.NoEntitySpecifiedError: No entity id specified for entity Code slot 2 in sync
.
.
.
2024-08-29 18:51:57.621 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 1 because it is out of sync
2024-08-29 18:51:57.622 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 2 because it is out of sync
2024-08-29 18:51:57.622 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 3 because it is out of sync
2024-08-29 18:51:59.375 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Set usercode for lock.lock_front_entry slot 1
2024-08-29 18:51:59.908 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Set usercode for lock.lock_front_entry slot 2
2024-08-29 18:52:00.444 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Cleared usercode for lock lock.lock_front_entry slot 3
2024-08-29 18:52:00.444 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 1.069 seconds (success: True)
2024-08-29 18:52:00.444 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 0.536 seconds (success: True)
2024-08-29 18:52:00.445 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 0.001 seconds (success: True)
2024-08-29 18:52:27.622 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 1 because it is out of sync
2024-08-29 18:52:27.623 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 2 because it is out of sync
2024-08-29 18:52:27.623 ERROR (MainThread) [custom_components.lock_code_manager.binary_sensor] Updating lock.lock_front_entry code slot 3 because it is out of sync
2024-08-29 18:52:29.396 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Set usercode for lock.lock_front_entry slot 1
2024-08-29 18:52:29.931 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Set usercode for lock.lock_front_entry slot 2
2024-08-29 18:52:30.469 INFO (MainThread) [custom_components.lock_code_manager.binary_sensor] 01J5NT0BB1BS35K7S5ZDN5RRE8 (Home Locks): Cleared usercode for lock lock.lock_front_entry slot 3
2024-08-29 18:52:30.469 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 1.073 seconds (success: True)
2024-08-29 18:52:30.470 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 0.538 seconds (success: True)
2024-08-29 18:52:30.470 DEBUG (MainThread) [custom_components.lock_code_manager.coordinator] Finished fetching lock_code_manager lock.lock_front_entry data in 0.000 seconds (success: True)
.
.
.
<repeats every 30 seconds>

Screenshots

image

Anything else?

No response

@amura11 amura11 added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant