Yeelights - How to setup an automated routine?

Hi folks,

So I got a Yeelight, updated the configuration.yaml and am able to see and adjust the light from my HA dashboard.

Now I want this light to act as a nightlight for my daughter. I want it to turn a color at 7:00pm, then stay that dim color until 7:00am where it turns another color. At 9:00am it turns off.

On weekends I want it to turn a different color than weekdays.

I think this is pretty easy stuff, but I don’t know where to actuyally put this in HA. Is it all in configuration.yaml? Or somewhere else? Thanks

Yes, if you are like me in the beginning of your HA adventure you can put all your automation in configuration.yaml.

When your configuration grows you can split it up to separate files.

Use the automation editor.

There’s a thread on reddit right now, doing the same thing with Yeelights.

Strange about the Automation Editor. I am on 50.2 and I don’t see “Configuration” on my UI. And I looked through all the other options and couldn’t find it there either.

Try creating an automations.yaml in the main directory and including that in your configuration.yaml.

automation: !include automations.yaml

Add config: to the top level of your configuration.yaml and restart HA.

1 Like