Yeelight Ceiling Light - switch day/night mode while off

#1

Is it possible via the API to change the ceiling light to day or night mode without the light switching on?

This command will turn the light on after changing mode, I want to change mode without it turning on.

Day
id":1,“method”:“set_power”,“params”:[“on”,“smooth”,500,1]}

Night
id":1,“method”:“set_power”,“params”:[“off”,“smooth”,500,5]}

0 Likes

#2

No, but I’m curious which scenario does it use?

0 Likes

#3

I have Xiaomi motion sensors in 7 rooms, these use the API to turn on the lights very dim (moon mode) if someone wakes up and walks to use the toilet etc.

The next day someone wishes to use the Bluetooth switch, the light comes on moon mode (last mode), I would like to change the light to day mode in the morning without switching the light on. At the moment I have to change the mode and then turn the light off which causes all lights to come on\off each morning.

0 Likes

#4

Turn the light off?
Do you mean turn the physical switch off and on,which cause the lamp restart?

0 Likes

#5

I have a easy solution
If you have installed mi home app,follow my steps
Assuming you wake up at 6 o’clock in the moring

1.Automation
2.Add+
3.Timer:repeat everyday,turn on 6:00
4.Smart devices:Yeelight Ceiling Light
Turn off night light
5.Save

Then the light can be changed to day mode in the morning automatically

0 Likes

#6

There is a another way
If you have installed mi home app,follow my steps
Assuming you need the night mode during 0:00-6:00

1.Mi Home
2.Yeelight Ceiling Light
3.Settings
4.Night light: start time 0:00, end time 6:00
5.Save

0 Likes