Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created July 23, 2025 05:06
Show Gist options
  • Save peyanski/c02bb324f60cd8ee942e635955b9e9ff to your computer and use it in GitHub Desktop.
Save peyanski/c02bb324f60cd8ee942e635955b9e9ff to your computer and use it in GitHub Desktop.
New Automation - Kevin.yaml
alias: New automation - Kevin
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.aqara_lumi_motion_ac01_occupancy
to: "on"
id: detected
- trigger: state
entity_id:
- binary_sensor.aqara_lumi_motion_ac01_occupancy
to: "off"
for:
hours: 0
minutes: 5
seconds: 0
id: clear
- trigger: state
entity_id:
- binary_sensor.bbq_rlc_522_motion
from: "on"
id: detected
- trigger: state
entity_id:
- binary_sensor.bbq_rlc_522_motion
to: "off"
for:
hours: 0
minutes: 5
seconds: 0
id: clear
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- detected
sequence:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.desk_light
- conditions:
- condition: trigger
id:
- clear
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.desk_light
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment