Lighting Off - GF

View All Rules

alias: Lighting Off - GF
trigger:
- entity_id: switch.occ_room_livingroom
  platform: state
  to: 'off'
- entity_id: switch.occ_room_kitchen
  platform: state
  to: 'off'
condition:
- condition: state
  entity_id: switch.occ_room_livingroom
  state: 'off'
- condition: state
  entity_id: switch.occ_room_kitchen
  state: 'off'
action:
  - service: light.turn_off
    data:
      entity_id: light.gf_hallway_celing
  - service: switch.turn_off
    data:
      entity_id: switch.gf_living_light_jar_switch

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