Hey.
I use SleepAsAndroid and I wanted to gradually increase the light brightness about ~5 minutes before my smart period starts. I wasn’t able to get it to work with IKEA FLOALT nicely - basically, when I used color_temp: cool
together with brightness, it always just started with full brightness. So I had to add a few delays and that’s why I am sharing it in the case someone runs into something similar:
alias: Start light after SleepAsAndroid smart period
description: ''
trigger:
- platform: device
domain: sleep_as_android
device_id: 4dd250e71f80bb747d60a48890700d1a
type: before_smart_period
condition: []
action:
- delay:
hours: 0
minutes: 40
seconds: 0
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.floaltalpha
data:
brightness_pct: 1
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.floaltalpha
data:
color_temp: 250
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.floaltalpha
data:
transition: 300
brightness_pct: 100
mode: single