diff --git a/base.yml b/base.yml index 0db20ed..efb9271 100644 --- a/base.yml +++ b/base.yml @@ -42,9 +42,20 @@ binary_sensor: device_class: running entity_category: diagnostic - platform: gpio - pin: D2 - name: "${friendly_name} Motor" - + pin: D5 # # D5 dry contact for opening door + name: "${friendly_name} Dry contact open" + on_press: + - cover.open: ${id_prefix}_garage + - platform: gpio + pin: D6 # D6 dry contact for closing door + name: "${friendly_name} Dry contact close" + on_press: + - cover.close: ${id_prefix}_garage + - platform: gpio + pin: D3 # D3 dry contact for triggering light (no discrete light commands, so toggle only) + name: "${friendly_name} Dry contact light" + on_press: + - light.toggle: {id_prefix}_light number: - platform: ratgdo @@ -66,7 +77,7 @@ cover: light: - platform: ratgdo - id: ratgdo_light + id: {id_prefix}_light name: "${friendly_name} Light" ratgdo_id: ${id_prefix}