-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmodbus-goodwe.yaml
More file actions
128 lines (111 loc) · 2.6 KB
/
Copy pathmodbus-goodwe.yaml
File metadata and controls
128 lines (111 loc) · 2.6 KB
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
esphome:
name: modbus
platform: ESP8266
board: d1_mini
# Enable/Disable logging
logger:
#level: VERBOSE
baud_rate: 0 ## Must be 0 to prevent reading issues and buffer overflows
# Enable Home Assistant API
api:
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESP-Modbus"
password: "configesp"
captive_portal:
uart:
id: mod_bus
tx_pin: D7
rx_pin: D6
baud_rate: 9600
stop_bits: 1
rx_buffer_size: 1024
modbus:
flow_control_pin: D5
id: modbus1
send_wait_time: 1000ms
modbus_controller:
- id: goodwe
## the Modbus device addr (defaults to 247 (0xF7) for goodwe inverters)
address: 0xF7
modbus_id: modbus1
setup_priority: -10
#command_throttle: 250ms
update_interval: 15s
sensor:
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_temperature
name: "Temperature"
address: 0x030F
unit_of_measurement: "C"
register_type: holding
value_type: S_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_power
name: "Feeding Power"
address: 0x0233
unit_of_measurement: "W"
register_type: holding
value_type: U_WORD
accuracy_decimals: 0
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_total_energy
name: "Total Energy"
address: 0x0313
unit_of_measurement: "kWh"
register_type: holding
value_type: U_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_day_energy
name: "Day Energy"
address: 0x0236
unit_of_measurement: "kWh"
register_type: holding
value_type: U_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_e_day
name: "E-Day"
address: 0x0320
unit_of_measurement: "kW"
register_type: holding
value_type: U_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_p_ac
name: "Pac"
address: 0x0353
unit_of_measurement: "W"
register_type: holding
value_type: U_WORD
accuracy_decimals: 0
- platform: modbus_controller
modbus_controller_id: goodwe
id: pv_total_hours
name: "Total Hours"
address: 0x0314
unit_of_measurement: "H"
register_type: holding
value_type: U_DWORD
accuracy_decimals: 0