Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save peyanski/a667208b25160b7790426206535bd0a9 to your computer and use it in GitHub Desktop.
# Automation 1: Smart Real Workday Light Alarm
# This turns on bedroom lights only on real work mornings
description: >-
Gently turns on the bedroom light on workdays at 06:30 AM with a gradual
transition.
triggers:
- trigger: time
at: "06:30:00"
conditions:
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
actions:
- data:
transition: 300 # 5 minute fade-in if your light supports that
brightness: 255
action: light.turn_on
target:
entity_id:
- light.bedroom_light # CHANGE THIS to your bedroom light
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment