Lighting Off - GF Kitchen

View All Rules

alias: Lighting Off - GF Kitchen
trigger:
- entity_id: switch.occ_room_kitchen
  platform: state
  to: 'off'
  for:
    seconds: 90
condition:
  condition: and
  conditions:
    - condition: state
      entity_id: switch.occ_room_kitchen
      state: 'off'
    - condition: template
      value_template: "{{ not is_state('sensor.house_scene', 'Going To Bed') }}"
action:
  - service: light.turn_off
    data:
      entity_id: group.light_gf_dinning
  - service: switch.turn_off
    data:
      entity_id: switch.ff_bedroom_tv_switch
  - service: switch.turn_off
    data:
      entity_id: switch.wh_seasonal_two_switch

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.