Skip to content
Snippets Groups Projects
Commit cc4f49d4 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Comments

parent 1f57e71b
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,8 @@ func (dev *Lamp) update(payload map[string]interface{}) {
// color_temp
if dev.getMode() == "white" {
// color_temp change when we are in color mode (looks like a z2m bug)
// so we have to only update when we are in white mode. Without this check
// the color_temp is wrong when you change the mode w/ setMode
color_temp, exists := payload["color_temp"].(float64)
if exists {
// Mired = 1,000,000 / Temperature in Kelvin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment