Hi,
trying to use the new repeat feature in automation but coming across the below error when validating?
Invalid config for [automation]: expected a dictionary for dictionary value @ data['action'][0]['repeat']['sequence'][0]['data_template']. Got None
extra keys not allowed @ data['action'][0]['repeat']['sequence'][0]['message']. Got None
extra keys not allowed @ data['action'][0]['repeat']['sequence'][0]['target']. Got None
extra keys not allowed @ data['action'][0]['repeat']['sequence'][0]['title']. Got None. (See /root/.homeassistant/configuration.yaml, line 1680).
this is the code I am using
- id: id_157
alias: alexa notify on flood detection
trigger:
- platform: state
entity_id: sensor.kitchen_flood_sensor_flood
to: '2'
- platform: state
entity_id: sensor.master_bed_bath_flood_sensor_flood
to: '2'
- platform: state
entity_id: sensor.water_tank_flood_sensor_flood
to: '2'
condition:
action:
- alias: Repeat the sequence UNTIL the conditions are true
repeat:
sequence:
- service: notify.alexa_media
data_template:
target:
- media_player.living_room
- media_player.kitchen_spot
- media_player.hallway_dot
- media_player.1st_floor
- media_player.man_cave
- media_player.master_bed
title: "Flood Detected in the {{ trigger.to_state.attributes.friendly_name }}"
message: >
"Attention. a flood has been detected in the {{ trigger.to_state.attributes.friendly_name }}. Attention. a flood has been detected in the {{ trigger.to_state.attributes.friendly_name }}"
data:
type: announce
method: all
- delay:
minutes: 2
until:
# Did it work?
- condition: state
entity_id: alert.master_bathroom_flood
state: 'off'
- condition: state
entity_id: alert.kitchen_flood
state: 'off'
- condition: state
entity_id: alert.water_tank_flood
state: 'off'