From 43ca3cc73a4d926122f3355cbe4b2deec4418346 Mon Sep 17 00:00:00 2001 From: Paul C Diem Date: Wed, 25 Nov 2020 16:17:18 -0600 Subject: [PATCH] Check SO88 to use separate DGR --- tasmota/xdrv_04_light.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 4af6867f1..298281822 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -1355,7 +1355,10 @@ void LightInit(void) } LightCalcPWMRange(); #ifdef USE_DEVICE_GROUPS - Light.device_group_index = Light.device - 1; + Light.device_group_index = 0; + if (Settings.flag4.multiple_device_groups) { // SetOption88 - Enable relays in separate device groups + Light.device_group_index = Light.device - 1; + } #endif // USE_DEVICE_GROUPS #ifdef DEBUG_LIGHT AddLog_P(LOG_LEVEL_DEBUG_MORE, "LightInit Light.pwm_multi_channels=%d Light.subtype=%d Light.device=%d TasmotaGlobal.devices_present=%d",