Repeat is an action type, so it should be in the action block. Also, Device conditions and actions do not take templates, so you will need to change those to the appropriate types… i.e. State and Service Call.
blueprint:
name: Cool Room When in AC
description: Opens vents if AC is running and the room is warmer than the thermostat.
domain: automation
input:
target_vent:
name: Vent Controller
description: Vent to be controlled.
selector:
entity:
domain: cover
device_class: damper
multiple: true
temperature_sensor:
name: Temperature Sensor
description: Temperature sensor that dictates state of vent.
selector:
entity:
domain: sensor
device_class: temperature
trigger:
- platform: numeric_state
entity_id: !input temperature_sensor
above: sensor.ecobee_temperature
condition:
- condition: state
attribute: hvac_mode
entity_id: climate.ecobee
state: cool
action:
- repeat:
for_each: !input target_vent
sequence:
- condition: template
value_template: "{{ state_attr(repeat.item, 'position') | int < 100 }}"
- service: cover.set_cover_position
target:
entity_id: "{{repeat.item}}"
data:
position: 100
mode: single
Message malformed: Entity {{ repeat.item }} is neither a valid entity ID nor a valid UUID for dictionary value @ data[‘action’][0][‘repeat’][‘sequence’][0][‘entity_id’]
Thank you so much! That seemed to work! There are a lot of “gotchyas” I still need to learn, apologies for my ignorance and I appreciate your patience!
@123 I appreciate your input as well, I used it because I am new to this syntax and am still learning, so it was my own ignorance I tested your solution out and it threw an error, Drew’s solution appears to be working but I thought I would provide that information for completeness sake on this issue, and thank you again kindly
The initial version had a missing single-quote before the word attributes.position. If you used that version then it would definitely produce an error.