Skip to content

Commit 5d50622

Browse files
committed
Fix DALI RGBW and RGBCCT SO37 support
1 parent 47195c2 commit 5d50622

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasmota/tasmota_xdrv_driver/xdrv_75_dali.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,11 @@ bool DaliInit(uint32_t function) {
974974
Dali->target_rgbwaf = DaliQueryRGBWAF(DaliTarget2Address(Dali->Settings.target));
975975
if (Dali->target_rgbwaf > 1) {
976976
TasmotaGlobal.light_type = Dali->Settings.light_type;
977+
if (!Settings->flag3.pwm_multi_channels && // SetOption68 0 - Enable multi-channels PWM instead of Color PWM
978+
(TasmotaGlobal.light_type >= LT_RGBW) && // RGBW or RGBCW
979+
(Settings->param[P_RGB_REMAP] & 128)) { // SetOption37 128
980+
UpdateDevicesPresent(1); // We manage RGB and W separately, hence adding a device
981+
}
977982
}
978983
#endif // DALI_LIGHT_COLOR_SUPPORT
979984

0 commit comments

Comments
 (0)