#What am I missing?

1 messages · Page 1 of 1 (latest)

icy field
#

Error:extra keys not allowed @ data['actions'][0]['data_template']. Got None extra keys not allowed @ data['actions'][0]['service']. Got None extra keys not allowed @ data['actions'][0]['target']. Got None.

https://dpaste.org/TPDbg

trim wraith
#

A lot of those should be items of a list (should have a dash preceding the line)

icy field
#

🤔

trim wraith
#

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

icy field
#

ah ok. let me try that suggestion 🙂

trim wraith
#

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

icy field
#

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
👏

trim wraith
#

Examples you’re looking at are likely quite outdated.