本帖最后由 neroxps 于 2019-1-25 09:59 编辑
Home-assistant 0.86.1 更新注意事项
0.86.0 有 bug,这些bug官方已经紧急发布 0.86.1修复了,详情看更新页面日志
Release-0861
破坏性更新,如果自动化使用time触发的,用到 hours ,minutes ,seconds 字段,则需要改成 time_pattern
详情请参阅官方例子 https://www.home-assistant.io/docs/automation/trigger/#time-trigger
例如下面L大出品的彩云自动更新服务修复
automation:
- alias: caiyun_update
initial_state: true
trigger:
- platform: time
hours: '/1'
minutes: 1
seconds: 0
- platform: time
hours: '/1'
minutes: 15
seconds: 0
- platform: time
hours: '/1'
minutes: 31
seconds: 0
- platform: time
hours: '/1'
minutes: 45
seconds: 0
condition:
condition: time
after: '07:05:00'
before: '23:35:00'
action:
- service: sensor.download_caiyun_weatherdata_forecast
- delay: 00:00:03
- service: sensor.download_caiyun_weatherdata_realtime
修改成
automation:
- alias: caiyun_update
initial_state: true
trigger:
- platform: time_pattern # ←这里修改了
hours: '/1'
minutes: 1
seconds: 0
- platform: time_pattern # ←这里修改了
hours: '/1'
minutes: 15
seconds: 0
- platform: time_pattern # ←这里修改了
hours: '/1'
minutes: 31
seconds: 0
- platform: time_pattern # ←这里修改了
hours: '/1'
minutes: 45
seconds: 0
condition:
condition: time # ←这里因为没用到 hours minutes seconds 这些字段,所以不需要修改
after: '07:05:00'
before: '23:35:00'
action:
- service: sensor.download_caiyun_weatherdata_forecast
- delay: 00:00:03
- service: sensor.download_caiyun_weatherdata_realtime
默认启动 lovelace,如果你没配置过那么你可以开始学习怎么配置lovelace了了
|