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:
parent
9ebe7e5a82
commit
c3225ab919
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user