Danielhiversen / flux_led

A utility for controlling Flux WiFi Smart LED Light Bulbs
GNU Lesser General Public License v3.0
157 stars 144 forks source link

Report RGBCW and RGBWW values, fix reversal in color temp to white values #117

Closed bdraco closed 2 years ago

bdraco commented 2 years ago

Fixes cold and warm being reversed in color_temp_to_white_levels and in setWhiteTemperature. They were working because both of them were reversed

Home Assistant considers RGBWW to be RED, GREEN, BLUE, COLD, WARM

flux_led considers RGBWW to be RED, GREEN, BLUE, WARM, COLD

We now have a .rgbcw property to avoid the issue

bdraco commented 2 years ago

It's definitely showing reversed in home assistant but I may have been too aggressive in refactoring this

Too tired to make sense of it now

Will work on this once the other stuff merges and the diff set is more reasonable

This one needs another set of eyes

bdraco commented 2 years ago

I'll get some more dumps from the magichome app when the warm white is turned up and the cold white is turned up

Tomorrow