Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huawei_solar stopped working after update of HA core from 2023.5.4 to 2023.6.2 #105

Open
pjgrun opened this issue Jun 20, 2023 · 14 comments

Comments

@pjgrun
Copy link

pjgrun commented Jun 20, 2023

Huawei_solar stopped working after update of HA core from 2023.5.4 to 2023.6.2.
I was running version a973aed of Huawei_solar. I installed version 57fd7e6, but HA reported error when checking configuration before HA restart.. Error message reported was: platform error sensor.huawei_solar - exception importing custom_components.huawei_solar.sensor.
The only way to recover was to rollback HA core to version 2023.5.4
Is this a known issue?

@garzew2
Copy link

garzew2 commented Jun 21, 2023

I had same situation. I had to restore configuration from backup. After that update goes with any problem.
But after update Huawei_solar to new version it stop to work. I make test on HA 2023.5.4 and 2023.6.2.

@garzew2
Copy link

garzew2 commented Jun 21, 2023

This is my log when i update Huawei_solar

`Logger: homeassistant.components.sensor
Source: custom_components/huawei_solar/sensor.py:181
Integration: Sensor (documentation, issues)
First occurred: 22:34:59 (1 occurrences)
Last logged: 22:34:59

Error while setting up huawei_solar platform for sensor
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/registers.py", line 92, in decode
result = self.unit[result]

KeyError: 303

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 320, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/huawei_solar/sensor.py", line 181, in async_setup_platform
tmp = (await inverter.get(register)).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 215, in get
return (await self.get_multiple([name], slave))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 254, in get_multiple
result = [await self._decode_response(registers[0], decoder)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 207, in _decode_response
result = reg.decode(decoder, self)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/registers.py", line 94, in decode
raise DecodeError from err
huawei_solar.exceptions.DecodeError`

@pjgrun
Copy link
Author

pjgrun commented Jun 21, 2023

I am now stuck on version 2023.5.4 version of HA core. With version 2023.6.2 of HA core, both old and new version of Huawei_Solar fail. Only possibility appears to be to stay on HA core 2023.5.4.

@Jarobwo
Copy link

Jarobwo commented Jun 24, 2023

I have the same problem with the new version, can you fix it? do i need to look for another integration?

@sdlafferty
Copy link

Same issue for me too.

@EmAnzi3
Copy link

EmAnzi3 commented Jun 25, 2023

Same for me.

@Trafal125
Copy link

Hi, same issue for me too. Any fix this problem?

@Stea73
Copy link

Stea73 commented Jun 26, 2023

I had the same issue. I restored a backup and avoided to update the addon. So far it works. Let's hope a fix will be implemented soon

@Trafal125
Copy link

Hi, I update addons and I want get previous version - an older version. Anyone know how to download?

@Stea73
Copy link

Stea73 commented Jun 26, 2023

Not an expert, but either you download the previous version in github and replace the files manually (but I'm not sure it will work) or you restore a full backup prior to the addon update (you may lose any change done after the update though).

@Trafal125
Copy link

Trafal125 commented Jun 26, 2023

Ok, I found old version addon:
https://github.com/Emilv2/huawei_solar/tree/a973aed9397b5e6a7ff0d88a1a53c41d5346211d/custom_components/huawei_solar
After restore from backup HA Core and copy old version addons, everything works. Thank you for help

@pjgrun
Copy link
Author

pjgrun commented Jul 3, 2023

Any news? Still blocked with this issue and thus unable to update HA core beyond 2023.5.4.

@EmAnzi3
Copy link

EmAnzi3 commented Jul 8, 2023

I'm still stuck with this add-on not loaded.
I don't know if this might help but also from my mobile app FusionSolar I wasn't able to monitor my PV system. I addressed the issue changing inverter domain from intl.fusionsolar.huawei.com to region04eu5.fusionsolar.huawei.com

@pjgrun
Copy link
Author

pjgrun commented Aug 16, 2023

Finally migrated to https://github.com/wlcrs/huawei_solar and adapted my application accordingly. The new integration is working fine with latest OS and HA Core versions, and at least in my case, is compatible with emilv2 integration except for the sensor naming. The new integration has additional features, like exposure of a number of services, besides the sensors. Happy to have finally found a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants