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
This commit is contained in:
Jason Williams 2023-05-15 11:54:03 -06:00
parent 9ebe7e5a82
commit c3225ab919

View File

@ -67,6 +67,8 @@ binary_sensor:
on_press: on_press:
then: then:
- lambda: |- - lambda: |-
id(garage_door).current_operation = COVER_OPERATION_IDLE;
id(garage_door).position = COVER_OPEN;
id(garage_door_state).publish_state("Open"); id(garage_door_state).publish_state("Open");
on_release: on_release:
then: then:
@ -83,6 +85,8 @@ binary_sensor:
on_press: on_press:
then: then:
- lambda: |- - lambda: |-
id(garage_door).current_operation = COVER_OPERATION_IDLE;
id(garage_door).position = COVER_CLOSED;
id(garage_door_state).publish_state("Closed"); id(garage_door_state).publish_state("Closed");
on_release: on_release:
then: then: