This commit is contained in:
Matt MacAdam 2024-06-23 09:39:20 -05:00 committed by GitHub
commit 2f1667e3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 2 deletions

View File

@ -141,13 +141,20 @@ binary_sensor:
name: "Dry contact open"
entity_category: diagnostic
filters:
- delayed_on_off: 500ms
- delayed_on: 50ms
- delayed_off: 500ms
on_press:
- delay: 50ms
- if:
condition:
binary_sensor.is_off: ${id_prefix}_dry_contact_close
then:
- cover.open: ${id_prefix}_garage_door
- if:
condition:
binary_sensor.is_on: ${id_prefix}_dry_contact_close
then:
- cover.toggle: ${id_prefix}_garage_door
- platform: gpio
id: "${id_prefix}_dry_contact_close"
pin:
@ -159,8 +166,10 @@ binary_sensor:
name: "Dry contact close"
entity_category: diagnostic
filters:
- delayed_on_off: 500ms
- delayed_on: 50ms
- delayed_off: 500ms
on_press:
- delay: 50ms
- if:
condition:
binary_sensor.is_off: ${id_prefix}_dry_contact_open