- alias: if there no motion for x minutes turn off the gate way light
trigger:
platform: state
entity_id: binary_sensor.bashroom_motion1
from: 'on'
to: 'off'
for:
seconds: "{{ states('input_number.bashroom_light_turn_off_delay_seconds')|int }}"
最后log里报错:
Invalid config for [automation]: expected int for dictionary value @ data['trigger'][0]['for']['seconds']. Got None. (See /config/automations.yaml, line 19). Please check the docs at https://home-assistant.io/components/automation/
搜了半天,找了好久的资料,是for里 不能有这种格式么?