I find that on this type of connection when the master inverter goes in stendbay stop sharing data with HA.problem is because the meter is not sharing data in that period when master inverter is in stand-by mode(sleep mode without production ).
Is there any setup in the inverter to receive data 24/7 ???
i have a luna2000 battery. I was experimenting with the fixed charging periods, but I couldnât find out what it was actually doing. Afterwards I also couldnât delete the periods, so I was curious what it is actually for. Any insights are welcome
I have successfully integrated Huawei Solar in HA and get the data imported via modbus without problems.
But I only see the sensors and can not configure anything. For example, I want to fully charge the battery at low prices, but can not set this anywhere.
Hi, I saw at least 3 posts in this thread where people have issues with connection to inverted being lost after each night. I have the same issue.
I realized that it is probably rear case with such inverter setup that causes the issue. Mine inverter was setup in such way that when energy output is 0w (sun goes down) after some time inverter shuts down itself until the morning and when sun is up it wakes up automatically.
when i say shuts down I mean it is totally off, no leds are blinking. neither wifi AP is available which causes HA to inactivate this integration due to broken connection.
Is there anyone who could help either creating script to disable and reenable this integration based on sunrise/ sunset times?
Or maybe suggest what setting in the inverter configuration is responsible for the shutdown?
Hi, i assume i am watched the right YOUTUBE video and I got HACS installed, then I got Huawei solar on and with the connecting I did a IP can of my network and found On SUN2000-102286520769.modem 192.168.0.45 C4:69:F0:2E:78:DC so I tried 192.168.0.45:502 and 192.168.0.45:6607 to no luck, any advice what I should try next?
More Inverter active power (W) - active and inactive status (pulses blue if active, gray if inverter does not detect sun and is not charging)
PW Power summary for several inverters (W) â active and inactive status (orange if active, gray if not charging)
Inverters with Daily yield display (kWh)
Accumulator charge level
Apexcharts - Return to Grid - Grid Consumption - Total Yield 24h. In the middle, current power is indicated with flow direction (the icon and text are green if there is an export and the icon and text are red if there is an import.
I need to have Power output for all three phases separately. As the integration and Huawei does not give this information i chose a route to calculate it myself.
Active Power (P) = Voltage (V) Ă Current (I) Ă Power Factor (PF)
What I have:
Inverter Active power - 106w
Inverter Phase A current - 0.25A
Phase A Voltage - 241.8 V
4⌠Inverter Phase B current - 0.228A
Phase B Voltage - 241.7 V
Inverter Phase C current - 0.26A
Phase C Voltage - 242 V
Power Factor - 1
Result: Total Active Power (P_Total) = P_A + P_B + P_C = 60.45 W + 55.10 W + 62.92 W = 178.47 W
Inverter is reporting 106 watts
What could cause that and which number can I trust?
i am trying to get the integration running.
I have a rasp4 with usb module connected to pin 1 and 2 to the master invertert.
I can add with ID 1 via serial my master invester and the power meter.
I can add with ID 16 my slave inverter.
After a short time ID1 or ID16 is not working⌠Can someone see a issue in my logg?
Thanks bobic
2023-10-31 16:51:04.550 DEBUG (MainThread) [pymodbus.logging] Adding transaction 16
2023-10-31 16:51:04.576 DEBUG (MainThread) [pymodbus.logging] recv: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56 old_data: addr=None
2023-10-31 16:51:04.577 DEBUG (MainThread) [pymodbus.logging] Processing: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56
2023-10-31 16:51:04.577 DEBUG (MainThread) [pymodbus.logging] Getting Frame - 0x3 0x2 0x0 0x3c
2023-10-31 16:51:04.577 DEBUG (MainThread) [pymodbus.logging] Factory Response[ReadHoldingRegistersResponse': 3]
2023-10-31 16:51:04.578 DEBUG (MainThread) [pymodbus.logging] Frame advanced, resetting header!!
2023-10-31 16:51:04.578 DEBUG (MainThread) [pymodbus.logging] Getting transaction 16
2023-10-31 16:51:04.578 DEBUG (MainThread) [pymodbus.logging] Unrequested message: ReadHoldingRegistersResponse (1)
2023-10-31 16:51:14.553 DEBUG (MainThread) [pymodbus.logging] send: 0x10 0x3 0xa7 0xfe 0x0 0x1 0xc5 0xcf
2023-10-31 16:51:14.555 DEBUG (MainThread) [pymodbus.logging] Adding transaction 16
2023-10-31 16:51:14.647 DEBUG (MainThread) [pymodbus.logging] recv: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56 old_data: addr=None
2023-10-31 16:51:14.647 DEBUG (MainThread) [pymodbus.logging] Processing: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56
2023-10-31 16:51:14.648 DEBUG (MainThread) [pymodbus.logging] Getting Frame - 0x3 0x2 0x0 0x3c
2023-10-31 16:51:14.648 DEBUG (MainThread) [pymodbus.logging] Factory Response[ReadHoldingRegistersResponse': 3]
2023-10-31 16:51:14.648 DEBUG (MainThread) [pymodbus.logging] Frame advanced, resetting header!!
2023-10-31 16:51:14.648 DEBUG (MainThread) [pymodbus.logging] Getting transaction 16
2023-10-31 16:51:14.648 DEBUG (MainThread) [pymodbus.logging] Unrequested message: ReadHoldingRegistersResponse (1)
2023-10-31 16:51:24.557 DEBUG (MainThread) [pymodbus.logging] Connection lost comm due to Server not responding
2023-10-31 16:51:24.559 DEBUG (MainThread) [pymodbus.logging] Getting transaction 16
2023-10-31 16:51:24.560 ERROR (MainThread) [huawei_solar.huawei_solar] Aborting client creation due to error.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 210, in create_rtu
await huawei_solar._initialize()
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 107, in _initialize
self.time_zone = (await self.get(rn.TIME_ZONE)).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 241, in get
return (await self.get_multiple([name], slave))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 276, in get_multiple
response = await self._read_registers(registers[0].register, total_length, slave)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 398, in _read_registers
return await _do_read()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 351, in _do_read
response = await self._client.read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymodbus/client/base.py", line 210, in async_execute
raise ModbusIOException(
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2023-10-31 16:51:24.577 DEBUG (MainThread) [pymodbus.logging] Wait comm 1000000 ms before reconnecting.
2023-10-31 16:51:28.307 INFO (MainThread) [huawei_solar.huawei_solar] Waiting for connection ...
2023-10-31 16:51:33.309 ERROR (MainThread) [huawei_solar.huawei_solar] Timeout while waiting for connection. Reconnecting...
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 490, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 141, in _communication_lock
await asyncio.wait_for(self._client.connected_event.wait(), WAIT_FOR_CONNECTION_TIMEOUT)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 492, in wait_for
raise exceptions.TimeoutError() from exc
TimeoutError
2023-10-31 16:51:33.324 ERROR (MainThread) [custom_components.huawei_solar] Timeout fetching TA2290320036_data_update_coordinator data
2023-10-31 16:51:33.339 DEBUG (MainThread) [pymodbus.logging] Connecting to /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0.
2023-10-31 16:51:33.339 DEBUG (MainThread) [pymodbus.logging] Connecting comm
2023-10-31 16:51:33.345 DEBUG (MainThread) [pymodbus.logging] Connected to comm
2023-10-31 16:51:33.345 DEBUG (MainThread) [pymodbus.logging] callback_connected called
2023-10-31 16:51:33.346 DEBUG (MainThread) [huawei_solar.modbus] Waiting for 1500 milliseconds after connection before performing operations
2023-10-31 16:51:34.895 DEBUG (MainThread) [pymodbus.logging] Connecting to /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0.
2023-10-31 16:51:34.895 DEBUG (MainThread) [pymodbus.logging] Connecting comm
2023-10-31 16:51:34.901 DEBUG (MainThread) [pymodbus.logging] Connected to comm
2023-10-31 16:51:34.902 DEBUG (MainThread) [pymodbus.logging] callback_connected called
2023-10-31 16:51:34.903 DEBUG (MainThread) [huawei_solar.modbus] Waiting for 1500 milliseconds after connection before performing operations
2023-10-31 16:51:35.907 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 43006 with length 1 from slave 16
2023-10-31 16:51:35.908 DEBUG (MainThread) [pymodbus.logging] send: 0x10 0x3 0xa7 0xfe 0x0 0x1 0xc5 0xcf
2023-10-31 16:51:35.909 DEBUG (MainThread) [pymodbus.logging] Adding transaction 16
2023-10-31 16:51:36.026 DEBUG (MainThread) [pymodbus.logging] recv: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56 old_data: addr=None
2023-10-31 16:51:36.027 DEBUG (MainThread) [pymodbus.logging] Processing: 0x10 0x3 0x2 0x0 0x3c 0x44 0x56
2023-10-31 16:51:36.027 DEBUG (MainThread) [pymodbus.logging] Getting Frame - 0x3 0x2 0x0 0x3c
2023-10-31 16:51:36.027 DEBUG (MainThread) [pymodbus.logging] Factory Response[ReadHoldingRegistersResponse': 3]
2023-10-31 16:51:36.028 DEBUG (MainThread) [pymodbus.logging] Frame advanced, resetting header!!
2023-10-31 16:51:36.028 DEBUG (MainThread) [pymodbus.logging] Getting transaction 16
2023-10-31 16:51:36.031 DEBUG (MainThread) [pymodbus.logging] [60]
2023-10-31 16:51:36.083 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 47000 with length 1 from slave 16
2023-10-31 16:51:36.084 DEBUG (MainThread) [pymodbus.logging] send: 0x10 0x3 0xb7 0x98 0x0 0x1 0x21 0x10
2023-10-31 16:51:36.085 DEBUG (MainThread) [pymodbus.logging] Adding transaction 16
Hello. Iâm going crazy and I canât get the consumption information from the power meter. I access the inverter through Modbus TCP/IP and obtain and read the records of energy produced and real consumption, but I cannot obtain the data on total consumption for the day, PV consumption and grid consumption. I verify that this information exists in the HA sensors but I cannot obtain it from the inverter registers.
I installed the integration without advanced settings. I would now like to use the battery settings change functionality to optimize charging but all the parameters is grey. I have to reinstall with the advanced settings.
Yes remove, and reconfigure with ip adress. I donât remember if I restarted HA, not sure
History is kept, dashboard is back working, without doing anything special
All entities names are same so everything is working again