From 6885b566c2c34b41cafff4a4f91582341ec76c5f Mon Sep 17 00:00:00 2001 From: Paul Wieland
Date: Fri, 12 Jul 2024 11:21:39 -0400 Subject: [PATCH] toggle door when both dry contacts are closed (#307) --- base.yaml | 2 ++ base_secplusv1.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/base.yaml b/base.yaml index 5fccf263..881eb974 100644 --- a/base.yaml +++ b/base.yaml @@ -149,6 +149,8 @@ binary_sensor: binary_sensor.is_off: ${id_prefix}_dry_contact_close then: - cover.open: ${id_prefix}_garage_door + else: + - cover.toggle: ${id_prefix}_garage_door - platform: gpio id: "${id_prefix}_dry_contact_close" pin: diff --git a/base_secplusv1.yaml b/base_secplusv1.yaml index aafdaa83..0f94435a 100644 --- a/base_secplusv1.yaml +++ b/base_secplusv1.yaml @@ -101,6 +101,8 @@ binary_sensor: binary_sensor.is_off: ${id_prefix}_dry_contact_close then: - cover.open: ${id_prefix}_garage_door + else: + - cover.toggle: ${id_prefix}_garage_door - platform: gpio id: "${id_prefix}_dry_contact_close" pin: