limych / ha-gismeteo Goto Github PK
View Code? Open in Web Editor NEWGismeteo Weather Provider for Home Assistant
License: Other
Gismeteo Weather Provider for Home Assistant
License: Other
The method for providing platform translations has changed in Home Assistant Core, and this integration needs to be updated.
Implement the new method
Drop translations
Details can be found in https://developers.home-assistant.io/blog/2024/03/05/platform_entity_translations_deprecation
Environment
Configuration.yaml
weather:
- platform: gismeteo
mode: daily
Steps to Reproduce
Expected behavior
Debug log
Logger: homeassistant.setup
Source: setup.py:153
First occurred: 07:15:56 (1 occurrences)
Last logged: 07:15:56
Setup failed for gismeteo: Unable to import component: cannot import name 'HTTP_OK' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)
Additional context
there was no error before the upgrade to the version
core-2021.12.0
Environment
Describe the bug
Get a warning message in log:
Logger: custom_components.gismeteo.sensor
Source: custom_components/gismeteo/sensor.py:98
Integration: Gismeteo (documentation, issues)
First occurred: 7 апреля 2021 г., 1:13:01 (1 occurrences)
Last logged: 7 апреля 2021 г., 1:13:01
Deprecated condition "weather". Please replace it to "condition"
Environment
Describe the bug
Configuration.yaml
weather:
- platform: gismeteo
Steps to Reproduce
Expected behavior
Debug log
Add your logs here.
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:597
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 8:16:41 AM (1 occurrences)
Last logged: 8:16:41 AM
Sensor sensor.my_smart_home_wind_bearing has device class None, state class None and unit ° thus indicating it has a numeric value; however, it has the non-numeric value: unknown (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
**Additional context**
<!--
Add any other context about the problem here.
-->
Add your configs here.
A clear and concise description of what the bug is.
Add your logs here.
After update 2024.1.6 got error:
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 10:36:28 (1 occurrences)
Last logged: 10:36:28
Error setting up entry configuration.yaml for gismeteo
Traceback (most recent call last):
File "/config/custom_components/gismeteo/api.py", line 226, in async_get_location
xml = etree.fromstring(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/xml/etree/ElementTree.py", line 1338, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 2
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/gismeteo/init.py", line 98, in async_setup_entry
coordinator = await _async_get_coordinator(hass, uid, cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/gismeteo/init.py", line 77, in _async_get_coordinator
await gismeteo.async_get_location()
File "/config/custom_components/gismeteo/api.py", line 236, in async_get_location
raise ApiError(
custom_components.gismeteo.api.ApiError: Can't retrieve location data! Invalid server response.
Get a working integration, such as updates.
Get a working integration, such as updates.
Get a working integration, such as updates.
Cannot register a bug.
Since reporting about the issue here as a "Feature request".
2024.1. log contains these warnings:
2024-01-04 02:04:23.266 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_HUMIDITY was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.HUMIDITY instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.269 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_PRESSURE was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.PRESSURE instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.273 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_TEMPERATURE was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TEMPERATURE instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.278 WARNING (MainThread) [homeassistant.const] LENGTH_MILLIMETERS was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILLIMETERS instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.281 WARNING (MainThread) [homeassistant.const] PRESSURE_HPA was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.HPA instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.286 WARNING (MainThread) [homeassistant.const] SPEED_METERS_PER_SECOND was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.METERS_PER_SECOND instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.289 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.920 WARNING (MainThread) [homeassistant.const] PRESSURE_MMHG was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.MMHG instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.930 WARNING (MainThread) [homeassistant.const] SPEED_KILOMETERS_PER_HOUR was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
2024-01-04 02:04:23.945 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues
none
none
none
Is there any way I can prevent an entity from showing up on the map page?
or how to exclude an attribute(latitude, longitude) from an object,
the next customize_glob dosn't work for me
customize_glob:
"sensor.gismeteo_*":
latitude: 12.0784
longitude: 12.0035
2019-08-24 20:44:57 ERROR (MainThread) [homeassistant.helpers.entity] Update for weather.gismeteo fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, 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/gismeteo/weather.py", line 73, in update
self._wd.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/gismeteo/gismeteo.py", line 352, in update
xml = etree.fromstring(response)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 2
Environment
Describe the bug
At 09:47 : 3h forecast is for 12:47 if I understood correctly.
How forecast for 12:47 can be clear-night
???
Ans sunny
for 03:00...
Configuration.yaml
n/a
Steps to Reproduce
Expected behavior
Debug log
Add your logs here.
Additional context
Gismeteo Integration Uses Deprecated Forecasting This stops working in version 2024.3.0.
Fix the issue before upgrading.
The gismeteo integration uses the deprecated forecast attribute.
Please report it to the custom integration author..
update
other integration
Versions
Configuration
weather:
- platform: gismeteo
- platform: gismeteo
name: "Gismeteo Daily"
mode: daily
sensor:
- platform: gismeteo
forecast: true
monitored_conditions:
- weather
- temperature
- wind_speed
- wind_bearing
- humidity
- pressure
- clouds
- rain
- snow
- storm
- geomagnetic
- platform: template
sensors:
gismeteo_pressure_mmhg:
device_class: pressure
unit_of_measurement: 'mmHg'
friendly_name: "Gismeteo Pressure"
value_template: "{{ (states('sensor.gismeteo_pressure') | float / 1.33322) | round(1) }}"
availability_template: "{{ states.sensor.gismeteo_pressure != None }}"
Describe the bug
После обновления до последних версий не стартует компонент.
Debug log
Logger: homeassistant.config_entries
Source: custom_components/gismeteo/__init__.py:95
First occurred: 18:47:23 (1 occurrences)
Last logged: 18:47:23
Error setting up entry configuration.yaml for gismeteo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/gismeteo/__init__.py", line 95, in async_setup_entry
for uid, cfg in hass.data[DOMAIN][CONF_YAML].items():
RuntimeError: dictionary changed size during iteration
The weather forecast has been shifted by a 24 hours, relative to the original on Gismeteo
Remove 24 hours forecast shift from integration
n/a
n/a
После обновления на 108 НА поменялись иконки, и добавилась надпись High/Low. Можно сделать так как было раньше?
image
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The "issues" section only contains a "Feature request" button:
A possibility to register a bug.
none
none
Environment
Home Assistant 2022.7.3
Supervisor 2022.07.0
Operating System 7.6
Frontend 20220707.0 - latest
Describe the bug
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Expected behavior
Debug log
Logger: homeassistant.components.weather
Source: components/weather/__init__.py:308
Integration: Weather ([documentation](https://www.home-assistant.io/integrations/weather), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+weather%22))
First occurred: 12:55:25 (1 occurrences)
Last logged: 12:55:25
custom_components.gismeteo.weather::GismeteoWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom component author.
Additional context
Environment
Describe the bug
The component returns to HA yesterday among forecast days.
Looks in UI
Now Thursday and 6/3 but not 6/2
Gismeteo API respond for https://services.gismeteo.ru/inform-service/inf_chrome/forecast/?city=229845&lang=en
Configuration.yaml
- name: gismeteo
platform: gismeteo
mode: daily
- name: gismeteo_h
platform: gismeteo
mode: hourly
Expected behavior
Before 6/1 (apx) the component returned correct dates today, tomorrow...
Debug log
There're no any errors in logs
2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Data retrieved from https://services.gismeteo.ru/inform-service/inf_chrome/cities/?lat=54.1941381&lng=37.6877873&count=1&lang=en, status: 200 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.cache] Store cache file /config/.storage/location_54.1941381_37.6877873.xml 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Requesting URL https://services.gismeteo.ru/inform-service/inf_chrome/forecast/?city=229845&lang=en 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Cached response used 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.cache] Read cache file /config/.storage/forecast_229845.xml 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo] Finished fetching gismeteo data in 0.067 seconds 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Place coordinates: 54.1941381, 37.6877873 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Forecast mode: hourly 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.cache] Initializing cache 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Requesting URL https://services.gismeteo.ru/inform-service/inf_chrome/cities/?lat=54.1941381&lng=37.6877873&count=1&lang=en 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Cached response used 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.cache] Read cache file /config/.storage/location_54.1941381_37.6877873.xml 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Requesting URL https://services.gismeteo.ru/inform-service/inf_chrome/forecast/?city=229845&lang=en 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.api] Cached response used 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo.cache] Read cache file /config/.storage/forecast_229845.xml 2021-06-03 20:32:30 DEBUG (MainThread) [custom_components.gismeteo] Finished fetching gismeteo data in 0.089 seconds
Environment
Describe the bug
After last update HA Gismeteo component not working
Configuration.yaml
weather:
- platform: gismeteo
name: Home (Gismeteo)
mode: daily
latitude: 59.94
longitude: 30.32
sensor:
- platform: gismeteo
monitored_conditions:
- condition
- temperature
- temperature_feels_like
- humidity
- pressure
- wind_speed
- wind_bearing
- clouds
- rain
- snow
- storm
- geomagnetic
Add your configs here if any.
Steps to Reproduce
Expected behavior
Debug log
Logger: homeassistant.config_entries
Source: custom_components/gismeteo/api.py:207
Integration: Gismeteo ([documentation](https://github.com/Limych/ha-gismeteo), [issues](https://github.com/Limych/ha-gismeteo/issues))
First occurred: 17:00:18 (1 occurrences)
Last logged: 17:00:18
Error setting up entry configuration.yaml for gismeteo
Traceback (most recent call last):
File "/config/custom_components/gismeteo/api.py", line 198, in async_get_location
xml = etree.fromstring(response)
File "/usr/local/lib/python3.9/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 2
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/gismeteo/__init__.py", line 98, in async_setup_entry
coordinator = await _async_get_coordinator(hass, uid, cfg)
File "/config/custom_components/gismeteo/__init__.py", line 77, in _async_get_coordinator
await gismeteo.async_get_location()
File "/config/custom_components/gismeteo/api.py", line 207, in async_get_location
raise ApiError(
custom_components.gismeteo.api.ApiError: Can't retrieve location data! Invalid server response.
Additional context
Environment
Describe the bug
After HA starts, integration works fine.
But became unavailable after a while due to it failed to retrive location data.
Traceback (most recent call last):
File "/config/custom_components/gismeteo/api.py", line 198, in async_get_location
xml = etree.fromstring(response)
File "/usr/local/lib/python3.9/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 2
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/gismeteo/__init__.py", line 116, in async_setup_entry
coordinator = await _async_get_coordinator(hass, config_entry.entry_id, config)
File "/config/custom_components/gismeteo/__init__.py", line 77, in _async_get_coordinator
await gismeteo.async_get_location()
File "/config/custom_components/gismeteo/api.py", line 207, in async_get_location
raise ApiError(
custom_components.gismeteo.api.ApiError: Can't retrieve location data! Invalid server response.
Configuration.yaml
No manual yaml configuration.
Configured via integrations UI.
Steps to Reproduce
Expected behavior
Do not fail integration in case location is not available for a short period of time.
Debug log
Add your logs here.
Additional context
Environment
Describe the bug
The integration cannot setup on HA startup.
There is an error in the log:
Setup failed for gismeteo: Unable to import component: cannot import name 'HTTP_OK' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)
Configuration.yaml
The integration is setup via UI.
Steps to Reproduce
Upgrade HA to 2021.12
Expected behavior
The integration is loaded on HA startup.
Debug log
Add your logs here.
Additional context
Versions
Describe the bug
Component suddenly Stopped working after НА restart
2020-10-15 18:58:20 ERROR (MainThread) [homeassistant.components.weather] gismeteo: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gismeteo/weather.py", line 85, in update
self._wd.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
result = method(*args, **kwargs)
File "/config/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'
Versions
Configuration
- platform: gismeteo
forecast: true
monitored_conditions:
- rain
- snow
- storm
- geomagnetic
Describe the bug
Errors in HA log:
Logger: homeassistant.components.weather
Source: custom_components/gismeteo/__init__.py:336
Integration: Weather (documentation, issues)
First occurred: 15:24:20 (1 occurrences)
Last logged: 15:24:20
gismeteo: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 358, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gismeteo/weather.py", line 85, in update
self._wd.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 285, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/gismeteo/__init__.py", line 336, in update
xml = etree.fromstring(response)
File "/usr/local/lib/python3.8/xml/etree/ElementTree.py", line 1320, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 6, column 2
To Reproduce
Restart HA
Screenshots
Home Assistant 0.116.2
Компонент последней версии.
Настройки конфигурации:
weather:
- platform: gismeteo
mode: daily
Ошибка в логах: ERROR (SyncWorker_0) [custom_components.gismeteo] Can't detect nearest city!
Перестала отображаться карточка : Lovelace animated weather card
с надпись: "Entity not available: weather.gismeteo"
p.s.
при загрузке сервиса такие ошибки:
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/components/weather/init.py", line 145, in state_attributes
data[ATTR_WEATHER_TEMPERATURE] = show_temp(
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/temperature.py", line 23, in display_temp
raise TypeError(f"Temperature is not a number: {temperature}")
TypeError: Temperature is not a number: unknown
2019-09-06 23:20:17 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform gismeteo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
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/gismeteo/weather.py", line 57, in setup_platform
'cache_time': MIN_TIME_BETWEEN_UPDATES.total_seconds(),
File "/config/custom_components/gismeteo/gismeteo.py", line 132, in __init__
self._city_id = self._get_city_id(latitude, longitude)
File "/config/custom_components/gismeteo/gismeteo.py", line 167, in _get_city_id
response = self._http_request(url, cache_fname)
File "/config/custom_components/gismeteo/gismeteo.py", line 157, in _http_request
self._cache.save_cache(cache_fname, response)
File "/config/custom_components/gismeteo/gismeteo.py", line 108, in save_cache
os.makedirs(self._cache_dir)
File "/usr/local/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/tmp/gismeteo'
Это приведет к неисправностям в версии 2024.3.0. Пожалуйста, устраните эту проблему перед обновлением.
The custom integration gismeteo implements the forecast property or sets self._attr_forecast in a subclass of WeatherEntity.
Please create a bug report at https://github.com/Limych/ha-gismeteo/issues.
Once an updated version of gismeteo is available, install it and restart Home Assistant to fix this issue.
fix the the forecast property , WeatherEntity
No idea
No context
Environment
Describe the bug
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Expected behavior
Debug log
Add your logs here.
Additional context
This would be great for heating automations
Environment
Home Assistant OS 5.12 stable
supervisor-2021.04.0
core-2021.4.6
Describe the bug
On change Forecast Mode - second set of entities appears:
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Change Forecast Mode in Integration Options.
Expected behavior
Same entities must be re-used with no doubt.
Debug log
Add your logs here.
Additional context
Environment
Describe the bug
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 16:18:20 (10 occurrences)
Last logged: 16:18:20
Entity sensor.gismeteo_rain (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.gismeteo_snow (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.gismeteo_storm (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.gismeteo_temperature (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.gismeteo_wind_speed (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) implements device_state_attributes. Please report it to the custom component author.
Configuration.yaml
weather:
- platform: gismeteo
Steps to Reproduce
Expected behavior
No errors or warnings.
Debug log
Add your logs here.
Additional context
Гисметео давление отдает в mmHg и скорость ветра в м/с
Сделайте пожалуйста возможность выбора единицы измерения, тем более в коде у вас эти значения присутствуют.
Не охота в ручную править ваш код.
Home Assistant 2021.2.3
Компонент последней версии
2021-02-15 11:39:32 ERROR (MainThread) [homeassistant.helpers.entity] Update for weather.gismeteo fails
Traceback (most recent call last):
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/homeassistant/config/custom_components/gismeteo/weather.py", line 85, in update
self._wd.update()
File "/opt/homeassistant/lib/python3.9/site-packages/homeassistant/util/init.py", line 285, in wrapper
result = method(*args, **kwargs)
File "/opt/homeassistant/config/custom_components/gismeteo/init.py", line 336, in update
xml = etree.fromstring(response)
File "/usr/local/lib/python3.9/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
File "", line None
Environment
Describe the bug
After updating Home Assistant 2023.9.0, there was a change of weather entities, an integration correction is needed. I receive a message :
gismeteo integration uses an outdated forecast attribute.
Please report it to the custom integration author..
This will cause malfunctions in version 2024.3.0. Please fix this problem before updating.
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Install Home Assistant 2023.9.0 - latest
Expected behavior
Debug log
Add your logs here.
Additional context
Environment
version | core-2021.7.3 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
virtualenv | false |
python_version | 3.9.5 |
os_name | Linux |
os_version | 5.10.17-v8 |
arch | aarch64 |
timezone | Europe/Riga |
GitHub API | ok |
---|---|
Github API Calls Remaining | 4876 |
Installed Version | 1.13.2 |
Stage | running |
Available Repositories | 912 |
Installed Repositories | 20 |
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | pending |
host_os | Home Assistant OS 6.1 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2021.06.8 |
docker_version | 20.10.6 |
disk_total | 54.3 GB |
disk_used | 13.5 GB |
healthy | true |
supported | true |
board | rpi4-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Samba Backup (4.5.0), SSH & Web Terminal (9.0.0), File editor (5.3.3), Mosquitto broker (5.1.1), Z-Wave JS to MQTT (0.23.2), Zigbee2mqtt (1.18.2-1), MariaDB (2.4.0), phpMyAdmin (0.4.3), Samba share (9.5.0) |
dashboards | 8 |
---|---|
resources | 8 |
views | 29 |
mode | storage |
Describe the bug
As far as I noticed - after core upgrade to 2021.7.x Gismeteo intergration entities frequently (several times par day) become unavailable. But not sure this (HA core version) is a reason.
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Expected behavior
Debug log
2021-07-27 15:50:20 ERROR (MainThread) [custom_components.gismeteo] Error fetching gismeteo data: Can't update weather data! Invalid server response.
Additional context
After integration restart it starts to show data.
В Homeassistant 0.115 отвалились homeassistant.const.PERCENTAGE, а вы их использовали с 2.0.18.
Очень много custom_components на этом полегло.
Поэтому теперь имеем:
Уровень: ERROR
Logger: homeassistant.config
Source: custom_components/gismeteo/const.py:16
First occurred: 8:14:36 (1 occurrences)
Last logged: 8:14:36
Platform error: weather
Traceback (most recent call last):
File "/srv/homeassistant/lib64/python3.8/site-packages/homeassistant/config.py", line 804, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib64/python3.8/site-packages/homeassistant/loader.py", line 389, in get_platform
cache[full_name] = importlib.import_module(
File "/usr/lib64/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 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 37, in <module>
from .const import (
File "/home/homeassistant/.homeassistant/custom_components/gismeteo/const.py", line 16, in <module>
from homeassistant.const import (
ImportError: cannot import name 'PERCENTAGE' from 'homeassistant.const' (/srv/homeassistant/lib64/python3.8/site-packages/homeassistant/const.py)
Добрый день.
Gismeteo умеет отдавать прогноз на русском и других языках через параметр lang=ru
в запросе.
Есть ли возможность добавить поодержку языков, ну хотя бы русского? :)
Спасибо.
1
Регистратор: homeassistant
Источник: components/sensor/init.py:670
Первое сообщение: 09:25:27 (4 сообщений)
Последнее сообщение: 09:40:33
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 663, in state
numerical_value = int(value)
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'unknown'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 666, in state
numerical_value = float(value)
^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 261, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 417, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 183, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 497, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1113, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1050, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 670, in state
raise ValueError(
ValueError: Sensor sensor.gismeteo_wind_bearing has device class 'None', state class 'None' unit '°' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
1
1
Configuration
homeassistant:
name: Home Assistant
latitude: 55.949571
longitude: 37.924716
elevation: 0
unit_system: metric
time_zone: Europe/Moscow
default_config:
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
weather:
- platform: gismeteo
Describe the bug
Я установил пакет hass.io с центра пакетов Synology.
Потом в /hass.io/homeassistant/custom_components/gismeteo скопировал все файлы из \ha-gismeteo-master\custom_components\gismeteo
Но в списке интеграций gismeteo не появилась и добавить панель погоды не могу.
Debug log
в разделе /config/logs я вижу такие ошибки
Logger: custom_components.gismeteo
Source: custom_components/gismeteo/__init__.py:165
Integration: Gismeteo (documentation)
First occurred: 20:59:05 (1 occurrences)
Last logged: 20:59:05
Can't detect nearest city!
Logger: homeassistant.loader
Source: loader.py:463
First occurred: 20:59:00 (1 occurrences)
Last logged: 20:59:00
You are using a custom integration for gismeteo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
I would like to see pollen sensors for birch with a 10-day forecast
Describe alternatives you've considered
Pollen.com and IQWIA. This untegrations supported only USA and GB. Russia do not supported
Additional context
Environment
Describe the bug
How to remove Gismeteo icon from map?
Configuration.yaml
Not using config file, only UI
Steps to Reproduce
Expected behavior
Debug log
Nothing in a log file
Additional context
Version of the Home Assistant:
Home Assistant 2021.2.3
Gismeteo ha-gismeteo 2.1.0
Dont install. Give error:
2021-03-02 14:14:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 136, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 69, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 130, in async_init
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/gismeteo/config_flow.py", line 95, in async_step_user
default=self.hass.config.get(CONF_FORECAST, False),
AttributeError: 'Config' object has no attribute 'get'
При попытке вызвать службу данных о погоде weather.get_forecasts - gismeteo не отображается в списке доступных. Соответственно, прогноз gismeteo не отображается в кастомной карте Weather Chart Card (https://github.com/mlamberts78/weather-chart-card/issues).
Также в журнале сервера есть предупреждения об устаревших атрибутах:
Было бы супер, если бы gismeteo обновился до версии 3, с новыми изменениями, которые позволят полноценно использовать эту интеграцию
Xxx
Xxx
Environment
Describe the bug
The Icons placed on the map by Gismeteo are in the right place bug wrapped around the globe from everything else, so the map as to be shown twice. Had to explain, see screen shot in additional info.
Configuration.yaml
Add your configs here if any.
Steps to Reproduce
Expected behavior
Icons from Gismeteo and other map locations in the same area.
Debug log
2022-06-21 22:25:56 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'counter', 'ezviz', 'automation', 'system_health', 'zone', 'trace', 'input_datetime', 'logbook', 'timer', 'flux_led', 'my', 'default_config', 'google', 'media_source', 'history', 'weather', 'map', 'mobile_app', 'persistent_notification', 'lutron_caseta', 'plex', 'sensor', 'energy', 'scene', 'application_credentials', 'input_text', 'nws', 'input_boolean', 'cast', 'input_select', 'tag', 'input_number', 'samsungtv', 'sun', 'alexa_media', 'input_button', 'notify', 'tts', 'ffmpeg', 'hacs', 'unifi', 'blueprint', 'hubitat', 'script', 'group', 'gismeteo'}
2022-06-21 22:25:56 INFO (MainThread) [homeassistant.setup] Setting up gismeteo
2022-06-21 22:25:56 INFO (MainThread) [custom_components.gismeteo]
-------------------------------------------------------------------
Gismeteo
Version: 2.3.4
This is a custom integration!
If you have ANY issues with this you need to open an issue here:
https://github.com/Limych/ha-gismeteo/issues
-------------------------------------------------------------------
2022-06-21 22:25:56 INFO (MainThread) [homeassistant.setup] Setup of domain gismeteo took 0.0 seconds
2022-06-21 22:25:56 DEBUG (MainThread) [custom_components.gismeteo.api] Place coordinates: 47.87151190828796, -86.25637524127962
2022-06-21 22:25:56 DEBUG (MainThread) [custom_components.gismeteo.api] Forecast mode: hourly
2022-06-21 22:25:56 DEBUG (MainThread) [custom_components.gismeteo.cache] Initializing cache
2022-06-21 22:25:56 DEBUG (MainThread) [custom_components.gismeteo.api] Requesting URL https://services.gismeteo.ru/inform-service/inf_chrome/cities/?lat=47.87151190828796&lng=-86.25637524127962&count=1&lang=en
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo.api] Data retrieved from https://services.gismeteo.ru/inform-service/inf_chrome/cities/?lat=47.87151190828796&lng=-86.25637524127962&count=1&lang=en, status: 200
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo.cache] Store cache file /config/.storage/location_47.87151190828796_-86.25637524127962.xml
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo.api] Requesting URL https://services.gismeteo.ru/inform-service/inf_chrome/forecast/?city=8444&lang=en
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo.api] Cached response used
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo.cache] Read cache file /config/.storage/forecast_8444.xml
2022-06-21 22:25:58 DEBUG (MainThread) [custom_components.gismeteo] Finished fetching gismeteo data in 0.001 seconds (success: True)
2022-06-21 22:25:58 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.gismeteo
2022-06-21 22:25:58 INFO (MainThread) [homeassistant.components.weather] Setting up weather.gismeteo
2022-06-21 22:25:58 WARNING (MainThread) [homeassistant.helpers.entity] Temperature sensor sensor.home_temperature (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
2022-06-21 22:25:58 WARNING (MainThread) [homeassistant.helpers.entity] Temperature sensor sensor.home_temperature_feels_like (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
2022-06-21 22:25:58 WARNING (MainThread) [homeassistant.helpers.entity] Temperature sensor sensor.home_water_temperature (<class 'custom_components.gismeteo.sensor.GismeteoSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
Add your logs here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.