From f62e04aef16a963b6f4a46df42f9a107cc3d89d9 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Thu, 11 Apr 2024 15:55:06 -0600 Subject: [PATCH] Removing faulty onpress/onrelease code from garage.yaml --- garage.yaml | 54 +++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/garage.yaml b/garage.yaml index e97fd41..2386114 100644 --- a/garage.yaml +++ b/garage.yaml @@ -63,37 +63,39 @@ binary_sensor: device_class: door id: garage_door_open filters: - - invert: - on_press: - then: - - lambda: |- - id(garage_door).current_operation = COVER_OPERATION_IDLE; - id(garage_door).position = COVER_OPEN; - id(garage_door_state).publish_state("Open"); - on_release: - then: - - lambda: |- - id(garage_door).current_operation = COVER_OPERATION_CLOSING; - id(garage_door).publish_state(); - id(garage_door_state).publish_state("Moving"); + - invert + # on_press: + # then: + # - lambda: |- + # //id(garage_door).current_operation = COVER_OPERATION_IDLE; + # //id(garage_door).position = COVER_OPEN; + # //id(garage_door_state).publish_state("Open"); + # on_release: + # then: + # - lambda: |- + # //id(garage_door).current_operation = COVER_OPERATION_CLOSING; + # //id(garage_door).publish_state(); + # //id(garage_door_state).publish_state("Moving"); + - platform: gpio pin: D1 id: garage_door_closed filters: - - invert: + - invert internal: true - on_press: - then: - - lambda: |- - id(garage_door).current_operation = COVER_OPERATION_IDLE; - id(garage_door).position = COVER_CLOSED; - id(garage_door_state).publish_state("Closed"); - on_release: - then: - - lambda: |- - id(garage_door).current_operation = COVER_OPERATION_OPENING; - id(garage_door).publish_state(); - id(garage_door_state).publish_state("Moving"); + # on_press: + # then: + # - lambda: |- + # //id(garage_door).current_operation = COVER_OPERATION_IDLE; + # //id(garage_door).position = COVER_CLOSED; + # //id(garage_door_state).publish_state("Closed"); + # on_release: + # then: + # - lambda: |- + # //id(garage_door).current_operation = COVER_OPERATION_OPENING; + # //id(garage_door).publish_state(); + # //id(garage_door_state).publish_state("Moving"); + - platform: gpio pin: D2 name: "Side Door"