Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created October 26, 2025 20:36
Show Gist options
  • Select an option

  • Save peyanski/08e0d7a7479cdd1739031a6a4dbb5c07 to your computer and use it in GitHub Desktop.

Select an option

Save peyanski/08e0d7a7479cdd1739031a6a4dbb5c07 to your computer and use it in GitHub Desktop.
# Automation 3: Don't Forget Your Stuff Reminder
# Reminds you to grab work essentials on workday mornings
alias: Work Essentials Reminder
description: >-
Reminds you in the morning if you open the door and your phone is still
charging.
triggers:
- entity_id:
- lock.front_door # CHANGE THIS to your door lock or sensor
to: unlocked
trigger: state
from: locked
conditions:
# Only trigger on workdays
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
# Only in the morning
- condition: time
before: "09:00:00"
# Only if phone is still charging
- condition: state
entity_id: sensor.kirils_phone_battery_state # CHANGE THIS
state: Charging
actions:
# Send persistent notification
- action: persistent_notification.create
data:
message: Don't forget your phone! ☎️
# Flash the entry light 5 times in red
- repeat:
count: 5
sequence:
# Turn light ON in red
- target:
entity_id:
- light.entry_light # CHANGE THIS to your light
data:
rgb_color:
- 255 # Red
- 38
- 0
action: light.turn_on
# Wait 1 second
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
# Turn light OFF
- action: light.turn_off
target:
entity_id:
- light.entry_light # CHANGE THIS to your light
data: {}
# Wait 1 second
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment