Browse Source
Merge pull request #1489 from soif/fix_domoticz_rgb_idx
ONLY processes Domoticz RGB MQTT Messages for the current idx
sensors
Xose Pérez
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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()) { |
|
|
|