For all residents of the CIS, the weather data provider Gismeteo can be useful. By analogy with OpenWeatherMap, I made it in the form of two different objects: weather and sensor.
The setting is exactly the same as for the OpenWeatherMap. With the exception of the api_key parameter that are missing.
An update for this component has been released taking into account the new rules for the integration of components in Home Assistant versions 0.92+.
Unfortunately, updating through the custom-updater may not work. In this case, you need to update the component manually. In the future, automatic update will work again correctly.
I went through all the options, but could not create a sensor that would show the amount of precipitation for 2 days in advance. Any ideas how to do this?
Yes. I tried to do it through the tamplate. But in weather.gismeteo the days are constantly changing and I don’t understand how I can separate out the forecast of precipitation from there on the first and second day. Help please
Logger: homeassistant.components.weather
Source: custom_components/gismeteo/init.py:347
Integration: Weather (documentation, issues)
First occurred: 19:06:46 (1 occurrences)
Last logged: 19:06:46
gismeteo: Error on device update!
Traceback (most recent call last): File “/home/user/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py”, line 346, in _async_add_entity await entity.async_device_update(warning=False) File “/home/user/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py”, line 471, in async_device_update await self.hass.async_add_executor_job(self.update) # type: ignore File “/usr/lib/python3.8/concurrent/futures/thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “/home/user/.homeassistant/custom_components/gismeteo/weather.py”, line 85, in update self._wd.update() File “/home/user/homeassistant/lib/python3.8/site-packages/homeassistant/util/init.py”, line 239, in wrapper result = method(*args, **kwargs) File “/home/user/.homeassistant/custom_components/gismeteo/init.py”, line 347, in update ATTR_WEATHER_PHENOMENON: int(current_v.get(“ph”)), ValueError: invalid literal for int() with base 10: ‘Array’
This is not a component error - unfortunately, this is an error on the Gismeteo server. I don’t know when they fix it. Therefore, I added a check to the component for the correctness of the data returned from the server. All invalid data is now simply ignored.