Hi,
I have an automation for each blind which opens/closes it depending on the state of a binary_sensor (separate for each blind) and then forces a 30-minute delay before waiting for the trigger again.
- alias: "Blind: Sunscreener -- Balcony Right"
id: "ureptoeivrupoervg"
trigger:
- platform: state
entity_id: sensor.blind_balcony_right_optimal_state
to: "off"
variables:
stejt: "close"
- platform: state
entity_id: sensor.blind_balcony_right_optimal_state
to: "on"
variables:
stejt: "open"
condition:
- condition: state
entity_id: input_boolean.blind_sunscreener_enable
state: "on"
action:
- service: cover.{{stejt}}_cover
target:
entity_id: cover.blind_balcony_right
- delay: "0:30:00"
mode: single
I would like to combine the individual automation for each blind into a single automation. If it weren’t for the delay action it would be easy. Is there some way of doing it, instead of the 10 individual automations I currently have?
In case it matters for the templates, all the blinds have entity_ids of the form cover.blind_[room]_[position]
and the corresponding binary_sensor is binary_sensor.blind_[room]_[position]_optimal_state
Thanks for any suggestions!