#What am I missing?
1 messages · Page 1 of 1 (latest)
A lot of those should be items of a list (should have a dash preceding the line)
🤔
I think you have 7? separate actions…
actions:
- action 1 definition
data: data for action 1
- action 2 definition
entity_id: whatever for action 2
- etc
But the same applies to triggers and conditions
ah ok. let me try that suggestion 🙂
Use the UI to make an automation or script, and then switch over to YAML mode in the UI to check out the YAML it creates
first error gone since adding actions:
new error 🙂
Error:Unable to determine action @ data['actions'][2]. Got {'target': {'entity_id': 'media_player.master_bedroom'}} Unable to determine action @ data['actions'][5]. Got {'target': {'entity_id': 'media_player.master_bedroom'}} Unable to determine action @ data['actions'][8]. Got {'target': {'entity_id': 'media_player.master_bedroom'}}.
I'll take your suggestion on creating in UI then viewing the YAML. I was trying to use examples from the HA community
maybe if I remove target: and just use entity_id: I'll give that a try before going to the UI. 🙂
just using entity_id appears to have fixed it. thanks for the direction on multiple actions
👏
Examples you’re looking at are likely quite outdated.