Skip to content

Commit

Permalink
toggle door when both dry contacts are closed (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland committed Jul 12, 2024
1 parent 95eabcb commit 6885b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions base_secplusv1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6885b56

Please sign in to comment.