Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created July 11, 2022 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joejulian/0701e5fea63936f3bac76e180d0abfab to your computer and use it in GitHub Desktop.
Save joejulian/0701e5fea63936f3bac76e180d0abfab to your computer and use it in GitHub Desktop.
alias: 'Front Yard: Ring Motion Detected'
description: ''
trigger:
- type: motion
platform: device
device_id: 6d8b2595065d11eb8733353522263a5f
entity_id: binary_sensor.front_door_motion
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
condition:
- condition: or
conditions:
- condition: sun
before: sunrise
- condition: sun
after: sunset
action:
- service: timer.start
data: {}
target:
entity_id: timer.porch_light_timer
mode: single
alias: 'Front Porch: Turn off light with timer'
description: ''
trigger:
- platform: state
entity_id: timer.porch_light_timer
to: idle
condition: []
action:
- service: switch.turn_off
data: {}
target:
device_id: 320f84960b9511eb985fb3a712f7e5e3
mode: single
alias: 'Front Porch: Turn on light with timer'
description: ''
trigger:
- platform: state
entity_id: timer.porch_light_timer
to: active
condition: []
action:
- service: switch.turn_on
data: {}
target:
device_id: 320f84960b9511eb985fb3a712f7e5e3
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment