GithubHelp home page GithubHelp logo

colorfulclouds-weather's People

Contributors

fineemb avatar georgezhao2010 avatar maybeloveu avatar neckyaan avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

colorfulclouds-weather's Issues

关于极端天气预警

先感谢插件~
然后有个问题,在插件配置时有个“极端天气预警”的选项,虽然一直勾选的,
但貌似从来没有看到过预警的相关信息(感觉应该是对应实体的forecast_alert属性,但一直是空的)
我代码小白,看了下config_flow.py,调用的API是https://api.caiyunapp.com/v2.5/.../daily.json
查了彩云的wiki,如果需要天气预警信息,则需要在API最后添加 ?alert=true。
大佬能否关心一下?谢谢。

V2.0.1版weather实体还是无法启动加载

系统信息
版本 core-2024.6.1
安装类型 Home Assistant OS
开发版 false
Supervisor true
Docker true
用户 root
虚拟环境 false
Python 版本 3.12.2
操作系统系列 Linux
操作系统版本 6.6.29-haos
CPU 架构 x86_64
时区 Asia/Shanghai
配置目录 /config

日志如下:
日志记录器: homeassistant.components.weather
来源: helpers/entity_platform.py:600
集成: 天气 (文档, 问题)
首次出现: 09:13:57 (1 次总计出现)
上次记录: 09:13:57

Error adding entity weather.chen_pang_he_er_mei_de_wo_2 for domain weather with platform colorfulclouds
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 600, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 914, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1355, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 303, in extra_state_attributes
"forecast_minutely": self.forecast_minutely,
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 276, in forecast_minutely
return self.coordinator.data["result"]["minutely"]["description"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

日志记录器: homeassistant
来源: custom_components/colorfulclouds/weather.py:276
集成: colorfulClouds (文档, 问题)
首次出现: 09:19:57 (1 次总计出现)
上次记录: 09:19:57

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 303, in extra_state_attributes
"forecast_minutely": self.forecast_minutely,
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 276, in forecast_minutely
return self.coordinator.data["result"]["minutely"]["description"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'minutely'

hass日志报警

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 13:31:16 (2 occurrences)
Last logged: 13:31:16

Detected integration that accesses the is_metric property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for colorfulclouds using this method at custom_components/colorfulclouds/init.py, line 129: self.is_metric = hass.config.units.is_metric
Detected integration that accesses the is_metric property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for colorfulclouds using this method at custom_components/colorfulclouds/init.py, line 130: if hass.config.units.is_metric:

记录器:homeassistant.helpers.frame
来源:helpers/frame.py:77
首次出现:13:31:16(2 次出现)
最后登录时间:13:31:16

检测到访问单位系统的“is_metric”属性的集成。 这已被弃用,并将停止在 Home Assistant 2023.1 中工作。 请调整以改用实例检查。请在 custom_components/colorfulclouds/init.py 第 129 行使用此方法向 colourclouds 的自定义集成作者报告问题:self.is_metric = hass.config.units.is_metric
检测到访问单位系统的“is_metric”属性的集成。 这已被弃用,并将停止在 Home Assistant 2023.1 中工作。 请调整以改用实例检查。请在 custom_components/colorfulclouds/init.py 第 130 行使用此方法向 colourclouds 的自定义集成作者报告问题:如果 hass.config.units.is_metric:

Logger: homeassistant.components.weather
Source: components/weather/init.py:199
Integration: Weather (documentation, issues)
First occurred: 13:31:18 (1 occurrences)
Last logged: 13:31:18

custom_components.colorfulclouds.weather::ColorfulCloudsEntity 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.

记录器:homeassistant.components.weather
来源:组件/天气/init.py:199
集成:天气(文档、问题)
第一次发生:13:31:18(1 次)
最后登录时间:13:31:18

custom_components.colorfulclouds.weather::ColorfulCloudsEntity 正在覆盖 WeatherEntity 实例上不推荐使用的方法,这是无效的,并且将不受 Home Assistant 2023.1 的支持。 请将其报告给自定义集成作者。

home assistant core更新2023.3.0后,适配失败

此错误来自自定义集成。

Logger: homeassistant.config_entries
Source: custom_components/colorfulclouds/init.py:129
Integration: colorfulclouds (documentation, issues)
First occurred: 10:38:40 (2 occurrences)
Last logged: 11:06:27

Error setting up entry 彩云天气 for colorfulclouds
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/colorfulclouds/init.py", line 69, in async_setup_entry
coordinator = ColorfulcloudsDataUpdateCoordinator(
File "/config/custom_components/colorfulclouds/init.py", line 129, in init
self.is_metric = hass.config.units.is_metric
AttributeError: 'UnitSystem' object has no attribute 'is_metric'

请问如何UI配置

在HACS和intergation里面没有发现ui界面

Version

Home Assistant: 0.116.2
HACS: 1.6.0
Colorfulclouds-weather: master version

降雨概率的自动化触发条件怎么写?

大神好!我想做一个“1小时内降雨概率大于50%”的自动化触发条件,我在实体属性看到了Forecast probability,但它有4个值,我看了官方API说明,4个值分别代表接下来每半小时的降雨概率,那我的触发值应该怎么填写呢?请赐教,感激不尽!

iShot_2023-04-17_18 52 43

iShot_2023-04-17_18 52 56

V2.0版weather实体无法启动加载

日志如下:
日志记录器: homeassistant
来源: custom_components/colorfulclouds/weather.py:271
集成: colorfulClouds (文档, 问题)
首次出现: 17:58:20 (3 次总计出现)
上次记录: 18:01:33

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 298, in extra_state_attributes
"forecast_minutely": self.forecast_minutely,
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 271, in forecast_minutely
return self.coordinator.data["result"]["minutely"]["description"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'minutely'

Home Assistant 2023.8.3 无法使用

Home Assistant 2023.8.3
Supervisor 2023.08.1
前端版本: 20230802.1 - latest

stderr: [31m2023-08-19 09:42:24.515 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform colorfulclouds
stderr: Traceback (most recent call last):
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
stderr: await asyncio.gather(*tasks)
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
stderr: await entity.add_to_platform_finish()
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
stderr: self.async_write_ha_state()
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
stderr: self._async_write_ha_state()
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
stderr: state = self._stringify_state(available)
stderr: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stderr: File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
stderr: if (state := self.state) is None:
stderr: ^^^^^^^^^^
stderr: File "/config/custom_components/colorfulclouds/sensor.py", line 120, in state
stderr: return self.coordinator.data["result"]["realtime"][self.kind]

天气预报和小时预报不滚动,求助

views:

  • type: custom:grid-layout
    title: Home
    layout:
    cards:
    • type: grid
      title: weather
      view_layout:
      grid-area: weather
      columns: 1
      cards:

      • type: custom:weather-card
        entity: weather.beijing
        houer_forecast: true
        show_forecast: true
        icon: /hacsfiles/lovelace-colorfulclouds-weather-card/icons/animated1/
        name: ''
        secondary_info_attribute: wind_speed
        theme: ''

前端用的是 matt8707大神的,主要配置文件如ui-lovelace.yaml都是来自于他,
纯小白,一点都没入门,多方比对弄的,上面是我现在的配置,前端是yaml格式,只能通过配置文件配置,
目前是网页版本天气预报和小时预报都不能滚动看,安卓手机版本的homeassistant小时预报能滚动,中间的天气预报动不了,
有遇到的兄弟么, 求助,
完全不懂呀

KeyError: 'nearest'

Logger: homeassistant
Source: custom_components/colorfulclouds/sensor.py:181
First occurred: 下午7:32:20 (1 occurrences)
Last logged: 下午7:32:20

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 119, in _handle_refresh_interval
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/config/custom_components/colorfulclouds/sensor.py", line 181, in device_state_attributes
self._attrs["nearest_intensity"] = self.coordinator.data["result"]["realtime"]["precipitation"]["nearest"]["intensity"]
KeyError: 'nearest'

无法正常添加集成,提示Unknown error occurred

配置->集成->添加继承,单击提交按钮后显示Unknown error occurred,无法正常添加。控制台输出如下:

2020-10-10 01:49:57 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "d:\services\homeassistant386\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
    resp = await task
  File "d:\services\homeassistant386\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
    resp = await handler(request)
  File "d:\services\homeassistant386\lib\site-packages\aiohttp\web_middlewares.py", line 119, in impl
    return await handler(request)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\http\request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\http\ban.py", line 72, in ban_middleware
    return await handler(request)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\http\auth.py", line 127, in auth_middleware
    return await handler(request)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\http\view.py", line 129, in handle
    result = await result
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\config\config_entries.py", line 169, in post
    return await super().post(request, flow_id)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\components\http\data_validator.py", line 60, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\helpers\data_entry_flow.py", line 106, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\data_entry_flow.py", line 156, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\data_entry_flow.py", line 204, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "D:\Services\HomeAssistant386\config\custom_components\colorfulclouds\config_flow.py", line 44, in async_step_user
    json_text = requests.get(str.format("https://api.caiyunapp.com/{}/{}/{},{}/daily.json", user_input["api_version"], user_input["api_key"], user_input["longitude"], user_input["latitude"])).content
  File "d:\services\homeassistant386\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "d:\services\homeassistant386\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "d:\services\homeassistant386\lib\site-packages\requests\sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "d:\services\homeassistant386\lib\site-packages\requests\sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "d:\services\homeassistant386\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "d:\services\homeassistant386\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "d:\services\homeassistant386\lib\site-packages\urllib3\connectionpool.py", line 392, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "C:\Program Files\Python38\lib\http\client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Program Files\Python38\lib\http\client.py", line 1266, in _send_request
    self.putrequest(method, url, **skips)
  File "d:\services\homeassistant386\lib\site-packages\urllib3\connection.py", line 199, in putrequest
    return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\util\async_.py", line 120, in protected_loop_func
    check_loop()
  File "d:\services\homeassistant386\lib\site-packages\homeassistant\util\async_.py", line 91, in check_loop
    raise RuntimeError(
RuntimeError: Detected I/O inside the event loop. This is causing stability issues. Please report issue

关于适配Home Assistant 2022.3.0

记录器:homeassistant.helpers.entity
来源:helpers/entity.py:574 第一次发生: 22:47: 24 (10次) 最后记录: 22:47: 24

实体 sensor.home_shu_gua_zhi_shu (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) 实现了 device_state_attributes。请向自定义组件作者报告。
实体 sensor.home_zi_wai_xian (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) 实现了 device_state_attributes。请向自定义组件作者报告。
实体 sensor.home_shi_du (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) 实现 device_state_attributes。请向自定义组件作者报告。
实体 sensor.home_neng_jian_du (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) 实现了 device_state_attributes。请向自定义组件作者报告。
实体 sensor.home_feng_su (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) 实现 device_state_attributes。请向自定义组件作者报告。

关于手动配置

近期github的访问又变得很糟糕 好多人只能手动下载安装 还求大佬贴出手动下载后 configuration.yaml里的配置例子 谢谢!

此项在版本 2024.3.0 中无法工作。请在升级之前解决。

Home Assistant给出的警告

The colorfulclouds integration is using deprecated forecast
此项在版本 2024.3.0 中无法工作。请在升级之前解决。
The integration colorfulclouds is using the deprecated forecast attribute.
Please report it to the custom integration author..

image

大佬,能给彩云天气新增一个降雨预警实体嘛?string做状态也行

搞彩云一大目的就是为了降雨预警,现在的实体体现不出这个功能,都是温度湿度之类的。
其实也就是openweather和accuweather都能做的。
我看HACS前端能够正常显示降雨预警状态:“未来两小时不会下雨,请放心出门吧”
能不能搞个实体专门体现这个文字报告?这个HACS的代码我不清楚怎么搞?
大佬json解析添加一个解析器?加个文字输出实体?
这样就可以实现下雨前提前微信提醒等等功能了。

报错日志

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:583
First occurred: 2022年2月21日 19:20:46 (13 occurrences)
Last logged: 2022年2月21日 19:20:47

Entity sensor.wo_de_jia_zi_wai_xian (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.wo_de_jia_shi_du (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.wo_de_jia_neng_jian_du (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.wo_de_jia_feng_su (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.wo_de_jia_feng_xiang (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes. Please report it to the custom component author.

ha升级到2023.8后无法使用

HA升级到2023.8后,仪表板上无法正常显示,实体全部变为不可用。
Logger: homeassistant.components.weather
Source: components/weather/init.py:169
Integration: 天气 (documentation, issues)
First occurred: 01:17:14 (1 occurrences)
Last logged: 01:17:14

custom_components.colorfulclouds.weather::ColorfulCloudsEntity 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.

创建错误报告

DEVICE_CLASS_TEMPERATURE是从colorfulclouds使用的,这是一个已弃用的常量,将在HA Core 2025.1中删除。 请改用 SensorDeviceClass.TEMPERATURE,请在 https://github.com/fineemb/Colorfulclouds-weather/issues 创建错误报告
TEMP_CELSIUS 是从 colorfulclouds 中使用的,这是一个已弃用的常量,将在 HA Core 2025.1 中删除。 请改用 UnitOfTemperature.CELSIUS,请在 https://github.com/fineemb/Colorfulclouds-weather/issues 创建错误报告
TEMP_FAHRENHEIT 是从 colorfulclouds 使用的,这是一个已弃用的常量,将在 HA Core 2025.1 中删除。 请使用 UnitOfTemperature.FAHRENHEIT 代替,请在 https://github.com/fineemb/Colorfulclouds-weather/issues 创建错误报告

Core 版本 core-2021.12.6 版本适配

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 11:22:34 (11 occurrences)
Last logged: 11:22:34

Entity sensor.***紫外线等传感器 (<class 'custom_components.colorfulclouds.sensor.ColorfulcloudsSensor'>) implements device_state_attributes.
Please report it to the custom component author.
报告作者

怎么获取最高温度

我想在ha中根据一天的最高温度做一些自动化,发现只有最低温度,请问最高问题的实体叫什么?

api调用时间无法修改

在配置中把api调用时间修改为120分钟,在彩云上面查,还是很频繁的调用,修改无效。
然后想参照网上的方法,在inti.py文件上面修改datetime.timedata(minutes=xxx)这个代码,发现代码基本和原来不一样了,请问如何有效的修改api调用时间呢?太频繁伤不起呀

homeassistant_2022_07版提示

Logger: homeassistant.components.weather
Source: components/weather/init.py:308
Integration: Weather (documentation, issues)
First occurred: 09:45:03 (1 occurrences)
Last logged: 09:45:03

custom_components.colorfulclouds.weather::ColorfulCloudsEntity 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.

如何更改查询频率?

请问默认的查询频率是每小时多少次?最近我的彩云API开始统计后台请求次数了,收费是8元每万次,昨天看到请求了500+次,这个频率能否手动设置,如果不方便增加配置选项,能否告知一下代码位置?谢谢!

日出日落时间显示错误

HA版本:2021.11.5 supervised 版
是否有彩云key:是
是否安装最新彩云天气插件:是
时区是否正确:是,上海时区
GPS信息是否填写正确:是,为上海这边经纬度
其他信息是否显示正确:是

问题:
彩云卡片中日出时间显示为:“下午3:19:29”,日落时间显示为“下午11:36:36”,且第二天还是会显示错

尝试过用postman直接访问彩云API,返回信息中可以看到正确的日出日落时间,不知是否是HA版本太新,和彩云插件代码有冲突的原因?

weather实体不会自动刷新

weather实体不会自动刷新,需要对组件进行reload才可以手动刷新当前的日期,但是组件下其他的sensor刷新又是正常的,希望能解决一下
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.