Welcome Lights when Front Door Open

View All Rules

alias: Welcome Lights when Front Door Open
trigger:
  - entity_id: binary_sensor.xd_front
    platform: state
    to:  'on'
  - entity_id: binary_sensor.motion_gf_hallway_camera
    platform: state
    to:  'on'
condition:
  condition: and
  conditions:
    - condition: state
      entity_id: 'light.gf_hallway_celing'
      state: 'off'
    - condition: numeric_state
      entity_id: sensor.family_family_state_raw
      below: 7 # Anyone Awake
      above: 1
    - condition: or
      conditions:
        - condition: state
          entity_id: sensor.light_scene
          state: Night
        - condition: state
          entity_id: sensor.light_scene
          state: Morning
        - condition: state
          entity_id: sensor.light_scene
          state: Sunset
        - condition: state
          entity_id: sensor.light_scene
          state: Dusk
        - condition: state
          entity_id: sensor.light_scene
          state: Dawn
        - condition: state
          entity_id: sensor.light_scene
          state: Sunrise
action:
  - service: light.turn_on
    data:
      entity_id: light.gf_hallway_celing
      brightness: 150
      rgb_color: [255,207,120]
      effect: none


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