hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.2k stars 1.26k forks source link

Updates to HACS items do not cause automations to trigger #3980

Closed geofffarmer closed 2 weeks ago

geofffarmer commented 3 weeks ago

System Health details

System Information

version core-2024.8.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.44-haos
arch x86_64
timezone Europe/London
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4988 Installed Version | 1.34.0 Stage | running Available Repositories | 1391 Downloaded Repositories | 19 HACS Data | ok
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 5 August 2025 at 01:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | false remote_server | eu-central-1-6.ui.nabu.casa certificate_status | ready instance_id | e6f4346f8ff9413dac2e3d1b151a9361 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.0 -- | -- update_channel | stable supervisor_version | supervisor-2024.08.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 116.7 GB disk_used | 26.7 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Samba share (12.3.2), Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0), Z-Wave JS UI (3.10.0), WireGuard (0.10.2), Duck DNS (1.18.0), Zigbee2MQTT (1.39.1-1), ESPHome (2024.7.3), Whisper (2.1.2), Piper (1.5.2), Mosquitto broker (6.4.1), openWakeWord (1.10.0), OpenSpeedTest (v2.0.5), Matter Server (6.4.1)
Dashboards dashboards | 5 -- | -- resources | 13 views | 17 mode | storage
Recorder oldest_recorder_run | 9 August 2024 at 01:01 -- | -- current_recorder_run | 18 August 2024 at 02:06 estimated_db_size | 896.92 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

I have an automation that contains the following trigger. The automation does not trigger when there is an update to Mushroom Cards.

platform: state entity_id: update.mushroom_update to: "on" id: Mushroom Cards Update Available variables: type: HACS front end trigger_message: >- Mushroom Cards Update Available {{ state_attr('update.mushroom_update', 'latest_version') }}

Reproduction steps

  1. Use experimental features
  2. Install Mushroom Cards
  3. Create an automation with the given trigger 4.Wait for an update to Mushroom Cards ...

Debug logs

.

Diagnostics dump

No response

hacs-bot[bot] commented 3 weeks ago

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:

tjorim commented 3 weeks ago

Updates are not instant. Did the actual update entity show an update? Anyway, this is a HA automation and not related to HACS directly.

Also, could you share the automation yaml correctly? As it's posted now it's not properly formatted.

geofffarmer commented 3 weeks ago

Hi @tjorim

Thanks for looking at this.

I had 2 updates appear this morning and it may be useful for you if I explain what I think is happening.

2024-08-19 08_22_59-Greenshot 2024-08-19 08_24_34-Greenshot

Both these update entities seem to have gone to the 'Update Available' state at 02:01:29. I think this is because, at 02:01 my HA instance is set to restart (just to keep things healthy). My guess is that, only during the restart does the availablity of an update get 'registered'. Guessing further, this occurs before HA is ready to trigger automations, so my automation does not trigger.

geofffarmer commented 3 weeks ago

I'm not sure how to format my yaml. I'm using the Code option. What else is there?

ludeeus commented 2 weeks ago

If you need help with your automations, use the HA discord or forums. This is not a bug in HACS.