Created
September 13, 2023 16:42
-
-
Save robinsmidsrod/918f972c690f5d15d3d93f8b6a37002d to your computer and use it in GitHub Desktop.
garate gate cover
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cover: | |
- platform: template | |
covers: | |
garage_gate: | |
device_class: garage | |
friendly_name: "Garage Gate" | |
value_template: | | |
{% if is_state('binary_sensor.garage_gate', 'off') %} | |
closed | |
{% else %} | |
open | |
{% endif %} | |
icon_template: | | |
{% if is_state('binary_sensor.garage_gate', 'off') %} | |
mdi:garage | |
{% else %} | |
mdi:garage-open | |
{% endif %} | |
open_cover: | |
service: switch.turn_on | |
data: | |
entity_id: switch.garage_gate_motor | |
close_cover: | |
service: switch.turn_on | |
data: | |
entity_id: switch.garage_gate_motor | |
stop_cover: | |
service: switch.turn_on | |
data: | |
entity_id: switch.garage_gate_motor | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment