toggle door when both dry contacts are closed (#307)

This commit is contained in:
Paul Wieland 2024-07-12 11:21:39 -04:00 committed by GitHub
parent 95eabcb98d
commit 6885b566c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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: