home-assistant / frontend

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

UPB Integration offers incorrect choice for 'Deactivate Link' #17006

Closed jc508 closed 1 year ago

jc508 commented 1 year ago

Checklist

Describe the issue you are experiencing

In an Automation I am using 'Universal Powerline Bus (UPB): Deactivate link' The 'choose entity' button shows a list of switches and Dimmers but no Links (scenes) If the automation.yaml file is manually edited and the correct name inserted eg 'scene.link007_entry' then it works as expected.

Describe the behavior you expected

Seeing the service is 'deactivate link' I expected a list of links (scenes)

Steps to reproduce the issue

1. 2. 3. ... image

What version of Home Assistant Core has the issue?

2023.6.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 114.0.2

Which operating system are you using to run this browser?

Windows 10 Pro

State of relevant entities

No response

Problem-relevant frontend configuration

-- manually edited to insert correct entity
- id: '1687425730146'
  alias: Entry Light Auto Off
  description: de-activate entry light
  trigger:
  - platform: state
    entity_id:
    - timer.entry_light_timer
    from: active
  condition:
  - condition: state
    entity_id: light.entry_light
    state: 'on'
  action:
  - service: upb.link_deactivate
    data: {}
    target:
      entity_id: scene.link007_entry
  mode: single

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 1 year ago

The authors of this component have defined this service as applying as only to lights:

https://github.com/home-assistant/core/blob/dev/homeassistant/components/upb/services.yaml#L68

link_deactivate:
  name: Deactivate link
  description: Deactivate a UPB scene.
  target:
    entity:
      integration: upb
      domain: light

If scenes should be in this list, then this service call needs to be updated in core repository for scenes as well. So this is not a frontend issue.

Please file an issue for this in home-assistant/core.