condition:
- condition: time
after: '18:00:00'
weekday:
- mon
- wed
- fri
- sun
- condition: and
conditions:
- condition: not
conditions:
- condition: state
entity_id: 'weather.my_home
state: rainy
for:
hours: 24
minutes: 0
seconds: 0
- condition: and
conditions:
- condition: template
value_template: >-
{{ state_attr('weather.my_home', 'forecast')[0].condition ==
'rainy' }}
我想要的条件是每个星期的一三五天, 18点之后, 并且过去的24小时 和 明天 没有下雨. 就通过这个条件!homeassistant 自带的天气组件
请问一下各位大神我的逻辑和模板对吗?
|