- 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