-
Notifications
You must be signed in to change notification settings - Fork 0
/
Homeassistant-mqtt.yaml
51 lines (50 loc) · 1.74 KB
/
Homeassistant-mqtt.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
- name: "Livingroom Blinds 1"
availability_topic: "tele/livingroomwindow/LWT"
payload_available: "Online"
payload_not_available: "Offline"
position_topic: "stat/livingroomwindow/RESULT"
position_template: |-
{% if ('Shutter1' in value_json) and ('Position' in value_json.Shutter1) %}
{{ value_json.Shutter1.Position }}
{% else %}
{% if is_state('cover.west_blinds', 'unknown') %}
50
{% else %}
{{ state_attr('cover.west_blinds','current_position') }}
{% endif %}
{% endif %}
position_open: 100
position_closed: 0
set_position_topic: "cmnd/livingroomwindow/ShutterPosition1"
command_topic: "cmnd/livingroomwindow/Backlog"
payload_open: "ShutterOpen1"
payload_close: "ShutterClose1"
payload_stop: "ShutterStop1"
retain: false
optimistic: false
qos: 1
- name: "Livingroom Blinds 2"
availability_topic: "tele/livingroomwindow/LWT"
payload_available: "Online"
payload_not_available: "Offline"
position_topic: "stat/livingroomwindow/RESULT"
position_template: |-
{% if ('Shutter2' in value_json) and ('Position' in value_json.Shutter2) %}
{{ value_json.Shutter2.Position }}
{% else %}
{% if is_state('cover.north_blinds', 'unknown') %}
50
{% else %}
{{ state_attr('cover.north_blinds','current_position') }}
{% endif %}
{% endif %}
position_open: 100
position_closed: 0
set_position_topic: "cmnd/livingroomwindow/ShutterPosition2"
command_topic: "cmnd/livingroomwindow/Backlog"
payload_open: "ShutterOpen2"
payload_close: "ShutterClose2"
payload_stop: "ShutterStop2"
retain: false
optimistic: false
qos: 1