Do anyone experiencing problems after updating to Home Assistant 0.110.1?
Now I get this Log:
Translation Error: The intl string context variable "Level" was not provided to the string "Detalhes do log ({Level})"
Logger: homeassistant.config
Source: custom_components/huawei_solar/sensor.py:4
First occurred: 19:37:46 (1 occurrences)
Last logged: 19:37:46
Platform error: sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 777, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 273, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/huawei_solar/sensor.py", line 4, in <module>
from huawei_solar import HuaweiSolar, ReadException
ModuleNotFoundError: No module named 'huawei_solar'
. Will start building a dashboard in Lovelace now. Hoping I can mimic yours. Should keep me busy for a while!
Another question: how do you store data long term? As rules in the Netherlands will change in â23 (no longer able to net the power bought with the power returned to the network) I probably need to look into hooking up a battery. For this I want to have enough historical data to make a return analysis based on period averages as well as intraday profile of power usage and generation from my panels. So what would be the application best used for building a local database?
Great stuff. Will dive into that. I did jump ahead a bit to enthusiastic Iâm afraid, as it looks like i can only use the power output data from the invertor in Lovelace. How do i get to all the additional data (like daily yield etc) that is shown when i click on the sensor in the âentitiesâ tab and follow up with the settings button? Do i set up additional sensors for this?
Sorry for the noob questions, maybe you can redirect me to another topic if you want me read up on the basics.
Iâve got that working. I think iâm getting the hang of it. Thanks for getting me on the right track. Next post from me will hopefully be a full fledge dashboardâŚ
Hi there, just getting started with HA so sorry for the probably newbie question.
Iâve in putted the files in the specified folder and set up the stib platform in configuration.yaml.
When I go to check config the yaml file before I reboot I get the error
Configuration invalid
Platform error sensor.huawei_solar - cannot import name âHuaweiSolarâ from âhuawei_solarâ (/config/huawei_solar/init.py)
Iâve in putted the files in the specified folder and set up the stib platform in configuration.yaml .
I suppose thatâs a typo and you mean you set up the huawei_solar platform?
I just checked with the latest version and I canât reproduce this problem using the check_config script, but Iâm not sure if thatâs exactly the same as what the UI does. Is your custom_components folder in the same folder as your configuration.yaml file? And have you tried rebooting?
Same issue happened to me.
After clicking on Configuration validation for the first time something failed in the background.
I removed the sensor from the configuration, and restarted HA.
After that I added the sensor again and it took its time to check the configuration but if worked, restart again and you should have the sensor readings ready.
Yesterday I woke up with this component not working, not even after a restart.
After inspecting the logs I found this:
Traceback (most recent call last):
File â/usr/src/homeassistant/homeassistant/helpers/entity_platform.pyâ, line 319, in _async_add_entity
await entity.async_device_update(warning=False)
File â/usr/src/homeassistant/homeassistant/helpers/entity.pyâ, line 472, in async_device_update
await self.hass.async_add_executor_job(self.update)
File â/usr/local/lib/python3.7/concurrent/futures/thread.pyâ, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File â/config/custom_components/huawei_solar/sensor.pyâ, line 224, in update
self._shutdown_time = self._inverter.get(âshutdown_timeâ).value.time()
File â/usr/local/lib/python3.7/site-packages/huawei_solar/huawei_solar.pyâ, line 58, in get
tmp2 = datetime.utcfromtimestamp(tmp - 60 * self._time_offset)
OverflowError: timestamp out of range for platform time_t
Apparently there is something wrong with the property âshutdown_timeâ, I changed the code to not parse it as date time, just expose the string, but it was failing anyway so I removed the whole âshutdown_timeâ property. It is now working correctly.
I would suggest reading the properties inside a try-catch to avoid having your important readings down just because a non important field is failing.
I am completely struggling with this integration. Having SUN2000_3.0 connected via USB WiFi Dongle (SDongleA_2.0) to my home network with IP address of 192.168.1.20. I have added this integration to my config and copied all required files to âcustom_components/huawei_solar/â and rebooted my HA. Unfortunately, I canât see any additional sensors. Please point me to the right direction to configure this correctly.