Time Is Not Real Until the Lamp Goes Red
Externalise time so it stops sneaking up on you.
The problem
Time blindness. 'Leaving in 30 minutes' and 'leaving right now' feel identical until you're already late.
What it does
A hallway lamp becomes a glanceable countdown to your leave time: green while you've got room, amber at 15 minutes, red and pulsing at 5. A sense of time you can see from across the room.
You'll need
- An RGB smart light
- input_datetime.leave_time + input_boolean.leaving_cue helpers
The payoff
Fewer frantic exits. The lamp does the worrying for you.
The YAML
alias: "Angry Dad — Time-To-Leave Lamp"
description: Turns a lamp into a glanceable countdown so time stops being invisible.
mode: single
triggers:
- trigger: time_pattern
minutes: "/1"
conditions:
- condition: state
entity_id: input_boolean.leaving_cue
state: "on"
actions:
- variables:
mins_left: >
{{ ((as_timestamp(today_at(states('input_datetime.leave_time')))
- as_timestamp(now())) / 60) | int }}
- choose:
- conditions: "{{ mins_left > 15 }}"
sequence:
- action: light.turn_on
target: { entity_id: light.hall_lamp }
data: { rgb_color: [0, 200, 60], brightness_pct: 50 }
- conditions: "{{ mins_left <= 15 and mins_left > 5 }}"
sequence:
- action: light.turn_on
target: { entity_id: light.hall_lamp }
data: { rgb_color: [255, 170, 0], brightness_pct: 70 }
- conditions: "{{ mins_left <= 5 and mins_left >= 0 }}"
sequence:
- action: light.turn_on
target: { entity_id: light.hall_lamp }
data: { rgb_color: [255, 0, 0], brightness_pct: 100, flash: short }
default:
- action: light.turn_off
target: { entity_id: light.hall_lamp }Drop this into an automation (or a package under config/packages/) and swap the entity IDs for your own.
Want the next one automatically?
One automation like this in your inbox every week.
Don't fancy the DIY?
Get Dycom Automation to do it properly.
Reading YAML isn't everyone's idea of a good night in. Dycom Automation — the grown-up, properly-insured version of all this — will design, install and tune your whole smart home for you. Same ruthless automations, none of the swearing.
Get it done by Dycom Automation →