kitchen-light-timeout.yaml 326 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
alias: Turn off kitchen light after no motion
trigger:
  - platform: state
    entity_id: binary_sensor.kitchen
    to: 'on'
condition:
  condition: or
  conditions:
    - condition: state
      entity_id: switch.kitchen
      state: 'on'
action:
  service: homeassistant.turn_on
  entity_id: script.kitchen_light_set_timeout