Skip to content

Instantly share code, notes, and snippets.

@kopiro
Last active January 1, 2025 12:19
Show Gist options
  • Save kopiro/34bb697e2c0ec657b7427a1602d4ddc3 to your computer and use it in GitHub Desktop.
Save kopiro/34bb697e2c0ec657b7427a1602d4ddc3 to your computer and use it in GitHub Desktop.
Sunrise Alarm Automation Blueprint
blueprint:
name: Sunrise Alarm
description: Sunrise effect with light and media player
domain: automation
input:
media_player:
name: Media Player
description: The media player entity
selector:
entity:
domain: media_player
lights:
name: Lights
description: Array of light entities
selector:
entity:
domain: light
multiple: true
start_brightness:
name: Start Brightness
description: Starting brightness level
default: 0.0
selector:
number:
min: 0.0
max: 100.0
step: 1.0
mode: slider
end_brightness:
name: End Brightness
description: Ending brightness level
default: 100.0
selector:
number:
min: 0.0
max: 100.0
step: 1.0
mode: slider
start_kelvin:
name: Start Kelvin
description: Starting Kelvin temperature
default: 2202
selector:
color_temp:
unit: kelvin
min: 2000
max: 4000
end_kelvin:
name: End Kelvin
description: Ending Kelvin temperature
default: 2500
selector:
color_temp:
unit: kelvin
min: 2000
max: 4000
duration:
name: Duration
description: Duration in minutes
selector:
number:
min: 1
max: 120
step: 1
max_volume:
name: Max Volume
description: Maximum volume level
selector:
number:
min: 0
max: 100
step: 1
timeout:
name: Timeout
description: Timeout in minutes after sunrise effect
selector:
number:
min: 0
max: 60
step: 1
trigger:
- platform: time
at: '07:00:00'
action:
- service: script.sunrise_alarm
data:
media_player: !input media_player
lights: !input lights
start_brightness: !input start_brightness
end_brightness: !input end_brightness
start_kelvin: !input start_kelvin
end_kelvin: !input end_kelvin
duration: !input duration
max_volume: !input max_volume
timeout: !input timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment