-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsdm230.yaml
197 lines (179 loc) · 4.83 KB
/
sdm230.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
---
substitutions:
name: sdm230
friendly_name: SDM230
ip: "10.6.6.226"
packages:
common: !include modules/common-8266.yaml
logger:
# level: DEBUG
# level: VERY_VERBOSE
# level: VERBOSE
baud_rate: 0
# levels:
uart:
baud_rate: 9600
tx_pin: GPIO1
rx_pin: GPIO3
modbus:
flow_control_pin: GPIO5
sensor:
- platform: sdm_meter
update_interval: 10s
address: 0x02
phase_a:
voltage:
name: SDM Voltage
current:
name: SDM Current
active_power:
name: SDM Active Power
apparent_power:
name: SDM Apparent Power
reactive_power:
name: SDM Reactive Power
power_factor:
name: SDM Power Factor
phase_angle:
name: SDM Phase Angle
frequency:
name: SDM Frequency
import_active_energy:
name: SDM Import Active Energy
export_active_energy:
name: SDM Export Active Energy
import_reactive_energy:
name: SDM Import Reactive Energy
export_reactive_energy:
name: SDM Export Reactive Energy
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x00
# id: controller_voltage
# name: SDM Voltage
# unit_of_measurement: V
# device_class: voltage
# accuracy_decimals: 2
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x06
# id: controller_current
# name: SDM Current
# unit_of_measurement: A
# device_class: current
# accuracy_decimals: 3
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x0C
# id: controller_active_power
# name: SDM Active Power
# unit_of_measurement: W
# device_class: power
# accuracy_decimals: 2
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x12
# id: controller_apparent_power
# name: SDM Apparent Power
# unit_of_measurement: VA
# device_class: power
# accuracy_decimals: 2
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x18
# id: controller_reactive_power
# name: SDM Reactive power
# unit_of_measurement: VAr
# device_class: power
# accuracy_decimals: 2
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x1E
# id: controller_power_factor
# name: SDM Power Factor
# accuracy_decimals: 3
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x24
# id: controller_phase_angle
# name: SDM Phase Angle
# unit_of_measurement: °
# icon: mdi:flash
# accuracy_decimals: 3
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x46
# id: controller_frequency
# name: SDM Frequency
# unit_of_measurement: Hz
# icon: mdi:current-ac
# accuracy_decimals: 2
# state_class: measurement
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x48
# id: controller_import_active_energy
# name: SDM Import Active Energy
# unit_of_measurement: kWh
# accuracy_decimals: 2
# state_class: total_increasing
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x4A
# id: controller_export_active_energy
# name: SDM Export Active Energy
# unit_of_measurement: kWh
# accuracy_decimals: 2
# state_class: total_increasing
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x4C
# id: controller_import_reactive_energy
# name: SDM Import Reactive Energy
# unit_of_measurement: kVAr
# accuracy_decimals: 2
# state_class: total_increasing
# value_type: FP32
# - platform: modbus_controller
# modbus_functioncode: read_input_registers
# address: 0x00
# offset: 0x4E
# id: controller_export_reactive_energy
# name: SDM Export Reactive Energy
# unit_of_measurement: kVAr
# accuracy_decimals: 2
# state_class: total_increasing
# value_type: FP32
# modbus_controller:
# id: modcontrol
# address: 0x02
# update_interval: 10s
# command_throttle: 10s