-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patheastronGoodwe.yaml
More file actions
168 lines (150 loc) · 3.76 KB
/
Copy patheastronGoodwe.yaml
File metadata and controls
168 lines (150 loc) · 3.76 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
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
esphome:
name: eastron-goodwe
platform: ESP8266
board: d1_mini
# Enable/Disable logging
logger:
#level: VERBOSE
#baud_rate: 0
# 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-EastronGoodwe"
password: "configesp"
captive_portal:
# Do request do Domoticz
http_request:
useragent: esphome/device
timeout: 10s
uart:
id: mod_bus
tx_pin: D7
rx_pin: D6
baud_rate: 9600
stop_bits: 1
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
on_value:
- http_request.get:
url: !lambda |-
char buf1[64];
char buf2[64];
sprintf(buf1, "%0.0f", id(pv_power).state);
sprintf(buf2, "%0.3f", id(pv_total_energy).state);
return ((std::string) "http://192.168.38.208:8080/json.htm?type=command¶m=udevice&idx=4265&nvalue=0&svalue=" + buf1 + ";" + buf2).c_str();
- 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: 100
- 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: "kWh"
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
- platform: sdm_meter
phase_a:
current:
name: "SDM220M Current"
voltage:
name: "SDM220M Voltage"
active_power:
name: "SDM220M Power"
power_factor:
name: "SDM220M Power Factor"
apparent_power:
name: "SDM220M Apparent Power"
reactive_power:
name: "SDM220M Reactive Power"
phase_angle:
name: "SDM220M Phase Angle"
frequency:
name: "SDM220M Frequency"
import_active_energy:
name: "SDM220M Import Active Energy"
export_active_energy:
name: "SDM220M Export Active Energy"
import_reactive_energy:
name: "SDM220M Import Reactive Energy"
export_reactive_energy:
name: "SDM220M Export Reactive Energy"
update_interval: 10s
address: 1