Skip to content

Commit 6885b56

Browse files
authored
toggle door when both dry contacts are closed (#307)
1 parent 95eabcb commit 6885b56

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

base.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ binary_sensor:
149149
binary_sensor.is_off: ${id_prefix}_dry_contact_close
150150
then:
151151
- cover.open: ${id_prefix}_garage_door
152+
else:
153+
- cover.toggle: ${id_prefix}_garage_door
152154
- platform: gpio
153155
id: "${id_prefix}_dry_contact_close"
154156
pin:

base_secplusv1.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ binary_sensor:
101101
binary_sensor.is_off: ${id_prefix}_dry_contact_close
102102
then:
103103
- cover.open: ${id_prefix}_garage_door
104+
else:
105+
- cover.toggle: ${id_prefix}_garage_door
104106
- platform: gpio
105107
id: "${id_prefix}_dry_contact_close"
106108
pin:

0 commit comments

Comments
 (0)