Compare commits
2 Commits
355769b860
...
2f1667e3ec
Author | SHA1 | Date |
---|---|---|
Matt MacAdam | 2f1667e3ec | |
Matt MacAdam | 7f6cb19983 |
13
base.yaml
13
base.yaml
|
@ -141,13 +141,20 @@ binary_sensor:
|
||||||
name: "Dry contact open"
|
name: "Dry contact open"
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
filters:
|
filters:
|
||||||
- delayed_on_off: 500ms
|
- delayed_on: 50ms
|
||||||
|
- delayed_off: 500ms
|
||||||
on_press:
|
on_press:
|
||||||
|
- delay: 50ms
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
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
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
binary_sensor.is_on: ${id_prefix}_dry_contact_close
|
||||||
|
then:
|
||||||
|
- cover.toggle: ${id_prefix}_garage_door
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: "${id_prefix}_dry_contact_close"
|
id: "${id_prefix}_dry_contact_close"
|
||||||
pin:
|
pin:
|
||||||
|
@ -159,8 +166,10 @@ binary_sensor:
|
||||||
name: "Dry contact close"
|
name: "Dry contact close"
|
||||||
entity_category: diagnostic
|
entity_category: diagnostic
|
||||||
filters:
|
filters:
|
||||||
- delayed_on_off: 500ms
|
- delayed_on: 50ms
|
||||||
|
- delayed_off: 500ms
|
||||||
on_press:
|
on_press:
|
||||||
|
- delay: 50ms
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
binary_sensor.is_off: ${id_prefix}_dry_contact_open
|
binary_sensor.is_off: ${id_prefix}_dry_contact_open
|
||||||
|
|
Loading…
Reference in New Issue