Alert When Motion Detected

View All Rules

alias: Alert When Motion Detected
trigger:
  platform: state
  entity_id:
    - binary_sensor.motion_gf_dinning_camera
    - binary_sensor.motion_gf_hallway_camera
    - binary_sensor.motion_gf_kitchen_camera
    - binary_sensor.motion_gf_living_camera
    - binary_sensor.motion_gf_studio_camera
    - binary_sensor.motion_ff_bedroom
    - binary_sensor.motion_ff_landing
    - binary_sensor.motion_ff_study
    - binary_sensor.motion_gf_dinning
    - binary_sensor.motion_gf_living
  to: 'on'
condition:
  condition: or
  conditions:
    - condition: time
      before: '04:00:00'
      after: '23:30:00'
    - condition: state
      entity_id: group.people_family
      state: 'not_home'
action:
  - service: notify.signal_stuart
    data:
      message: 'Motion has been detected by {{ trigger.to_state.attributes.friendly_name }}.'

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