-
Notifications
You must be signed in to change notification settings - Fork 33
/
script_danfoss_ally_configure.yaml
210 lines (210 loc) · 5.78 KB
/
script_danfoss_ally_configure.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
---
alias: Danfoss Ally TRV configuration
sequence:
- variables:
ieee: "{{ (device_attr(device, 'identifiers')|list)[0][1] }}"
default_tries: 3
- alias: Configure reporting of local_temperature in Thermostat cluster
service: zha_toolkit.conf_report
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 0
tries: "{{ default_tries }}"
event_done: zha_done
reportable_change: 20
max_interval: 300
min_interval: 19
- alias: Read back reporting configuration, for debugging
service: zha_toolkit.conf_report_read
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 0
tries: "{{ default_tries }}"
event_done: zha_done
- alias: Set lower limit for setpoint
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 21
attr_val: "{{ ( set_min_temperature | float * 100) | int }}"
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set upper limit for setpoint
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 22
attr_val: "{{ ( set_max_temperature | float * 100) | int }}"
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set Display rotation
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 516
attribute: 16384
attr_val: "{{ 0 if view_direction else 1 }}"
manf: 4678
event_done: zha_done
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set open window detection
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16465
attr_val: "{{ 1 if enable_open_window else 0 }}"
manf: 4678
event_done: zha_done
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Check if window open reporting is configured, for debugging
service: zha_toolkit.conf_report_read
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16384
manf: 4678
tries: "{{ default_tries }}"
event_done: zha_done
- alias: Set TRV orientation (horizontal/vertical)
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16404
attr_val: "{{ 1 if orientation else 0 }}"
manf: 4678
event_done: zha_done
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set time
service: zha_toolkit.misc_settime
data:
ieee: "{{ ieee }}"
event_done: zha_done
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set time status to synchronised
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 10
attribute: 1
attr_val: 2
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
- alias: Set covered mode
service: zha_toolkit.attr_write
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16406
attr_val: "{{ 1 if covered else 0 }}"
manf: 4678
tries: "{{ default_tries}}"
csvout: danfoss_config.csv
- alias: Check heat request reporting configuration
service: zha_toolkit.conf_report_read
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16433
manf: 4678
tries: "{{ default_tries }}"
event_done: zha_done
- alias: Read Heat Supply Request
service: zha_toolkit.attr_read
data:
ieee: "{{ ieee }}"
cluster: 513
attribute: 16433
manf: 4678
tries: "{{ default_tries }}"
csvout: danfoss_config.csv
description: >-
A script that configures a Danfoss Ally TRV zigbee thermostat. You can listen
on the 'zha_done' event to see some of the configuration results. Sets report
configuration and enables window open function.
fields:
device:
name: Ally TRV Device
description: A Danfoss Ally Thermostatic Regulation Valve (TRV) to configure
required: true
selector:
device:
manufacturer: Danfoss
entity:
domain: climate
integration: zha
set_min_temperature:
name: Min user temperature
description: The minimum temperature a user can set
default: 8
example: 8
required: true
selector:
number:
min: 8
max: 22
step: 0.5
unit_of_measurement: °C
mode: box
set_max_temperature:
name: Max user temperature
description: The maximum temperature a user can set
default: 22
example: 22
required: true
selector:
number:
min: 8
max: 22
step: 0.5
unit_of_measurement: °C
mode: box
enable_open_window:
name: Enable open window detection
description: When true, the valve detects open window and stops heating
default: true
example: true
required: true
selector:
boolean:
view_direction:
name: Viewing direction/display rotation
description: >-
* When true, the text can be read when looking towards the valve (factory
default), * When false, the text can be read when looking from the valve.
default: true
example: true
required: true
selector:
boolean:
orientation:
name: TRV orientation
description: >-
- When false, mounted horizontally, - When true, mounted vertically. This
selects the temperature gradient measured in the valve on radiator.
default: false
example: false
required: true
selector:
boolean:
covered:
name: TRV covered setting
description: >-
- When true, the radiator is covered (you should use the automation to
send temperature for external thermometer).
default: false
example: false
required: true
selector:
boolean:
mode: single
icon: mdi:thermostat