Yes, same here 2021-05-15 17:10:40 ERROR (MainThread) [custom_components.fmi-hass-custom] Timeout fetching fmi data
Is this caused by the update or is this a FMI problem?
There is also another error, an earlier one:
Logger: homeassistant.helpers.integration_platform
Source: loader.py:498
First occurred: 10:06:46 AM (4 occurrences)
Last logged: 10:06:46 AM
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 33, in _process
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 493, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.fmi-hass-custom.system_health'
The Lightning sensor was pulling massive amount of records (79k) causing the integration load time to increase to 20+secs. The timeout was set at 10secs and hence the errors seen. Probably there has been a surge of lightning strikes, but nature apart, I have bound the record pull to within a limited bounding box of coordinates. I also increased the timeout value for FMI data update, just in case. Do try the latest version and let me know if that solves the problems seen.
I just read conversation from finnish Facebook group and seems like this New update didnât help. There was Also one guy who just had FMI still working with 2021.5.3. Then he updated it to 2021.5.4. and after updating it stopped workingâŚ
I confirm that it started again with 2021.5.3. I just fetched the latest git and restarted HA.
There is still a logbook error in my logs, but some data has been received.
I will report tomorrow if it continues to come.
This is a great integration, especially when combining it with InfluxDb.
@smoltron Will it be possible to share debug logs from your env?
It can be enabled by adding this to configuration.yaml:
logger:
logs:
custom_components.fmi: debug
And then restart HA. You can then copy and share the logs related to Fmi integration that show up in your env. Note: For privacy concerns, please do remove lat/long related info from the logs or mask it with something else.
I did not find anything of relevance and not ordinary in logs. This same error happens four times. I do not understand why HA tries to find media_source, system_health, group, and logbook from fmi integration. I am using media sources, system health and groups elsewhere though.
The integration works without problems now, so maybe this error is not so important.
Logger: homeassistant.helpers.integration_platform
Source: loader.py:498
First occurred: 6:37:02 PM (4 occurrences)
Last logged: 6:37:02 PM
Unexpected error importing fmi/media_source.py
Unexpected error importing fmi/system_health.py
Unexpected error importing fmi/group.py
Unexpected error importing fmi/logbook.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 33, in _process
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 493, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 498, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.fmi-hass-custom.media_source'
Strange! I am running my instance on a Ubuntu server with HASS as a docker container. I know this is not an official way of deploying HA, but it has worked for me all the time. What kind of environment are you using?
I have a Debian Buster headless (amd64) linux 5.10 with Home Assistant as a docker container. I guess this is not the reason, because my setup is very similar to yours.
This causes now no troubles and maybe it is caused by something else in my HA.
Thank you for this integration! It works well for me, but I have one question:
What card do you use to show forecast? The default weather card shows just a few hours, it there a way to show days instead?