From c3225ab919be33e653e8c732a1a66e0b47fabae4 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Mon, 15 May 2023 11:54:03 -0600 Subject: [PATCH] Update garage.yaml Adding additional code to immediately set the status of the garage door when the status of the fully open or fully closed sensor changes --- garage.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/garage.yaml b/garage.yaml index 3039ecf..0f8537c 100644 --- a/garage.yaml +++ b/garage.yaml @@ -67,6 +67,8 @@ binary_sensor: 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: @@ -83,6 +85,8 @@ binary_sensor: 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: