找回密码
 立即注册
查看: 5388|回复: 3

[信息发布] 关于自动化delay使用问题

[复制链接]

5

主题

115

回帖

253

积分

中级会员

积分
253
金钱
133
HASS币
0
发表于 2018-10-15 00:40:47 | 显示全部楼层 |阅读模式
- alias: Auto_Close_MyRoom_Ligt2
  trigger:
    entity_id:  binary_sensor.myroom
    platform: state
    from: 'on'
    to: 'off'
  condition:
    condition: time
    after: '18:00'
    before: 01:00  
  action:
    - delay: 0:35
    - service: light.turn_off
    entity_id: light.my_room_tow

- delay: 0:35   这个我是在官网上看到是这样写的,但我写上去后一直报错。

报错如下:


Error loading /****/.homeassistant/configuration.yaml: while parsing a block collection  in "/******/.homeassistant/automations.yaml", line 129, column 5expected <block end>, but found '?'  in "/****/.homeassistant/automations.yaml", line 131, column 5

回复

使用道具 举报

wqqs 

30

主题

969

回帖

4183

积分

论坛元老

积分
4183
金钱
3179
HASS币
0

活跃会员

发表于 2018-10-15 07:34:10 | 显示全部楼层
- delay:
    seconds: 35
回复

使用道具 举报

27

主题

2120

回帖

9074

积分

论坛元老

积分
9074
金钱
6922
HASS币
30

论坛元老

发表于 2018-10-15 20:26:12 | 显示全部楼层
- delay: 00:35:00
这个格式是最简单的写法,还有就是像二楼这样写法,支持配置:milliseconds, seconds, minutes, hours, days
回复

使用道具 举报

22

主题

281

回帖

1071

积分

金牌会员

积分
1071
金钱
763
HASS币
20
发表于 2018-10-21 12:34:57 | 显示全部楼层
- delay: 00:00:35
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-5-7 09:03 , Processed in 0.079002 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表