home-assistant / frontend

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

Target selection is missing in automation for lights. and switch. domains (at least) #22836

Open akrupnov opened 4 hours ago

akrupnov commented 4 hours ago

Checklist

Describe the issue you are experiencing

Target selection is missing in automations for lights. and switch. domain actions. See screenshot below - works fine for generic homeassistant action and for climate

image

Describe the behavior you expected

I'd like to be able to chose entity id, area, label etc - same as for climate or homeassistant generic actio s

Steps to reproduce the issue

  1. Go to create new automation dialog
  2. Click add action
  3. Chose lights.turn_on

Expected: see targets and be able to chose them Actual: empty UI

What version of Home Assistant Core has the issue?

2024.11.1

What was the last working version of Home Assistant Core?

Unknown

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

akrupnov commented 4 hours ago

Looks like recently it was also reported on the community portal https://community.home-assistant.io/t/missing-the-target-select-options-in-automation-editor/780241

karwosts commented 3 hours ago

I've seen this reported from time to time, but it always ends up just resolving itself for users, or being some kind of issue with caching or some custom cards.

You definitely tried the safe mode, & cleared caches?

In my install switch.turn_off definitely still has the target selectors.

Check the browser console for errors as well.

akrupnov commented 3 hours ago

Yeah. Tried all that including totally never used browsers. Console is absolutely clean. When I edit action yaml and switch it to homeassistant.turn_on I can edit targets and then change action again to lights via yaml but targets immediately disappear. I actually discovered this issue via another problem/quirk i was investigating for Node Red where they allegedly removed targets for actions on purpose "to align" with Homeassiatant https://github.com/zachowj/node-red-contrib-home-assistant-websocket/issues/1648#issuecomment-2412379934