-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmodbus.yaml
216 lines (191 loc) · 5.55 KB
/
modbus.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
211
212
213
214
215
216
# cat modbus.yaml
# configuration entry for a TCP connection
# com.victronenergy.grid slave: 30
# com.victronenergy.system slave: 100
# com.victronenergy.battery slave: 225
# system :
- name: victron
retry_on_empty: true
retries: 10
type: tcp
host: 192.168.1.7
port: 502
# REMARK: scan_interval: <5 can cause troubles
sensors:
- name: 'AC Consumption L1'
unit_of_measurement: "W"
slave: !secret com.victronenergy.system
address: 817
data_type: uint16
scan_interval: 3
device_class: power
- name: 'Multiplus Grid power'
unit_of_measurement: "W"
slave: !secret com.victronenergy.system
address: 820
data_type: int16
scan_interval: 3
device_class: power
- name: 'Multiplus Energy from Grid'
unit_of_measurement: "kWh"
slave: 30
address: 2603
data_type: uint16
scale: 0.01
precision: 1
scan_interval: 20
device_class: energy
state_class: total_increasing
- name: 'Multiplus Energy to Grid'
unit_of_measurement: "kWh"
slave: 30
address: 2606
data_type: uint16
scale: 0.01
precision: 1
scan_interval: 20
device_class: energy
state_class: total_increasing
- name: 'Multiplus Solar power'
unit_of_measurement: "W"
slave: !secret com.victronenergy.system
address: 850
data_type: uint16
device_class: power
- name: 'ESS Minimum SoC setpoint'
unit_of_measurement: "%"
data_type: uint16
slave: !secret com.victronenergy.system
address: 2901
scan_interval: 5
scale: 0.1
- name: 'Maximum System Grid Feed In'
unit_of_measurement: "W"
data_type: uint16
slave: !secret com.victronenergy.system
address: 2706
scale: 0.01
device_class: power
# command_on: 4000
# command_off: 40
# verify_state: false
#Battery
- name: 'Battery current'
unit_of_measurement: "A DC"
slave: !secret com.victronenergy.system
address: 841
data_type: int16
scale: 0.1
precision: 0
device_class: current
- name: 'Battery Power System'
unit_of_measurement: "W"
slave: !secret com.victronenergy.system
address: 842
data_type: int16
scale: 1.0
precision: 0
device_class: power
- name: 'Charge Power System'
unit_of_measurement: "W"
slave: !secret com.victronenergy.system
address: 860
data_type: int16
scale: 10.0
precision: 0
device_class: power
- name: 'Battery State of Charge System'
unit_of_measurement: "%"
slave: !secret com.victronenergy.system
address: 843
data_type: uint16
scale: 1
precision: 0
# Victron device over Modbus: Pylontch Battery slave: 225
- name: 'Battery current Pylon'
unit_of_measurement: "A DC"
slave: !secret com.victronenergy.battery
address: 261
data_type: int16
scale: 0.1
precision: 0
device_class: current
- name: 'Battery State of Charge'
unit_of_measurement: "%"
slave: !secret com.victronenergy.battery
address: 266
data_type: int16
scale: 0.1
precision: 0
# Victron device over Modbus: vebus
- name: 'Multiplus Critical Loads'
unit_of_measurement: "W"
slave: !secret com.victronenergy.vebus
address: 23
data_type: int16
scan_interval: 2
scale: 10.0
precision: 0
device_class: power
- name: 'Grid Voltage L1 in'
unit_of_measurement: "V AC"
slave: !secret com.victronenergy.vebus
address: 3
data_type: uint16
scale: 0.1
offset: 0
precision: 2
device_class: voltage
- name: 'Multi Voltage L1 out'
unit_of_measurement: "V AC"
slave: !secret com.victronenergy.vebus
address: 15
data_type: uint16
scale: 0.1
offset: 0
precision: 2
device_class: voltage
# com.victronenergy.solarcharger slave: 247
- name: 'Solar Yield today'
unit_of_measurement: "kWh"
slave: !secret com.victronenergy.solarcharger
address: 784
data_type: uint16
scale: 0.1
device_class: energy
- name: 'Solar Yield yesterday'
unit_of_measurement: "kWh"
slave: !secret com.victronenergy.solarcharger
address: 786
data_type: uint16
scale: 0.1
precision: 1
device_class: energy
- name: "Multi Inverter State"
slave: !secret com.victronenergy.vebus
address: 31
data_type: uint16
# Inverter States, 0=Off;1=Low Power;2=Fault;3=Bulk;4=Absorption;5=Float;6=Storage;7=Equalize;8=Passthru;9=Inverting;10=Power assist;11=Power supply;252=Bulk protection
#Alarm Sensors
- name: 'Grid lost alarm'
slave: !secret com.victronenergy.vebus
address: 64
data_type: uint16
unit_of_measurement: "0=Ok;1=Warning"
- name: 'Multi Temperature alarm'
slave: !secret com.victronenergy.vebus
address: 34
data_type: uint16
unit_of_measurement: "0=Ok;1=Warning;2=Alarm"
- name: 'Multi Overload alarm'
slave: !secret com.victronenergy.vebus
address: 36
data_type: uint16
unit_of_measurement: "0=Ok;1=Warning;2=Alarm"
- name: 'CCGX Relay Boiler'
slave: !secret com.victronenergy.system
address: 806
data_type: uint16
unit_of_measurement: "1=Off;0=Heat"
#### Binary sensors (no binary in victron) ########
# binary_sensors: