Hello,
My garagedoor works with one push-button.
First example:
When the garagedoor is closed and I push on the button, then it opens it.
When I push the button while it’s opening, it stops.
When I push the button again, it closes.
Second example:
When the garagedoor is closed and I push on the button, then it opens it.
When the garagedoor is completely open and I push the button, it closes.
Third example:
When the garagedoor is completely open and I push on the button, then it closes it.
When the garagedoor is completely closed and I push the button, it opens.
I tried this :
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
open_cover:
- service: script.garagepoort_openen
close_cover:
- service: script.garagepoort_sluiten
stop_cover:
- service: script.garagepoort_stoppen
The 3 scripts are equal (for the moment ?) :
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.shelly
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.shelly
mode: single
But putting this cover on my dashboard, I see f.e. this :
Where can I mention when a button may be enabled or not ? In my case the stop button may only be enabled when the garagedoor is moving. I also want the arrows up and down both enabled, except when the door is completely open of closed (I would use a door sensor for this).
Thanks for helping me out of this !