forked from aiolos/ESPHome-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Solis-4G.yaml
142 lines (124 loc) · 2.69 KB
/
Solis-4G.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
esphome:
name: solis
friendly_name: solis
esp8266:
board: d1_mini
# Enable logging
logger:
baud_rate: 0
level: debug
# Enable Home Assistant API
api:
ota:
password: "06e5385a867b05530f6312b74e2c5880"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESPHome Fallback Hotspot"
password: "configesp"
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: ginlong
modbus_id: modbus1
setup_priority: -10
update_interval: 60s
sensor:
- platform: modbus_controller
modbus_controller_id: ginlong
name: "Temperatuur omvormer"
address: 3041
register_type: read
value_type: U_WORD
accuracy_decimals: 1
unit_of_measurement: °C
device_class: temperature
state_class: measurement
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: ginlong
name: "GenerationToday"
address: 3014
register_type: read
value_type: U_WORD
accuracy_decimals: 1
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: ginlong
name: "GenerationTotal"
address: 3008
register_type: read
value_type: U_DWORD
unit_of_measurement: kWh
device_class: energy
- platform: modbus_controller
modbus_controller_id: ginlong
name: "DC_PV1"
address: 3021
register_type: read
value_type: U_WORD
unit_of_measurement: V
device_class: energy
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: ginlong
name: "DC_PV2"
address: 3023
register_type: read
value_type: U_WORD
unit_of_measurement: V
device_class: energy
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: ginlong
name: "ActualPower"
address: 3004
register_type: read
value_type: U_DWORD
unit_of_measurement: W
device_class: energy
#- platform: modbus_controller
# modbus_controller_id: ginlong
# name: "AC Volt"
# address: 3035
# register_type: read
# value_type: U_WORD
# unit_of_measurement: V
# device_class: energy
# filters:
# - multiply: 0.1
#- platform: modbus_controller
# modbus_controller_id: ginlong
# name: "AC Current"
# address: 3038
# register_type: read
# value_type: U_WORD
# unit_of_measurement: A
# device_class: energy
#- platform: modbus_controller
# modbus_controller_id: ginlong
# name: "AC Frequency"
# address: 3042
# register_type: read
# value_type: U_WORD
# unit_of_measurement: Hz
# device_class: energy
# filters:
# - multiply: 0.01