-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover.yaml
63 lines (62 loc) · 1.76 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#Erstellen von Shelly Add-On als Garagentor für HK Integration
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garagentor"
value_template: >-
{% if is_state('binary_sensor.garagentor_external_input','on') %}
Open
{% else %}
Closed
{% endif %}
open_cover:
service: switch.turn_on
data:
entity_id: switch.garagentor
close_cover:
service: switch.turn_on
data:
entity_id: switch.garagentor
stop_cover:
service: switch.turn_on
data:
entity_id: switch.garagentor
icon_template: >-
{% if is_state('binary_sensor.garagentor_external_input','on') %}
mdi:garage-open-variant
{% else %}
mdi:garage-variant
{% endif %}
##Vorbereitung für neue Steuerung
#- platform: template
# covers:
# garage_door:
# device_class: garage
# friendly_name: "Garagentor"
# value_template: >-
# {% if is_state('binary_sensor.garagentor_external_input','on') %}
# Open
# {% endif %}
# {% if is_state('NEUERSENSOR','off') %}
# Closed
# {% endif %}
# open_cover:
# service: switch.turn_on
# data:
# entity_id: switch.garagentor
# close_cover:
# service: switch.turn_on
# data:
# entity_id: switch.garagentor
# stop_cover:
# service: switch.turn_on
# data:
# entity_id: switch.garagentor
# icon_template: >-
# {% if is_state('binary_sensor.garagentor_external_input','on') %}
# mdi:garage-open-variant
# {% endif %}
# {% if is_state('NEUERSENSOR','off') %}
# mdi:garage-variant
# {% endif %}