From f0b5614a4ac432375448e53181f1d320061b65ff Mon Sep 17 00:00:00 2001 From: moi Date: Mon, 14 Jan 2019 03:38:41 +0100 Subject: [PATCH 1/2] 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()) { From a7c60f36e054577995c47b0dc38dd4b407f6fe79 Mon Sep 17 00:00:00 2001 From: moi Date: Mon, 14 Jan 2019 03:49:20 +0100 Subject: [PATCH 2/2] use spaces instead of tabs --- code/espurna/domoticz.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/domoticz.ino b/code/espurna/domoticz.ino index ae59ce2d..eb923ace 100644 --- a/code/espurna/domoticz.ino +++ b/code/espurna/domoticz.ino @@ -70,7 +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 + && domoticzIdx(0) == idx ) { #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE if (lightHasColor()) {