forked from arsaboo/homeassistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover.yaml
25 lines (25 loc) · 779 Bytes
/
cover.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- platform: template
covers:
garagedoor:
friendly_name: 'Garage Door'
value_template: >
{%- if states.binary_sensor.garage_door -%}
{{ states.binary_sensor.garage_door.state == 'on' }}
{%- else -%}
true
{%- endif -%}
open_cover:
service: switch.turn_on
entity_id: switch.shelly_garage
close_cover:
service: switch.turn_on
entity_id: switch.shelly_garage
stop_cover:
service: switch.turn_on
entity_id: switch.shelly_garage
icon_template: >
{%- if states.binary_sensor.garage_door.state == 'on' -%}
mdi:garage-open
{%- else -%}
mdi:garage
{%- endif -%}