bastshoes / yandex_weather Goto Github PK
View Code? Open in Web Editor NEWHomeAssistant custom component for Yandex Weather
HomeAssistant custom component for Yandex Weather
Are any weather sensors being created?
Создаются ли какие-либо сенсоры погоды?
Ошибка в декодировании JSON
[custom_components.yandex_weather.weather] Error fetching data from Yandex.Weather, 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://api.weather.yandex.ru/v2/informers?lat=55.xxxxxx&lon=49.xxxxxx')
геолокацию скрыл
Dear Developer,
Kindly fix the error if possible
Logger: homeassistant.components.weather
Source: components/weather/init.py:308
Integration: Weather (documentation, issues)
First occurred: 08:43:03 (1 occurrences)
Last logged: 08:43:03
custom_components.yandex_weather.weather::YandexWeather 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 integration author.
Не нашел куда запостить.
Было бы интересно иметь возможность указать язык вывода данных о погоде и прогнозе.
Хочется оставить язык интерфейса английским но погоду на русском бы хотелось
Dear Developer,
Got flw error/warning in the log:
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:103
First occurred: 17:39:08 (1 occurrences)
Last logged: 17:39:08
Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.3. Please report issue to the custom component author for yandex_weather using this method at custom_components/yandex_weather/weather.py, line 251: async with async_timeout.timeout(5, loop=self._loop):
And custom integration is not working anymore on HA 2022.3
Kindly check and if possible fix the issue
REGARDS
ALEX
Было бы интересно, если компонента кешировала результат запросов ... и не запрашивала бы данные с яндекса при каждом запросе. При перезапусках во время тестирования автоматизации и тп быстро выжирает кол-во запросов к API
After each launch, I see the following error:
После каждого запуска вижу такую ошибку:
Logger: custom_components.yandex_weather.weather
Source: custom_components/yandex_weather/weather.py:265
Integration: yandex_weather (documentation)
First occurred: 16:30:01 (1 occurrences)
Last logged: 16:30:01
Error fetching data from Yandex.Weather,
Can you suggest a solution?
Не подскажете решение?
Сразу после обновления до версии 0.113.1 возникла вот такая ошибка
в логах нашёл вот это
Logger: homeassistant.components.weather
Source: custom_components/yandex_weather/weather.py:168
Integration: Weather (documentation, issues)
First occurred: 26 июля 2020 г., 18:02:23 (1 occurrences)
Last logged: 26 июля 2020 г., 18:02:23
Error while setting up yandex_weather platform for weather
---
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 187, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 452, in _async_add_entity
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 290, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
sstate = self.state
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 188, in state
return self.condition
File "/config/custom_components/yandex_weather/weather.py", line 166, in condition
return next((
File "/config/custom_components/yandex_weather/weather.py", line 168, in <genexpr>
if self._weather_data.current['condition'] in v), None)
KeyError: 'condition'
Hi! I've been following the readme to install this addon, and got following error when tried to restart the core (and the same when checked the configuration):
The system cannot restart because the configuration is not valid: Platform error weather.yandex_weather - Integration 'yandex_weather' not found.
Should I have done something differently?
Добрый день!
В настоящее время на hass.io (0.103.6) данный код не работает
Я так понимаю, у яндекса сменился API. И в связи с этим:
'dict' object has no attribute 'index'
, решить которую я пока не могуI've installed component and using test (30-days trial) API key
I had following errors in log:
Log Details (ERROR)
Tue Feb 18 2020 14:09:24 GMT+0300 (Moscow Standard Time)
Error fetching data from Yandex.Weather, 403, Forbidden
and the second one:
Tue Feb 18 2020 14:15:36 GMT+0300 (Moscow Standard Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 424, in _async_add_entity
await entity.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
state = self.state
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 187, in state
return self.condition
File "/config/custom_components/yandex_weather/weather.py", line 168, in condition
if self._weather_data.current['condition'] in v), None)
File "/config/custom_components/yandex_weather/weather.py", line 168, in <genexpr>
if self._weather_data.current['condition'] in v), None)
KeyError: 'condition'
Could you please help me to resolve an issues?
I'm using hass.io Home Assistant 0.105.3
many thanks,
Ilya
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.