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.05k stars 29.71k forks source link

Cannot combine area and label in service calls #121400

Open DirkMu opened 2 months ago

DirkMu commented 2 months ago

The problem

I would like to switch on or off a couple of switches in different areas or floors with a specific label.

Since the combination is allowed as a target in service: switch.toggle I assumed it is used as a filter. 'All switches from floor/area XYZ that has a label 'label'. However, it appears to be not working.

What version of Home Assistant Core has the issue?

core-2024.7.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

switch

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

service: switch.toggle
target:
  floor_id: elw
  label_id: beschriftungsfelder
data: {}

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

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

Code owner commands Code owners of `switch` 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 switch` 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)


switch documentation switch source (message by IssueLinks)

DirkMu commented 1 month ago

Hi. Any chance this is reviewed?

DirkMu commented 1 week ago

Any help is much appreciated.