-
Notifications
You must be signed in to change notification settings - Fork 4
/
configuration.yaml
106 lines (102 loc) · 5.47 KB
/
configuration.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
sensor:
# Create SessionID in local network with user and password -> change ***
- platform: rest
resource: http://192.168.X.X/api/auth/login.json?user***&pwd=***
name: sid_token
value_template: '{{ value_json.SessionId }}'
scan_interval: 86400
# Read Datapoint comfort Temperature from OZW
- platform: rest
name: kotel_komfortni_zadana_teplota
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2687
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
# Read Datapoint reduced Temperature from OZW
- platform: rest
name: kotel_utlumova_zadana_teplota
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2688
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
# Read other Datapoints ...
- platform: rest
name: kotel_topna_krivka
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2690
value_template: '{{ value_json.Data.Value | float }}'
device_class: temperature
- platform: rest
name: kotel_modulace_horaku
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3078
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "%"
device_class: temperature
- platform: rest
name: kotel_stav_horaku
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3062
value_template: '{{ value_json.Data.Value }}'
device_class: temperature
- platform: rest
name: kotel_teplota_kotle
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3068
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
- platform: rest
name: kotel_druh_provozu
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2686
value_template: '{{ value_json.Data.Value }}'
- platform: rest
name: kotel_stav_kotle
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3059
value_template: '{{ value_json.Data.Value }}'
- platform: rest
name: kotel_teplota_zpatecky
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3074
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
- platform: rest
name: kotel_teplota_prostoru
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3209
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
- platform: rest
name: kotel_venkovni_teplota
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3212
value_template: '{{ value_json.Data.Value | float }}'
unit_of_measurement: "°C"
device_class: temperature
# Read datapoint Boiler failure
- platform: rest
name: kotel_chybove_hlaseni
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3198
value_template: '{{ value_json.Data.Value }}'
# Read datapoint really temperature hot water
- platform: rest
name: skutecna_teplota_TV
resource_template: http://192.168.X.X/api/menutree/read_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=3215
value_template: '{{ value_json.Data.Value }}'
unit_of_measurement: "°C"
device_class: temperature
# remote control commands -> write datapoint
# send comfort temperature from input_number... entit
rest_command:
odeslatdokotleteplotu:
url: 'http://192.168.X.X/api/menutree/write_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2687&Type=Numeric&Value={{ states.input_number.nastaveni_teploty_kotle.state }}'
# send Reduced temperature from second input_nuber... entity
odeslatdokotleutlumovouteplotu:
url: 'http://192.168.X.X/api/menutree/write_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2688&Type=Numeric&Value={{ states.input_number.utlumova_teplota_kotle.state }}'
# With send Value “Type of Operation” is little more complicated, you need “translate” text string to “enumeration value”
odeslatdokotle_druhprovozu:
url: >
{% if is_state("input_select.kotel_druh_provozu", "Útlum") %}
http://192.168.X.X/api/menutree/write_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2686&Type=Enumeration&Value=2
{%-elif is_state("input_select.kotel_druh_provozu", "Automatický") %}
http://192.168.X.X/api/menutree/write_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2686&Type=Enumeration&Value=1
{%-elif is_state("input_select.kotel_druh_provozu", "Komfortní") %}
http://192.168.X.X/api/menutree/write_datapoint.json?SessionId={{ states.sensor.sid_token.state }}&Id=2686&Type=Enumeration&Value=3
{% else %}
none
{% endif %}