From f0b5614a4ac432375448e53181f1d320061b65ff Mon Sep 17 00:00:00 2001 From: moi Date: Mon, 14 Jan 2019 03:38:41 +0100 Subject: [PATCH] ONLY processes Domoticz RGB MQTT Messages for the current idx --- code/espurna/domoticz.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/code/espurna/domoticz.ino b/code/espurna/domoticz.ino index 98f89671..ae59ce2d 100644 --- a/code/espurna/domoticz.ino +++ b/code/espurna/domoticz.ino @@ -70,6 +70,7 @@ void _domoticzMqtt(unsigned int type, const char * topic, const char * payload) String stype = root["stype"]; if ( (stype.equals("RGB") || stype.equals("RGBW") || stype.equals("RGBWW")) + && domoticzIdx(0) == idx ) { #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE if (lightHasColor()) {