andrew-codechimp / HA-Battery-Notes

A Home Assistant integration to provide battery notes of devices
MIT License
445 stars 83 forks source link

Entities unavailable for sleeping devices #1802

Open chemelli74 opened 4 days ago

chemelli74 commented 4 days ago

System Health details

System Information

version core-2024.6.4
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 4.4.302+
arch x86_64
timezone Europe/Rome
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4989 Installed Version | 1.34.0 Stage | running Available Repositories | 1390 Downloaded Repositories | 22
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 2 -- | -- resources | 12 views | 14 mode | storage
Recorder oldest_recorder_run | 19 giugno 2024 alle ore 19:53 -- | -- current_recorder_run | 28 giugno 2024 alle ore 19:17 estimated_db_size | 972.75 MiB database_engine | sqlite database_version | 3.44.2
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

Some device are not always connected and shows some entities as unavailable:

image

Should be "restore" entity so to avoid this issue.

Reproduction steps

  1. install Motion Shelly or any other sleeping device
  2. configure battery notes
  3. check all is fine
  4. wait for device to go sleeping
  5. recheck entities

Debug logs

No response

Diagnostics dump

No response

andrew-codechimp commented 2 days ago

Thanks for reporting this. I don't have any devices that sleep but you are correct, Battery+ should restore its state.

The new beta 2.3.10 now has this change, if you are able to validate I'll close this issue.