Custom FMI (Finnish Meteorological Institute) Weather & Sensor Platform

newest HA core-2021.5.4 upgrade broke FMI integration. at least with Home Assistant OS 5.13
and here is logs:

This error originated from a custom integration.

Logger: custom_components.fmi
Source: helpers/update_coordinator.py:186
Integration: Finnish Meteorological Institute
First occurred: 12:55:21 (5 occurrences)
Last logged: 12:56:41

Timeout fetching fmi data

I am having the same problem too. Timeout fetching fmi data.
Tried to reinstall and cleared the cache before but it didn’t help.

Same issue here too

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?

It worked previous core-2021.5.3 so I think its about HA update

This might be a FMI problem. I did two things.

  1. Pulled the latest version from git. No effect on error.

  2. Downgraded to core-2021.5.3. The error persisted, no effect on error.

It would be nice to have this back running.

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

Unexpected error importing fmi/system_health.py
Unexpected error importing fmi/group.py
Unexpected error importing fmi/media_source.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.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.

1 Like

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…

It works in my hassos with that 2021.5.4.
I did

  1. removed old from integrations
  2. removed folder from custom_components
  3. download new version.
  4. Restart home assistant
  5. Add integrations
1 Like

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.

Hello,

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?

24h forecast doesn’t help: it shows two days at 3AM.
Is there a way to see day hight/low temperature?

Well, I created a support for “daily mode”, that helps to fix this issue: Add 'daily mode' option. by tdragon · Pull Request #36 · anand-p-r/fmi-hass-custom · GitHub

That is how it looks on my dashboard now:
image

1 Like

Latest release now contains this feature.

1 Like

Is that windspeed possible change to m/s in lovelace?