Skip to content

Instantly share code, notes, and snippets.

@devnowcommit
devnowcommit / wake-up-light-alarm-with-sunrise-effect.yaml
Created March 8, 2023 08:01 — forked from sbyx/wake-up-light-alarm-with-sunrise-effect.yaml
Home Assistant Blueprint: Wake-up light alarm with sunrise effect
blueprint:
name: Wake-up light alarm with sunrise effect
description: 'A wake-up light alarm with a brightness and color temperature sunrise
effect. Note: Requires date_time_iso sensor in configuration, not manually executable!'
domain: automation
input:
light_entity:
name: Wake-up light entity
description: The light to control. Turning it off during the sunrise will keep
it off. Color temperature range is auto-detected.
$defaultBrowserValue = "chrome.exe"
$browserInput = Read-Host "Enter browser executable (or press Enter for default [$defaultBrowserValue])"
$browserValue = if ([string]::IsNullOrEmpty($browserInput)) { $defaultBrowserValue } else { $browserInput }
$defaultDelayValue = "3"
$delayInput = Read-Host "Enter tab appearance delay (or press Enter for default [$defaultDelayValue])"
$delayValue = if ([string]::IsNullOrEmpty($delayInput)) { [double]$defaultDelayValue } else { [double]$delayInput }
$genreIds = @(
@{ "category" = "Scary Cult Movies from the 1980s" ; "id" = 2}