Closed t0nyb closed 1 year ago
0.7.0b25 Should fix this, noticed it while adding in the Solis RHI-3P10K-HVES-5G
Could you also try 0.7.0b27 to see if it detects your Inverter serial number I am not sure which version of the Modbus docs these Inverters are using.
When upgrading make sure you remove the Integration from the Integration page. Update & Restart HA and then add the Integration again on the Integration page. HA holds the old version of code till you remove and re-add.
As requested
This error originated from a custom integration.
Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:112 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 15:43:40 (1 occurrences) Last logged: 15:43:40
unrecognized asolis inverter type - serial number : 60312202232200
asolis because it doesn't like duplicate names and hopefully the entities will be top of the tree
Which beta is this? 0.7.0b27?
Is this with plugin_solis_old.py?
Also what model Inverter are you using and is it single or 3 Phase?
It's a different serial to the RHI-6K-48ES-5G which starts 603105. This being a 6kW model 3105 603122 I am assuming is 6kW and whichever model 3122 refers to.
Hi
Thanks for doing this - I wouldn't know where to start
Yes the beta 27
Single phase
The log was from solis new
SOLIS RHI-3.6K-48ES-5G 3.6KW HYBRID SOLAR INVERTER
This log from Solis old:
This error originated from a custom integration.
Logger: custom_components.solax_modbus.plugin_solis_old Source: custom_components/solax_modbus/plugin_solis_old.py:107 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 16:36:48 (1 occurrences) Last logged: 16:36:48
unrecognized solis_old inverter type - serial number : unknown
Ok, I'll update with your serial. I was expecting it to be a 6kW Inverter not, 3.6kW. But I don't understand how the serial numbers are structured yet.
I have just released 0.7.0b28 with your Serial number in solis_old
I will eventually swap the naming between solis and solis_old. As your Inverter is the newer style. (I will let you know when the names are swapped)
Sorry I miss read your last message
unrecognized asolis inverter type - serial number : 60312202232200
Was from plugin_solis.py and not plugin_solis_old.py?
If you serial was read correct in plugin_solis.py I have just released 0.7.0b29 with your Serial in plugin_solis.py
Wait my bad
wrong download
Version 29
This error originated from a custom integration.
Logger: custom_components.solax_modbus Source: custom_components/solax_modbus/plugin_solis.py:166 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 18:53:30 (1 occurrences) Last logged: 18:53:30
Something went wrong reading from modbus Traceback (most recent call last): File "/config/custom_components/solax_modbus/init.py", line 292, in read_modbus_data res = self.read_modbus_registers_all() File "/config/custom_components/solax_modbus/init.py", line 362, in read_modbus_registers_all res = res and self.read_modbus_block(block, 'input') File "/config/custom_components/solax_modbus/init.py", line 351, in read_modbus_block self.treat_address(decoder, descr) File "/config/custom_components/solax_modbus/init.py", line 322, in treat_address self.data[descr.key] = descr.scale(val, descr, self.data) File "/config/custom_components/solax_modbus/plugin_solis.py", line 166, in value_function_rtc return datetime.strptime(val, '%d/%m/%y %H:%M:%S') File "/usr/local/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/local/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '53/31/00 18:07:11' does not match format '%d/%m/%y %H:%M:%S'
Do any of the sensors show readings? Or does RTC block it all? I didn't really look into the RTC bit much.
There are no readings but all of the sensors are listed in the integration as far as I know
0.7.0b30 removes RTC. I can revisit that another day. Do you get any working sensors?
no none.
will load 30 and report back
Excellent!!
Most sensors working, grid import and export not.
Logs:
This error originated from a custom integration.
Logger: custom_components.solax_modbus Source: custom_components/solax_modbus/init.py:277 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 19:28:59 (4 occurrences) Last logged: 19:34:05
'H' format requires 0 <= number <= 65535: also cannot read input registers at device 1 position 0x50990 Traceback (most recent call last): File "/config/custom_components/solax_modbus/init.py", line 331, in read_modbus_block if typ == 'input': realtime_data = self.read_input_registers(unit=self._modbus_addr, address=block.start, count=block.end - block.start) File "/config/custom_components/solax_modbus/init.py", line 277, in read_input_registers return self._client.read_input_registers(address, count, **kwargs) File "/usr/local/lib/python3.10/site-packages/pymodbus/client/common.py", line 125, in read_input_registers return self.execute(request) File "/usr/local/lib/python3.10/site-packages/pymodbus/client/sync.py", line 109, in execute return self.transaction.execute(request) File "/usr/local/lib/python3.10/site-packages/pymodbus/transaction.py", line 174, in execute response, last_exception = self._transact( File "/usr/local/lib/python3.10/site-packages/pymodbus/transaction.py", line 271, in _transact packet = self.client.framer.buildPacket(packet) File "/usr/local/lib/python3.10/site-packages/pymodbus/framer/rtu_framer.py", line 248, in buildPacket data = message.encode() File "/usr/local/lib/python3.10/site-packages/pymodbus/register_read_message.py", line 33, in encode return struct.pack('>HH', self.address, self.count) struct.error: 'H' format requires 0 <= number <= 65535
Logger: homeassistant.util.async Source: util/async.py:180 First occurred: 19:28:59 (4 occurrences) Last logged: 19:34:05
Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for solax_modbus doing blocking calls at custom_components/solax_modbus/init.py, line 277: return self._client.read_input_registers(address, count, **kwargs)
Could you give a screenshot of all the sensors?
0x50990 hex is 330128 decimal I believe meter_voltage declaration is wrong
I'll go back over these registers in the next day or so. These Solis docs are an utter mess.
There are docs with newer dates in them that are for older Inverters I believe.
Do you have any sensors reporting values though?
If you go on the Integration page and on the actual Integration do you see anything like:
That's my SolaX Gen3, so might be different sensors and different order.
Do you have any sensors reporting values though? Yes most of them
That's what I want to see. Then I know which are reporting and which need further work. I can also see if any need the scaling or rounding altering.
OK I misunderstood
Can you think of an efficient way to do that short of screen shotting every one?
In my myenergi integration for instance I can add all the entities to a dashboard. No option to do that here
My bad as usual Wait 5
Don't you see this?
Or
I don't need all of them. But when you are in the Integrations page, if you find any with funny values screenshot around them.
I think GitHub is playing up, looks like that Image started to load and gave up?
Yes I saw that eventually sorry.
will go through them all tomorrow and highlight what I see as anomalous
Ok, no rush.
I am very pleased with the progress we have made so far! I doesn't help when there are 3 or even 4 versions of the documents floating about on the Internet and none of the time stamps make sense.
Thanks for the patience with testing this.
I'll go back over these registers in the next day or so. These Solis docs are an utter mess.
There are docs with newer dates in them that are for older Inverters I believe.
I believe it is just a typo in the meter_voltage address Should be 33128 I guess, not 330128
Updated 0.7.0b31
Just released 0.7.0b32 with more sensors and hopefully working Number entities.
Is that on 0.7.0b30?
yes haven't installed 31 yet will do soon
You might as well go to 32
V32 Log:
This error originated from a custom integration.
Logger: homeassistant.config_entries Source: custom_components/solax_modbus/plugin_solis.py:182 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 09:26:40 (1 occurrences) Last logged: 09:26:40
Error setting up entry Inverter for solax_modbus
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/solax_modbus/init.py", line 92, in async_setup_entry
plugin = importlib.importmodule(f".plugin{plugin_name}", 'custom_components.solax_modbus')
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
I'll correct it. Will push a new release out in a few minutes.
Just released 0.7.0b33
V33 log
And no problem I'm happy to keep testing
This error originated from a custom integration.
Logger: homeassistant.config_entries Source: custom_components/solax_modbus/plugin_solis.py:672 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 10:30:53 (1 occurrences) Last logged: 10:30:53
Error setting up entry inverter for solax_modbus
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/solax_modbus/init.py", line 92, in async_setup_entry
plugin = importlib.importmodule(f".plugin{plugin_name}", 'custom_components.solax_modbus')
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
Oops, forgot to update const.py as it's the first time I have used POWER_VOLT_AMPERE_REACTIVE
Describe the bug Defined by error report
Mandatory details
Detailed Error Log
This error originated from a custom integration.
Logger: homeassistant.config_entries Source: custom_components/solax_modbus/plugin_solis.py:273 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 11:25:37 (1 occurrences) Last logged: 11:25:37
Error setting up entry solax for solax_modbus Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/solax_modbus/init.py", line 92, in async_setup_entry plugin = importlib.importmodule(f".plugin{plugin_name}", 'custom_components.solax_modbus') File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/solax_modbus/plugin_solis.py", line 273, in
scale = value_function_rtc,
NameError: name 'value_function_rtc' is not defined
Detailed Error Log, if you press on the individual error further information is displayed. This is the content we need, the description alone doesn't provide enough context.
If there are no log's showing for SolaX try the following depending on your language settings, you can find the full logs under:
Settings → System → Logs > at bottom of page press “LOAD FULL LOGS”
Now the full logs are loaded. If you scroll down, you will see them. Once the full logs are shown, you can either use the search function in your browser to search for “solax” related entries or use the search entry field on top of the page.
Search for
solax
and report us the logs. Make sure to replace sensitive information by xxxx (if any)
Additional context Add any other context about the problem here. Sorry if this is the wrong place to report - I'm a user not a developer