Searching the forum, I see this issue going back a few years, but this is new for me. Trace doesn’t work, but the automation does.
Error in describing trigger: Cannot read properties of undefined (reading ‘includes’)
Any ideas if this can be fixed?
Note, I do not use the Automation UI or Blueprints
- id: 'driveway_person_presence'
alias: Driveway person Presence
description: Turns on driveway light when persons are detected in the driveway.
trigger:
- id: person_entered_zone
platform: state
entity_id: binary_sensor.driveway_zone_person_occupancy
from: "off"
to: "on"
condition:
- condition: sun
after: sunset
before: sunrise
action:
- service: light.turn_on
target:
entity_id: light.driveway_light_light
mode: single
- id: 'driveway_person_presence'
alias: Driveway person Presence
description: Turns on driveway light when persons are detected in the driveway.
triggers:
- id: person_entered_zone
trigger: state
entity_id: binary_sensor.driveway_zone_person_occupancy
from: "off"
to: "on"
conditions:
- condition: sun
after: sunset
before: sunrise
actions:
- action: light.turn_on
target:
entity_id: light.driveway_light_light
mode: single
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which indicates to others that this topic has been solved. This helps other users find answers to similar questions.
For future reference, the syntax modification was described in the following release notes:
FWIW, I also use a text editor to create/modify my automations. Even though the old syntax was not deprecated, I updated all of my automations to the new syntax this past summer.
Rather than do a global search & replace, I took the opportunity to review each one (add some refinements where possible). It was a wee bit of a chore but I spread the work out over a few sessions and ultimately ended up with neater, future-proof automations.
I have 228 old-school automations… I think that back in 2024 I was just skimming for “Breaking changes”, but since then I have been reading the releases more closely.
For some reason I don’t always see the solution icon every time I open a thread I started.
It really feels like if this kind of stuff is going to break the system it ought to be in breaking changes…like you, I carefully review those but if stuff isn’t being deprecated and works, why would I think I need to change it?