From 2c8dc8e03dcd8b7c3c8ef13c5c74055f91c9f0db Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 1 Mar 2026 12:06:53 +0100 Subject: [PATCH] Add inverted target entities input --- sync_with_entity.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sync_with_entity.yaml b/sync_with_entity.yaml index 00bdca5..c7d67f2 100644 --- a/sync_with_entity.yaml +++ b/sync_with_entity.yaml @@ -28,6 +28,19 @@ blueprint: - light multiple: true + target_entities_inverted: + name: Target entities (inverted) + description: Entities whose state will be synced in reverse + default: [] + selector: + entity: + filter: + domain: + - input_boolean + - switch + - light + multiple: true + mode: restart max_exceeded: silent @@ -54,6 +67,11 @@ actions: data: {} target: entity_id: !input target_entities + - action: homeassistant.turn_off + metadata: {} + data: {} + target: + entity_id: !input target_entities_inverted - conditions: - condition: trigger id: "turn_off" @@ -63,3 +81,8 @@ actions: data: {} target: entity_id: !input target_entities + - action: homeassistant.turn_on + metadata: {} + data: {} + target: + entity_id: !input target_entities_inverted