etsach / espmilighthub-domoticz

Domoticz Plugin for controlling the ESP Milight Hib
MIT License
9 stars 4 forks source link

RGB-CCT white mode (Cold/Warm White) does not stick #14

Open hakmes opened 4 years ago

hakmes commented 4 years ago

I am using this plugin with a RGB-CCT LED strip. I've set the controller to RGB-CCT and using it with the ESP web interface everything functions as expected.

With this plugin I have the issue that when I switch to Cold White mode trough the domoticz interface. It switches to cold white for a second and then returns back to Warm White.

This is in my log.


Switching to cold white:

2020-06-04 09:06:13.986 Status: setcolbrightnessvalue: ID: 249, bri: 54, color: '{m: 2, RGB: 000000, CWWW: ff00, CT: 0}'
2020-06-04 09:06:14.018 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: Command: 'Set Color', Level: 54, Color:{"b":0,"cw":255,"g":0,"m":2,"r":0,"t":0,"ww":0}
2020-06-04 09:06:14.322 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'state': 'ON'}
2020-06-04 09:06:14.568 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'color_temp': 153}
2020-06-04 09:06:14.793 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'brightness': 138}
2020-06-04 09:06:15.018 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'color_temp': 153} 

Switching to warm white:
2020-06-04 09:06:49.971 Status: setcolbrightnessvalue: ID: 249, bri: 54, color: '{m: 2, RGB: 000000, CWWW: 00ff, CT: 255}'
2020-06-04 09:06:50.011 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: Command: 'Set Color', Level: 54, Color:{"b":0,"cw":0,"g":0,"m":2,"r":0,"t":255,"ww":255}
2020-06-04 09:06:50.364 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'state': 'ON'}
2020-06-04 09:06:50.578 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'color_temp': 370}
2020-06-04 09:06:50.855 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'brightness': 138}
2020-06-04 09:06:51.079 (ESP Milight Hub) 001/ESP Milight Hub - 0x12B9/rgb_cct/1: State change: '{'color_temp': 153} 

It seem to revert to color_temp 153.

hakmes commented 1 year ago

This fixed it: https://github.com/etsach/espmilighthub-domoticz/pull/15 Pulled line 352 in the code and it works! tnx depuytnl