那就要请出这两个服务了
重新载入插件
service: homeassistant.reload_config_entry
更新传感器
service: homeassistant.update_entity
其中homeassistant.reload_config_entry服务的话 会导致前端卡片刷新异常
service: homeassistant.update_entity我测试了下 会从网络上刷新 也会刷新其它关联的传感器
所以 我们先采用 service: homeassistant.update_entity服务
服务设置参考
service: homeassistant.update_entity
data: {}
target:
entity_id:
- weather.colorfulclouds_xxxx
全部配置
我这里设置的是每10分钟触发一次06:55-01:05不刷新 一个月大概就节省了1080次左右
当然触发条件可以根据具体情况设置
alias: 彩云天气刷新
description: ""
trigger:
- platform: time_pattern
minutes: /10
condition:
- condition: time
after: "06:55:00"
before: "01:05:00"
action:
- service: homeassistant.update_entity
data: {}
target:
entity_id:
- weather.colorfulclouds_xxxx
mode: single
<strong>注意:由于我们使用了自带服务进行刷新 插件就不需要自动刷新 插件的刷新间隔时间就可以改为1440(24小时刷新)了</strong>
敬轩 发表于 2023-11-14 09:09
彩云APP充值一年费用,用app的key 就没有次数限制
TestUser123 发表于 2023-11-14 09:38
什么叫彩云app的key?怎么获取?谢谢
敬轩 发表于 2023-11-16 21:53
苹果手机上“彩云天气”app 充值90元包年,用软件 “stream”可找出你的key ,stream使用方法可以百度, ...
jjcs 发表于 2024-3-12 01:04
开发的集成支持,但是不利于维护,用nodered开发,然后把数据通过api传给ha,是最稳的,ha随便更新, ...
欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) | Powered by Discuz! X3.5 |