1
10
119
注册会员
使用道具 举报
27
2147
9072
论坛元老
#自动化配置 automation: alias: reshuiqi trigger: platform: time # 在每天的19:00:00触发 at: '19:00:00' action: # 打开开关,然后间隔60分钟,后关闭开关 - ervice: light.turn_on entity_id: switch.热水器开关 - delay: 01:00:00 - ervice: light.turn_off entity_id: switch.热水器开关
8
2085
6139
流水无味
情非殇 发表于 2018-9-14 17:41 [code] #自动化配置
7
399
2294
金牌会员
123
632
高级会员
0
4
41
新手上路
oosee 发表于 2018-10-21 23:01 这个定时的怎么用?放到哪个文件?新手,搜半天也找不到答案。
情非殇 发表于 2018-10-22 09:22 这是自动化配置啊,可以放到automations.yaml里面,删除第一行,剩下的向前缩进2个空格 ...
22
83
本版积分规则 发表回复 回帖后跳转到最后一页
为论坛做出突出贡献的会员
经常在论坛发帖,且发帖量较大
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-12 00:45 , Processed in 0.118027 second(s), 32 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.