-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdm72dm-v2.yaml
86 lines (76 loc) · 1.68 KB
/
sdm72dm-v2.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
esphome:
name: rh-sdm72dm-v2-inverter
friendly_name: Riehlhome SDM72DM-V2 (Inverter)
name_add_mac_suffix: true
esp32:
board: esp32-poe-iso
framework:
type: arduino
logger:
api:
ota:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
power_pin: GPIO12
uart:
id: uart_a
tx_pin: 04
rx_pin: 36
baud_rate: 19200
data_bits: 8
stop_bits: 1
modbus:
send_wait_time: 10ms
id: modbus_a
modbus_controller:
- id: modbus_controller_a
modbus_id: modbus_a
address: 0x02
update_interval: 3s
sensor:
- platform: modbus_controller
modbus_controller_id: modbus_controller_a
id: "l1_power"
name: "L1 Power"
address: 0x000C
value_type: FP32
register_type: read
device_class: "power"
state_class: "measurement"
unit_of_measurement: "W"
- platform: modbus_controller
modbus_controller_id: modbus_controller_a
id: "l2_power"
name: "L2 Power"
address: 0x000E
value_type: FP32
register_type: read
device_class: "power"
state_class: "measurement"
unit_of_measurement: "W"
- platform: modbus_controller
modbus_controller_id: modbus_controller_a
id: "l3_power"
name: "L3 Power"
address: 0x0010
value_type: FP32
register_type: read
device_class: "power"
state_class: "measurement"
unit_of_measurement: "W"
- platform: modbus_controller
modbus_controller_id: modbus_controller_a
id: "import_energy"
name: "Import Energy"
address: 0x0048
register_type: read
value_type: FP32
device_class: "energy"
state_class: "total"
unit_of_measurement: "kWh"
skip_updates: 60
accuracy_decimals: 2