home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.64k stars 29.94k forks source link

Update services not working with the label option provided in the developer tools UI #117499

Open solomongumbie opened 4 months ago

solomongumbie commented 4 months ago

The problem

I assigned a couple of labels to my 50 something esphome devices "update.name" entities and then used the services tab under developers tools to craft a service that skips updates on all of these devices. When I run this service nothing happens, no updates are skipped. I then did some tests and noticed that it wasn't working for update.skip, update.install or update.clear_skipped when using the label option.

service: update.skip
target:
  label_id:
    - esphome_priority_update
    - esphome_standard_update
data: {}

What version of Home Assistant Core has the issue?

core-2024.5.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

update

Link to integration documentation on our website

https://www.home-assistant.io/integrations/update/

Diagnostics information

No response

Example YAML snippet

service: update.skip
target:
  label_id:
    - esphome_priority_update
    - esphome_standard_update
data: {}

Anything in the logs that might be useful for us?

I was unable to find any logs that said anything about this. Running the above snippet of YAML produced no log entries

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (update) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `update` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign update` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


update documentation update source (message by IssueLinks)

SkippyTheLost commented 3 months ago

I've been having a similar issue.

After some testing, the update.install service does not seem to work with labels, areas, or even devices, it must be directly given the update entities.

No error is given, as far as I can find, the service returns immediately.

I've tested with ESPHome, Shelly, Add-Ons, Unifi, and HACS, all of which provide update entities.

issue-triage-workflows[bot] commented 1 day ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

solomongumbie commented 1 day ago

This issue still exists. Updates can not be applied to devices by label.