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 5 years ago
committed by GitHub
parent
commit
3a3324c857
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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"];
if (
(stype.equals("RGB") || stype.equals("RGBW") || stype.equals("RGBWW"))
&& domoticzIdx(0) == idx
) {
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
if (lightHasColor()) {


Loading…
Cancel
Save