1
9
119
注册会员
使用道具 举报
27
2122
9091
论坛元老
#自动化配置 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
2078
6155
流水无味
情非殇 发表于 2018-9-14 17:41 [code] #自动化配置
7
393
2308
金牌会员
122
632
高级会员
0
4
41
新手上路
oosee 发表于 2018-10-21 23:01 这个定时的怎么用?放到哪个文件?新手,搜半天也找不到答案。
情非殇 发表于 2018-10-22 09:22 这是自动化配置啊,可以放到automations.yaml里面,删除第一行,剩下的向前缩进2个空格 ...
22
83
本版积分规则 发表回复 回帖后跳转到最后一页
为论坛做出突出贡献的会员
经常在论坛发帖,且发帖量较大
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-11 10:19 , Processed in 0.369780 second(s), 23 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.