Hello! I tried to make own automation, based on aderusha’s link_multiple_switches.
The code:
blueprint:
name: Link Multiple Covers
description: 'Link multiple covers together v1.0.0 based on aderusha's link_multiple_switches'
domain: automation
homeassistant:
min_version: 2022.5.0
input:
covers:
name: Covers Entites
selector:
entity:
domain: cover
multiple: true
source_url: https://github.com/nikerossxp
variables:
covers: !input covers
trigger:
- platform: state
entity_id: !input covers
mode: queued
max_exceeded: silent
condition:
- condition: template
value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'
- condition: template
value_template: '{{ trigger.to_state.context.parent_id is none or (trigger.to_state.context.id != this.context.id and trigger.to_state.context.parent_id != this.context.id) }}'
action:
- service: cover.{{ trigger.to_state.state }}_cover
target:
entity_id: '{{ expand(covers) | selectattr("entity_id", "!=", trigger.entity_id)
| map(attribute="entity_id") | list }}'
Is working for open, but for close - not, cause sends invalid command cover.closeD_cover, based on trigger.to_state.state CLOSED, not CLOSE. How to fix it?