Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API and MQTT report CCT bulbs state OFF when in night_mode #460

Closed
Chrominator opened this issue May 19, 2019 · 5 comments
Closed

REST API and MQTT report CCT bulbs state OFF when in night_mode #460

Chrominator opened this issue May 19, 2019 · 5 comments

Comments

@Chrominator
Copy link

Chrominator commented May 19, 2019

First of all, many thanks for this great dev.
Really amazing !

MiLightHub version 1.9.0-rc.6 (nodemcuv2)

My CCT buld is currently in night_mode.
http://x.x.x.x/gateways/0x8B6C/cct/1 produces the following :
{ "state": "OFF", "brightness": 128, "level": 50, "kelvin": 60, "color_temp": 283, "bulb_mode": "white", "color": { "r": 255, "g": 255, "b": 255 }, "effect": "white_mode" }
Previous state was OFF.
Did not find a way to know that the bulb is in night mode.
I expected to have it at least in state ON, or better with an effect : night_mode.

State is reported ON in such situation with RGBW bulbs.

@sidoh
Copy link
Owner

sidoh commented May 19, 2019

Looks like the night mode command is not properly decoded from the raw packet, I'll take a look.

@sidoh sidoh added the bug label May 19, 2019
@sidoh sidoh added this to the 1.9.0 milestone May 19, 2019
@sidoh
Copy link
Owner

sidoh commented May 19, 2019

Will be fixed in 1.9.0-rc.7.

(Build is in progress, artifacts will be published when it completes.)

Thanks for reporting!

@Chrominator
Copy link
Author

Chrominator commented May 19, 2019 via email

@poudenes
Copy link

When change bulb from Webgui to night_mode you cant change the bulb to color, brightness, etc. You must turn it off and on again to use the other options.

@sidoh
Copy link
Owner

sidoh commented May 26, 2019

Yeah, I think I'd say that's expected. This is how the bulbs actually work: they have to be turned either on or off before you can change any other properties.

@sidoh sidoh mentioned this issue May 27, 2019
@sidoh sidoh closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants