-
Notifications
You must be signed in to change notification settings - Fork 16
/
script_danfoss_ally_configure.yaml
137 lines (137 loc) 路 3.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
---
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 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: 16465
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
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 horizontaly, - When true, mounted vertically. This
selects the temperature gradient measured in the valve on radiator.
default: false
required: true
selector:
boolean:
mode: single
icon: mdi:thermostat