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
1 changed files with 4 additions and 0 deletions

View File

@ -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: