877dev
(877dev)
1
Error in describing trigger: Cannot read properties of undefined (reading ‘entity_id’)
Could anyone explain what this automation error is caused by please?
It seems to me that everything is ok.
For context, this is the use case if that’s relevant. LINK
1- The error in question:
2 - The automation yaml:
3 - The state of the entities are all recorded correctly:
4 - The entity I am writing to with the automation shows the correct last triggered state.
tom_l
2
How did you supply the entity ids?
Did you write that manually?
Entity id lists should look like this:
entity_id:
- sensor.bathroom_window_battery
- sensor.cinema_window_battery
- sensor.dining_door_battery
- sensor.dining_window_e_battery
- sensor.dining_window_w_battery
- sensor.kitchen_window_e_battery
- sensor.kitchen_window_w_battery
- sensor.lane_gate_battery
- sensor.lounge_chair_reclined_battery
- sensor.lounge_door_battery
- sensor.lounge_window_e_battery
- sensor.lounge_window_s_battery
- sensor.mailbox_door_battery
- sensor.master_bedroom_window_battery
- sensor.workshop_sliding_door_battery
- sensor.shed_door_battery
- sensor.spare_bedroom_window_battery
- sensor.study_window_s_battery
- sensor.toilet_window_battery
- sensor.workshop_window_battery
However I’m not that familiar with the UI editor so that may be the way it deals with lists.
1 Like
877dev
(877dev)
3
Hi again
I honestly don’t remember. I think I typed it manually, being relatively new to HA and googling sometimes I seem to find outdated information.
I changed it to your suggested format and it seems to like it better! So I will give that a try again - thank you!
tom_l
4
Using the editor you should be able to choose more than one entity for the trigger and it will order it like that for you.
1 Like