Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (32 sloc) 940 Bytes
---
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: script.notify_join
data_template:
who: "stuart"
title: 'Motion Detected'
notification_id: "hass-sec-motion"
value1: 'Motion has been detected by {{ trigger.to_state.attributes.friendly_name }}.'
You can’t perform that action at this time.