Compare commits

...

3 Commits

3 changed files with 14 additions and 2 deletions

View File

@ -49,6 +49,7 @@ api:
ota:
- platform: esphome
id: ratgdo_ota
sensor:
- platform: ratgdo
@ -141,13 +142,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 +167,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

View File

@ -29,6 +29,7 @@ ratgdo:
ota:
- platform: esphome
id: ratgdo_ota
binary_sensor:
- platform: ratgdo

View File

@ -32,6 +32,7 @@ ratgdo:
ota:
- platform: esphome
id: ratgdo_ota
lock:
- platform: ratgdo