Closed Philhews closed 6 months ago
I notice this has very recently been resolved in the givenergy_modbus
library, but is not yet included in a release. We'll have to wait for that to happen, then this integration can be updated.
https://github.com/dewet22/givenergy-modbus/commit/01224c77bab68309e06c0dd7e946dfe41b28de22
I've also got an EA serial, it's for a "Gen 1.5" according to the installer, Gen 2 board, Gen 1 case.
Quick and dirty - edit /usr/local/lib/python3.10/site-packages/givenergy_modbus/model/inverter.py change line 26 'ED': cls.Gen2 to 'EA', restart home assistant.
I'm running home assistant core rather than OS, which might make such hacks a little easier
I've hit this issue with their GIV-HY3.6 Gen2 inverter that i had installed yesterday. S/N starts with EA.
Quick and dirty - edit /usr/local/lib/python3.10/site-packages/givenergy_modbus/model/inverter.py change line 26 'ED': cls.Gen2 to 'EA', restart home assistant.
sounds easy enough fix, but i cannot find the inverter.py file either via HAOS SSH, or a suitable container to even start to look at via portainer.
Edit: sussed it! in the portainer settings, it default hides the base OS containers. Simply goto Portainer > settings > under 'Hidden containers', remove what you require (minimum of 'homeassistant'). For HAOS, this file is in the 'homeassistant' container.
I've gone with the committed method to add, rather than replace existing.
I've now got my inverter&battery entities in HA!
Hope that helps others!
I have a very similar sounding issue
2023-08-07 19:14:52.553 ERROR (MainThread) [custom_components.givenergy_local] Failed to validate inverter configuration
Traceback (most recent call last):
File "/config/custom_components/givenergy_local/config_flow.py", line 48, in async_step_user
serial_no = await read_inverter_serial(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/givenergy_local/config_flow.py", line 27, in read_inverter_serial
serial_no: str = plant.inverter.inverter_serial_number
^^^^^^^^^^^^^^
File "/config/deps/lib/python3.11/site-packages/givenergy_modbus/model/plant.py", line 32, in inverter
return Inverter.from_orm(self.inverter_rc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 577, in pydantic.main.BaseModel.from_orm
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/config/deps/lib/python3.11/site-packages/givenergy_modbus/model/inverter.py", line 212, in compute_model
values['inverter_model'] = Model.from_serial_number(values['inverter_serial_number'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/deps/lib/python3.11/site-packages/givenergy_modbus/model/inverter.py", line 39, in from_serial_number
raise UnknownModelError(f"Cannot determine model number from serial number {serial_number}")
givenergy_modbus.model.inverter.UnknownModelError: Cannot determine model number from serial number FD####G###
Install was just completed, so it looks like a new inverter generation. Any ideas?
This is another issue that would be fixed by #61
I'm trying to connect to my inverter and I get the following log error
I have * out the end of my serial number but the failure comes down to the modbus code not accounting for the EA serial. It should identify as a Gen2 (because that's what I have).
I did try looking for the code ony server to locally modify but the path it lists doesn't seem to exist.