-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcover.yaml
64 lines (61 loc) · 1.82 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
64
# garage door cover
#- platform: template
# covers:
# garage_door_nissan:
# friendly_name: "Garasjeport Nissan"
# value_template: "{{ states('sensor.port_nissan')|float > 0 }}"
# open_cover:
# service: switch.turn_on
# entity_id: switch.garage_nissan
# close_cover:
# service: switch.turn_on
# entity_id: switch.garage_nissan
# stop_cover:
# service: switch.turn_on
# entity_id: switch.garage_nissan
# icon_template: >
# {% if is_state('binary_sensor.garage_nissan_door_window_sensor', 'off') %}
# mdi:garage
# {% else %}
# mdi:garage-open
# {% endif %}
#- platform: template
# covers:
# garage_door_tesla:
# friendly_name: "Garasjeport Tesla"
# value_template: "{{ states('sensor.port_tesla')|float > 0 }}"
# open_cover:
# service: switch.turn_on
# entity_id: switch.garage_tesla
# close_cover:
# service: switch.turn_on
# entity_id: switch.garage_tesla
# stop_cover:
# service: switch.turn_on
# entity_id: switch.garage_tesla
# icon_template: >
# {% if is_state('binary_sensor.garage_tesla_door_window_sensor', 'off') %}
# mdi:garage
# {% else %}
# mdi:garage-open
# {% endif %}
- platform: mqtt
name: "garage_door_nissan"
state_topic: "cmnd/garagestate_nissan/POWER2"
command_topic: "cmnd/garage_nissan/POWER"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "ON"
state_closed: "OFF"
optimistic: false
- platform: mqtt
name: "garage_door_tesla"
state_topic: "cmnd/garagestate_tesla/POWER2"
command_topic: "cmnd/garage_tesla/POWER"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "ON"
state_closed: "OFF"
optimistic: false