参考:
https://www.home-assistant.io/docs/scripts/conditions/
在自动化里面添加了weekday的参数,死活都是报错,到底是什么情况。
官方例子
condition:
condition: time
# At least one of the following is required.
after: '15:00:00'
before: '02:00:00'
weekday:
- mon
- wed
- fri
我的配置
- id: '1555913846539'
alias: remain_tunoff_shushe_water_heater
trigger:
- entity_id: device_tracker.xxxxxxxx
for: 0:00:05
from: not_home
platform: state
to: home
condition:
condition: time
after: '19:00:00'
before: '20:30:00'
weekday:
- mon
- web
action:
- data:
message: 宿舍热水器提醒
title: 是否关闭
service: notify.ios_lijian_siphone
|