toggle door when both dry contacts are closed (#307)
This commit is contained in:
parent
95eabcb98d
commit
6885b566c2
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue