core icon indicating copy to clipboard operation
core copied to clipboard

Activate scene in automation editor generates the wrong yaml code

Open IliasEagle opened this issue 1 year ago • 0 comments

The problem

When adding as an action Scene: Activate the following two things happen:

  1. The editor changes from UI to yaml
  2. The generated code in yaml is the following:
action: scene.turn_on
metadata: {}
service: scene.turn_on
target:
  entity_id: scene.kitchen_cabinets_full_brightness

which upon save triggers the malformed message Hand-changing the code to:

action: scene.turn_on
target:
  entity_id: scene.kitchen_cabinets_half_brightness
data: {}

is a workaround

What version of Home Assistant Core has the issue?

2024.10.1

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

Automation editor

Link to integration documentation on our website

https://www.home-assistant.io/docs/automation/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

IliasEagle avatar Oct 10 '24 23:10 IliasEagle