Hi All,
Thanks to some help in discord, I was able to solve this… wanted to leave the answer here for others.
The issue I had was, i couldn’t set the RGB, brightness and color_temp in one command. As a result, I split the work across to service calls. This introduces a few seconds of lag - which is fine as I just wanted a quick way to make sure my system turned on with my preferred settings (or could easily be put back if someone was playing around).
https://hastebin.com/wowoperage.hs
- alias: 'set lights to default'
trigger:
platform: homeassistant
event: start
action:
- service: light.turn_on
entity_id:
- light.dining
- light.lounge
- light.hallway
data:
brightness_pct: 100
#color_temp: 420
rgb_color: [255, 255, 255]
- service: light.turn_on
entity_id: light.bathroom
data:
brightness_pct: 100
#color_temp: 155
rgb_color: [255, 255, 255]
- service: light.turn_on
entity_id:
- light.dining
- light.lounge
- light.hallway
data:
color_temp: 420
- service: light.turn_off
entity_id:
- light.dining
- light.lounge
- light.hallway
- service: light.turn_off
entity_id: light.bathroom
Hope this helps others