-
Notifications
You must be signed in to change notification settings - Fork 6
/
solis_modbus.yaml
265 lines (265 loc) · 5.41 KB
/
solis_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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
- name: active_power
description: Active Power
unit: W
active: true
modbus:
register: 3004
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: power
- name: inverter_temp
description: Inverter temperature
unit: "°C"
active: true
modbus:
register: 3041
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: temperature
- name: total_power
description: Inverter total power generation
unit: kWh
active: true
modbus:
register: 3008
read_type: long
function_code: 4
signed: true
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: generation_today
description: Energy generated today
unit: kWh
active: true
modbus:
register: 3014
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: generation_yesterday
description: Energy generated yesterday
unit: kWh
active: true
modbus:
register: 3015
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: total_dc_output_power
description: Total DC output power
unit: W
active: true
modbus:
register: 3006
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: power
- name: energy_this_month
description: Energy generated this month
unit: kWh
active: true
modbus:
register: 3010
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: generation_last_month
description: Energy generated last month
unit: kWh
active: true
modbus:
register: 3012
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: generation_this_year
description: Energy generated this year
unit: kWh
active: true
modbus:
register: 3016
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: generation_last_year
description: Energy generated last year
unit: kWh
active: true
modbus:
register: 3018
read_type: long
function_code: 4
signed: false
homeassistant:
device: sensor
state_class: total_increasing
device_class: energy
- name: v_dc1
description: DC1 Voltage
unit: V
active: true
modbus:
register: 3021
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: voltage
- name: i_dc1
description: DC1 Current
unit: A
active: true
modbus:
register: 3022
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: current
- name: v_ac
description: AC Voltage
unit: V
active: true
modbus:
register: 3035
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: voltage
- name: i_ac
description: AC Current
unit: A
active: true
modbus:
register: 3038
read_type: register
function_code: 4
number_of_decimals: 1
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: current
# frequency currently not supported by home-assistant, topic is in discussion
- name: grid_frequency
description: Grid Frequency
unit: Hz
active: true
modbus:
register: 3042
read_type: register
function_code: 4
number_of_decimals: 2
signed: false
homeassistant:
device: sensor
state_class: measurement
device_class: frequency
- name: system_datetime
description: System DateTime
unit:
active: true
modbus:
register: [3072, 3073, 3074, 3075, 3076, 3077] # [year, month, day, hour, minute, seconds]
read_type: composed_datetime
function_code: 4
homeassistant:
device: sensor
state_class:
device_class: timestamp
- name: serial_number
description: Serial Number
unit:
active: false
modbus:
register: 3229
read_type: register
function_code: 4
number_of_decimals: 0
signed: false
homeassistant:
device: sensor
state_class:
device_class:
- name: power_limitation
description: Power limitation
unit: "%"
active: false
modbus:
register: 3051
read_type: register
function_code: 3
write_function_code: 6
number_of_decimals: 2
signed: false
homeassistant:
device: number
min: 0
max: 110
step: 0.01
state_class:
device_class:
- name: on_off
description: On/Off
unit:
active: false
modbus:
register: 3006
read_type: register
function_code: 3
write_function_code: 6
number_of_decimals: 0
signed: false
homeassistant:
device: switch
payload_on: 190
payload_off: 222
state_class:
device_class: