• bjoran123
  • Registratie: Juni 2009
  • Laatst online: 11-11 16:19
[OPGELOST]

Hi,

Ik ben al een tijdje bezig om mijn MIN-3000TL X via de ShineWifiX te laten werken.

instructie die ik gevolgd heb, https://github.com/WilbertVerhoeff/Growatt


Ik krijg helaas geen verbinding en ik ben even kwijt waar het aan kan liggen,
Zie hier mijn ESPHome code,

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
198
199
200
201
202
203
204
205
206
207
208
209
210
substitutions:
  device_description: Growatt Inverter
  friendly_name:  Growatt Inverter
  name: Growatt
  
esphome:
  name: growatt

esp8266:
  board: esp07s

# Enable logging
logger:
  baud_rate: 0
# Enable Home Assistant API
api:

ota:
  password: "yourpassword"

wifi:
  ssid: "XXXX"
  password: "XXXXX"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "config Growatt"
    password: "XXXXX"

mqtt:
  broker: 192.168.1.247
  username: "mqtt"
  password: "mqtt"
  birth_message:
    topic: sensor/${friendly_name}/status
    payload: online
  will_message:
    topic: sensor/${friendly_name}/status
    payload: offline

captive_portal:

web_server:
  port: 80

output:
# Blue Led
  - id: light_bl
    platform: gpio
    pin: 16
# Green Led
  - id: light_gr
    platform: gpio
    pin: 0
# Red Led
  - id: light_rd
    platform: gpio
    pin: 2

uart:
  id: mod_bus
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 9600
  
modbus:
  id: modbus1
  uart_id: mod_bus

modbus_controller:
  - id: growatt
    ## the Modbus device addr
    address: 0x1
    modbus_id: modbus1
    setup_priority: -10  

sensor:
  - platform: modbus_controller
    name: "${name} DcPower"
    address: 1
    register_type: "read"
    unit_of_measurement: W
    icon: mdi:flash
    value_type: U_DWORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1

  - platform: modbus_controller
    name: "${devicename} DcPowerPV2"
    address: 10
    register_type: "read"
    unit_of_measurement: W
    device_class: power
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
  
  - platform: modbus_controller
    name: "${name} DcVoltage"
    address: 3
    register_type: "read"
    unit_of_measurement: V
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    
  - platform: modbus_controller
    name: "${name} DcInputCurrent"
    address: 4
    register_type: "read"
    unit_of_measurement: A
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    
  - platform: modbus_controller
    name: "${name} AcFrequency"
    address: 13
    register_type: "read"
    unit_of_measurement: Hz
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.01
  
  - platform: modbus_controller
    name: "${name} AcVoltage"
    address: 14
    register_type: "read"
    unit_of_measurement: V
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
  
  - platform: modbus_controller
    name: "${name} AcOutputCurrent"
    address: 15
    register_type: "read"
    unit_of_measurement: A
    icon: mdi:flash
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    
  - platform: modbus_controller
    name: "${name} AcPower"
    address: 16
    register_type: "read"
    unit_of_measurement: W
    icon: mdi:flash
    value_type: U_DWORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    
  - platform: modbus_controller
    name: "${name} EnergyToday"
    address: 26
    register_type: "read"
    unit_of_measurement: kWh
    icon: mdi:flash
    value_type: U_DWORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    
  - platform: modbus_controller
    name: "${name} EnergyTotal"
    address: 28
    register_type: "read"
    unit_of_measurement: kWh
    state_class: total_increasing
    device_class: energy
    icon: mdi:flash
    value_type: U_DWORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1

    
  - platform: modbus_controller
    name: "${name} Temperature"
    address: 32
    register_type: "read"
    unit_of_measurement: C
    icon: mdi:thermometer
    value_type: U_WORD
    accuracy_decimals: 1
    filters:
    - multiply: 0.1

number:
  - platform: modbus_controller
    name: "${name} Max Output Power"
    address: 3
    value_type: U_WORD
    min_value: 0
    max_value: 100
    entity_category: config


Edit:
Zojuist gelukt, bleek in de baud_rate: 9600 te zitten, deze moet op baud_rate: 115200 staan voor mijn MIN-3000TL X

de code is bijgewerkt mocht je die willen gebruiken.

[ Voor 8% gewijzigd door bjoran123 op 02-05-2024 11:14 ]


  • bjoran123
  • Registratie: Juni 2009
  • Laatst online: 11-11 16:19
als ik de logging bekijken, zie ik dit voorbij komen.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
46:27][C][api:144]:   Using noise encryption: NO
[10:46:27][C][modbus_controller:298]: ModbusController:
[10:46:27][C][modbus_controller:299]:   Address: 0x01
[10:46:27][W][modbus_controller:030]: Modbus device=1 set offline
[10:46:27][D][modbus_controller:040]: Modbus command to device=1 register=0x03 countdown=0 no response received - removed from send queue
[10:46:28][D][modbus_controller:040]: Modbus command to device=1 register=0x01 countdown=0 no response received - removed from send queue
[10:46:30][D][modbus_controller:040]: Modbus command to device=1 register=0x0D countdown=0 no response received - removed from send queue
[10:46:31][D][modbus_controller:040]: Modbus command to device=1 register=0x1A countdown=0 no response received - removed from send queue
[10:46:31][W][modbus_controller:135]: Duplicate modbus command found: type=0x4 address=32 count=1
[10:46:31][W][modbus_controller:135]: Duplicate modbus command found: type=0x4 address=122 count=1
[10:46:32][D][modbus_controller:040]: Modbus command to device=1 register=0x20 countdown=0 no response received - removed from send queue
[10:46:34][D][modbus_controller:040]: Modbus command to device=1 register=0x7A countdown=0 no response received - removed from send queue
[10:46:35][D][modbus_controller:040]: Modbus command to device=1 register=0x03 countdown=0 no response received - removed from send queue

  • ThinkPad
  • Registratie: Juni 2005
  • Laatst online: 15:18
offtopic:
Ik heb je eerste post even aangepast, gebruik code=yaml bij ESPHome code voor syntax-highlighting, maakt het wat beter leesbaar :)