Browse Source

ONLY processes Domoticz RGB MQTT Messages for the current idx

sensors
moi 5 years ago
parent
commit
f0b5614a4a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/domoticz.ino

+ 1
- 0
code/espurna/domoticz.ino View File

@ -70,6 +70,7 @@ void _domoticzMqtt(unsigned int type, const char * topic, const char * payload)
String stype = root["stype"]; String stype = root["stype"];
if ( if (
(stype.equals("RGB") || stype.equals("RGBW") || stype.equals("RGBWW")) (stype.equals("RGB") || stype.equals("RGBW") || stype.equals("RGBWW"))
&& domoticzIdx(0) == idx
) { ) {
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
if (lightHasColor()) { if (lightHasColor()) {


Loading…
Cancel
Save