core: Automation did not start with error not a valid value for dictionary value @ data['entity_id']

The problem

I’ve created an automation but the automation is not executed

What version of Home Assistant Core has the issue?

2023.8.4

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

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

alias: "Büro: Luftreiniger steuern"
description: ""
trigger:
  - platform: time_pattern
    hours: /1
condition:
  - condition: time
    after: "09:00:00"
    before: "18:00:00"
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: "on"
  - condition: numeric_state
    entity_id: sensor.luftqualitatssensor_buero_voc
    above: 200
action:
  - type: turn_on
    device_id: 7382748ec60f4c56f3eb9d4d11fa31b5
    entity_id: 87d7d41fa52db5911fa4a0ca8c511f08
    domain: fan
  - delay:
      hours: 0
      minutes: 30
      seconds: 0
      milliseconds: 0
  - type: turn_off
    device_id: 7382748ec60f4c56f3eb9d4d11fa31b5
    entity_id: 87d7d41fa52db5911fa4a0ca8c511f08
    domain: fan
mode: single

Anything in the logs that might be useful for us?

Logger: homeassistant.components.automation.buro_luftreiniger_steuern
Source: helpers/script.py:420
Integration: Automatisierung (documentation, issues)
First occurred: 13:35:49 (1 occurrences)
Last logged: 13:35:49

Büro: Luftreiniger steuern: Error executing script. Invalid data for device at pos 1: not a valid value for dictionary value @ data['entity_id']

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

@kramttocs, @jf-navica Thanks for the input! I found the problem now, this will be fixed in Home Assistant Core 2023.11.0 👍

the actions to Increase / Decrease the fan speed aren’t present

There’s no such device action for fans, there’s only turn on, turn off and toggle, so that’s expected 👍

@joostlek Please reopen this issue as it’s a valid defect. While the service approach works, the Device action should also work. I am seeing this with a Treatlife DS03 fan/light combo switch. The Device actions for the lights work as expected whereas the fan generates the error in this ticket.