I have an automation (Wake up and go to sleep light automation) that turns off all my lights at 22.00.
Occasionally (let’s be honest, quite often), I stay up playing, writing or programming beyond that and don’t want the lights to turn off.
I created a Helper for “skipping next dim” as I call it: it’s a boolean toggle
entity_id: input_boolean.skip_next_dim
state: 'on'
last_changed: '2026-09-20T18:52:20.412Z'
last_updated: '2026-09-20T18:52:20.412Z'
attributes:
editable: true
icon: mdi:skip-forward
friendly_name: Skip next dimI then wrapped my automation into an if/else block (in the automation UI it’s called Conditionally execute an action and default to another action):
alias: Go to sleep
description: ''
triggers:
- trigger: time
at: '22:00:00'
conditions: []
actions:
- if:
- condition: switch.is_off
target:
entity_id: input_boolean.skip_next_dim
options:
behavior: any
for: '00:00:00'
then:
- action: light.turn_on
metadata: {}
target:
entity_id:
- light.bedroom
- light.hallway
data:
brightness_pct: 20
- action: light.turn_off
metadata: {}
data: {}
target:
area_id:
- bedroom
- kitchen
- hallway
- living
- trio
else:
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.skip_next_dim
data: {}
mode: single
Now, if it’s on, it will go to else path and turn itself off. If it’s off, it will proceed to turn off all my lights.
(as a sidenote, I have a light.turn_on before turning off because I need to set my hallway and bedroom light to dim because I have a Night lights with motion sensor automation and currently the lights always first start in the last brightness)