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
|
binary_sensor.is_off: ${id_prefix}_dry_contact_close
|
||||||
then:
|
then:
|
||||||
- cover.open: ${id_prefix}_garage_door
|
- cover.open: ${id_prefix}_garage_door
|
||||||
|
else:
|
||||||
|
- cover.toggle: ${id_prefix}_garage_door
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: "${id_prefix}_dry_contact_close"
|
id: "${id_prefix}_dry_contact_close"
|
||||||
pin:
|
pin:
|
||||||
|
|
|
@ -101,6 +101,8 @@ binary_sensor:
|
||||||
binary_sensor.is_off: ${id_prefix}_dry_contact_close
|
binary_sensor.is_off: ${id_prefix}_dry_contact_close
|
||||||
then:
|
then:
|
||||||
- cover.open: ${id_prefix}_garage_door
|
- cover.open: ${id_prefix}_garage_door
|
||||||
|
else:
|
||||||
|
- cover.toggle: ${id_prefix}_garage_door
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: "${id_prefix}_dry_contact_close"
|
id: "${id_prefix}_dry_contact_close"
|
||||||
pin:
|
pin:
|
||||||
|
|
Loading…
Reference in New Issue