-
Notifications
You must be signed in to change notification settings - Fork 2
/
configuration.yaml
159 lines (158 loc) · 6.08 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
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
rest:
- authentication: basic
resource: https://ws.dvienergi.com/API/
method: POST
scan_interval: 60
payload: '{"usermail": "[email protected]", "userpassword": "YOURPASSWORD", "fabnr":YOURFABNR, "get":{"bestgreen":0,"sensor":1,"relay":0,"timer":0,"userSettings":1}}'
sensor:
- name: "Dvi Heatpump Sensors"
json_attributes_path: $.output.sensor
value_template: "OK"
json_attributes:
- Sensor.Date
- Centralheating.Forward
- Centralheating.Return
- Storagetank.Hotwater
- Storagetank.Centralheating
- LV.Evaporator1
- Outsidetemperature
- Highpressure
- Lowpressure
- Powermeter.kW
- Powermeter.kWh
- name: "Dvi Heatpump Settings"
json_attributes_path: $.output.userSettings
value_template: "OK"
json_attributes:
- Centralheat.State
- Centralheat.Curve
- Centralheat.CurveTemp
- Centralheat.Temp
- Hotwater.State
- Hotwater.Temp
- Hotwater.Clock
- name: "Dvi Heatpump Relays"
json_attributes_path: $.output.relay
value_template: "OK"
json_attributes:
- Relay1
- Relay2
- Relay3
- Relay4
- Relay5
- Relay6
- Relay7
- Relay8
- Relay9
- Relay10
- Relay11
- Relay12
- Relay13
- Relay14
template:
- sensor:
- name: "Heatpump Power consumption"
unit_of_measurement: "kW"
device_class: power
state_class: measurement
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Powermeter.kW') }}"
- sensor:
- name: "Heatpump Power meter"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Powermeter.kWh') }}"
- sensor:
- name: "Heatpump Outside temp"
unit_of_measurement: "°C"
device_class: temperature
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Outsidetemperature') }}"
icon: "mdi:tree"
- sensor:
- name: "Heatpump CV forward"
device_class: temperature
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Centralheating.Forward') }}"
unit_of_measurement: "°C"
- sensor:
- name: "Heatpump CV return"
device_class: temperature
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Centralheating.Return') }}"
unit_of_measurement: "°C"
- sensor:
- name: "Heatpump storage tank"
device_class: temperature
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Storagetank.Centralheating') }}"
unit_of_measurement: "°C"
- sensor:
- name: "Heatpump Hotwater"
device_class: temperature
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Storagetank.Hotwater') }}"
unit_of_measurement: "°C"
icon: "mdi:water-pump"
- sensor:
- name: "Heatpump CV Curve"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Centralheat.Curve') }}"
- sensor:
- name: "Heatpump CV CurveTemp"
device_class: temperature
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Centralheat.CurveTemp') }}"
- sensor:
- name: "Heatpump Hotwater Target"
device_class: temperature
unit_of_measurement: "°C"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Hotwater.Temp') }}"
- binary_sensor:
- name: "Heatpump Hotwater on"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Hotwater.State') }}"
- binary_sensor:
- name: "Heatpump CV on"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Centralheat.State') }}"
- binary_sensor:
- name: "Heatpump 4-vejs magnetventil for afrimning"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay1') }}"
- binary_sensor:
- name: "Heatpump Magnetventil for væskeindsprøjtning"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay2') }}"
- binary_sensor:
- name: "Heatpump 3-vejs shuntventil for centralvarme Åbne"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay3') }}"
- binary_sensor:
- name: "Heatpump 3-vejs shuntventil for centralvarme Lukke"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay4') }}"
- binary_sensor:
- name: "Heatpump Cirkulationspumpe centralvarme"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay5') }}"
- binary_sensor:
- name: "Heatpump Cirkulationspumpe solvarme"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay6') }}"
- binary_sensor:
- name: "Heatpump Sumalarm for fejl"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay7') }}"
- binary_sensor:
- name: "Heatpump 24 Ukendt"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay8') }}"
- binary_sensor:
- name: "Heatpump Softstarter for kompressor"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay9') }}"
- binary_sensor:
- name: "Heatpump 3-vejs motorventil for VV prioritering"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay10') }}"
- binary_sensor:
- name: "Heatpump GND "
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay11') }}"
- binary_sensor:
- name: "Heatpump 100 Relæ for el-patron"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay12') }}"
- binary_sensor:
- name: "Heatpump Cirkulationspumpe varm side"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay13') }}"
- binary_sensor:
- name: "Heatpump CV Evt. el-trasing af CV eller/og afløb"
state: "{{ state_attr('sensor.dvi_heatpump_relays','Relay14') }}"
- binary_sensor:
- name: "Heatpump Kører"
state: "{{ state_attr('sensor.dvi_heatpump_sensors','Powermeter.kW') | float > 1 }}"
- binary_sensor:
- name: "Heatpump Hotwater Timer"
state: "{{ state_attr('sensor.dvi_heatpump_settings','Hotwater.Clock')}}"