把小米多功能网关连接到了homeassistant,想设置门窗传感器打开,绿米人体传感器检测到人动并且亮度低时开灯,倒腾了半天不行,只剩下门窗传感器的话可以实现开门自动开灯,但是只要加上人体传感器或亮度传感器,就会报错,哪位能给解答下,谢谢了!
Error loading /config/configuration.yaml: mapping values are not allowed here in "/config/automations.yaml", line 10, column 14
实在想不通这一行能有啥错误,就一个空格,冒号也没问题entity_id: sensor.illumination_158d000405714a
- alias: open light when open the door
initial_state: true
trigger:
#门传感器状态判断
- platform: state
entity_id: 'binary_sensor.door_window_sensor_158d0002431d81'
from: 'off'
to: 'on'
condition: state
entity_id: sensor.illumination_158d000405714a
below: 100
action:
- service: light.turn_on
entity_id: light.deng