home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.97k stars 2.71k forks source link

Number Entity Cannot be accessed using Labels as a Reference #21744

Open jvmahon opened 1 month ago

jvmahon commented 1 month ago

Checklist

Describe the issue you are experiencing

Background:

This relates to the "Number" entity and use of the "Labels" field to reference those entities in scripts and automations.

Problem:

Attempts to reference "Number" entities fails when trying to identify them by a Label.

Recreating the Issue:

  1. I have a large number of "Number" entities that are crated by the Matter integration which I have labeled using the "Labels" feature, as shown in this image:
image
  1. I then use these Labels in a script to select the number entities as shown below:
image

And in YAML, shown as:

action: number.set_value
metadata: {}
data:
  value: "1.0"
target:
  label_id:
    - on_transition_time

However, the script does not appear to be able to identify the entities using the labels. Expected behavior and problem are further described below.

Describe the behavior you expected

The Problem:

Use of labels as shown above appears to be ineffective. This is demonstrate in two ways:

Steps to reproduce the issue

(already described above).

What version of Home Assistant Core has the issue?

2024.08.02

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

windows 10 and windows 11

State of relevant entities

"Number" entity (https://developers.home-assistant.io/docs/core/entity/number) as used in Matter implementation. I am not sure this Label issue has anything to do with "Matter" integration, but that is the integration I observed the behavior on.

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 1 month ago

Hmm I can't reproduce, it works perfectly for me 😕