Thanks!
Hello, is there a way to do a color flow with nightlight ?
start a color flow under nightlight mode
Hello,
can you please let me know how to switch from the nightlight mode back to the standard mode using the API?
Thank you.
Hi,
If the client keeps track of the Ceiling’s brightness and color temperature info, it could achieve this by set_ct_abx interface. But I assume this is untrue for your case.
There’s an extra parameter “mode” for set_power interface though, which can be used to switch to specific mode regardless of current power status.
- Example 1: switch or turn on the light to last mode:
{“method”:“set_power”,“params”:[“on”, “smooth”, 500, 0]} - Example 2: switch or turn on the light to normal mode:
{“method”:“set_power”,“params”:[“on”, “smooth”, 500, 1]} - Example 2: switch or turn on the light to nightlight mode:
{“method”:“set_power”,“params”:[“on”, “smooth”, 500, 5]}
Note this interface requires/allows no brightness or color information.
Other values for mode (not supported by Yeelight Ceiling):
2: switch to RGB mode
3: switch to HSV mode
4. switch to color flow mode
Hope this helps.
Thank you for your quick answer. It was very helpful.
Hi Peter (@yeelight_ceiling)
As i can read, you use Home assistant, and you added this lamp.
Please, can you tell me how did you added?
I’m using too home assistant, but i would like to know if this lamp is compatible, before buy it.
Also i see that is new version, but also i dunno if it will possible to add in home assistant.
thanks
It is supported using this component:
https://home-assistant.io/components/light.yeelight/
although moonlight is not supported yet. i use moonlight mode with a separate script
best regards
Hi Peter,
I’m also a HA user. Can you share you code that you used to enable moon mode in HA?
Thx in advance!
@liufei But if the light is OFF, then this command turn on and ignore Moon (“5”). If the light is ON, then it works. Why?
hi,what’s is the model of your device(yeelink.light.ceilingxxx),or your MI ID please.
Where is this info? Its standard old 320.
you can update the firmware to 2.0.6_0193.
ps:{“id”:1,“method”:“get_prop”,“params”:[“model”]} can get the model info
{“id”:1,“method”:“get_prop”,“params”:[“model”]}
Upgraded and tested.
{“id”:1,“method”:“get_prop”,“params”:[“model”]}
{“id”:1,“result”:[“ceiling1”]}
With commands same problem:
Don’t know, what is it
So again and again same problem!
Only send:
{“id”:132,“method”:“set_power”,“params”:[“on”,“sudden”, 500, 5]}
Nothing more! Dont know why is there cative mode 0 and flowing 1, but light isn’t in moon mode
So, more than two years and no solution?!?