ronengr / hass_nuki_bt

Control Nuki Lock over bluetooth
MIT License
36 stars 7 forks source link

Lock State in HA not updated when changed with Nuki app #24

Closed Ayuus closed 11 months ago

Ayuus commented 11 months ago

System Health details

System Information

version core-2023.10.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.59
arch aarch64
timezone Europe/Amsterdam
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.33.0 Stage | running Available Repositories | 1322 Downloaded Repositories | 14
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 11.1 -- | -- update_channel | stable supervisor_version | supervisor-2023.10.1 agent_version | 1.6.0 docker_version | 24.0.6 disk_total | 56.6 GB disk_used | 8.3 GB healthy | true supported | true board | odroid-n2 supervisor_api | ok version_api | ok installed_addons | Duck DNS (1.15.0), File editor (5.6.0), Terminal & SSH (9.7.1), ESPHome (2023.10.3), OneDrive Backup (2.2.3)
Dashboards dashboards | 2 -- | -- resources | 4 views | 14 mode | storage
Recorder oldest_recorder_run | 19 oktober 2023 om 18:40 -- | -- current_recorder_run | 29 oktober 2023 om 13:50 estimated_db_size | 823.54 MiB database_engine | sqlite database_version | 3.41.2
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

Awesome integration! Setup was easy, everything works great! But, If I open the lock using HA, and close it with the Nuki app (via buetooth), then in HA, the status is still "Open". I would expect the status in HA to be updated to reflect the actual status.

Reproduction steps

1.Install and configure the lock and configure the integration. 2.Verify you can open/close the lock via the Nuki app 3.Verify that you can open/close the lock via HA

  1. Cloe the lock using HA, and verify that in HA, state is "locked"
  2. Open the lock using the Nuki app.
  3. Observer that the state in HA is still "locked" ...

Debug logs

N/A

Diagnostics dump

N/A

Ayuus commented 11 months ago

I think this is normal: the device should be paired with HA, not with Nuki app. Then everything works ok.