p.kaczmarek2 wrote:
This update should save bl602 raw channel states in flash
https://github.com/openshwprojects/OpenBK7231...mmit/69e2ac21c4c9ff69f2850d8f1713eaa94cba0787
this is not yet implemented for new led driver, if you want to save "led_basecolor" in flash then you will have to wait
OK, I will test it.
p.kaczmarek2 wrote:droege wrote:
What I see is, that you are NOT reporting RGB as Color in any way, when changing only the dimmer value.
Same goes the other way around: if changing the RGB via color you report only RGB but not a change in dimmer, but this is maybe also changed due to differences in RGB settings.
This is what I assumed, I only broadcast changed values. Do you think that a change in dimmer should also broadcast RGB?
My assumption is:
1. home assistant sends rgb
2. home assistants sends dimmer
3. on my side, i do rgb * dimmer and set PWMs
but I am starting to think that it might not be a correct approach
Well, other systems also send dimmer/rgb seperately. BUT: in the FHEM system, for instance, the icon is calculated based on RGB/color-feedback, and also controls (color-scale) is updated, when color-feedback is received. And this doesn not happen at the moment, when changing only the dimmer. BTW: tasmota also updates color-feedback when only the dimmer is changed.
The internal processing (step 3) I think is perfectly fine. "Just" broadcast beside the changed value also the final RGB.
p.kaczmarek2 wrote:droege wrote:
BTW, another question:
I've noticed, that you ar not reporting anymore via 'device/channel/get'. Is this by intention? Or is only the "old" led_driver doing this?
Clever one! yes, i disabled it because otherwise RGBCW bulb was doing about 8 publishes and was crashing MQTT with overflow. It is only disabled when channels are changed by LED driver.
Ok, understood. I will test it.
But this means, that at startup these things are reported in anyway instead of color/dimmer, etc., right?
Thanks,
best.
Added after 28 [minutes]:
droege wrote:p.kaczmarek2 wrote:
This update should save bl602 raw channel states in flash
https://github.com/openshwprojects/OpenBK7231...mmit/69e2ac21c4c9ff69f2850d8f1713eaa94cba0787
this is not yet implemented for new led driver, if you want to save "led_basecolor" in flash then you will have to wait
OK, I will test it.
Tested it; I have set the startup-config to -1 (store the last value);
Tested it first with sliders on the web-interface; works.
NOW: it's better, than expected, because:
even using the new led_driver it stores the values in flash. This is either because you change the channels in anyway,
or because I use a backlog to set color: backlog led_basecolor_rgb #COLOR.0000 ; led_enableAll 1
Maybe the led_enableAll stores it in flash, or just the change of channels with the led_basecolor_rgb.
For me: IT WORKS, even with the new led_driver
Side-effect:
on restart/startup the device reports device/channel/get, which will report the flash-stored color. But only at startup.
That's fine for me, as my FHEM systems remebers the last color set/reported when the device was on.
It's just "funny" to see, that "normally" the channels are not reported (only Color for the new driver), but at startup they are.
But this does not cause any harm for me

Looks good.
Thanks,
best.