Page 1 of 1

Dummy RGB Switch

Posted: Tuesday 14 November 2017 19:48
by Coort
Hello,

I have been trying to configure an functioning Arduino with RGB Ledstrip (Has worked with OpenHAB) with the domoticz Dummy RGB switch. I have succesfully setup an:

MQTT broker (Mosquitto);
MQTT connection (MQTT Client Gateway with LAN interface);
Dummy RGB switch.

When operating the RGB switch it sends out the following message over MQTT:

{
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "Lighting Limitless/Applamp",
"id" : "00082006",
"idx" : 6,
"name" : "LED_Wand",
"nvalue" : 15,
"stype" : "RGB",
"svalue1" : "72",
"switchType" : "Dimmer",
"unit" : 1
}

The two value's i need are nvalue and svalue1 i guess? This are only two value's and i was aspecting three value's or an HEX for the RGB.

Another problem i came across is that Domoticz sends 2 MQTT messages after changing the value once. That wouldn't be a big problem if those value's are the same, but they are different:

{
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "Lighting Limitless/Applamp",
"id" : "00082006",
"idx" : 6,
"name" : "LED_Wand",
"nvalue" : 10,
"stype" : "RGB",
"svalue1" : "193",
"switchType" : "Dimmer",
"unit" : 1
}

{
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "Lighting Limitless/Applamp",
"id" : "00082006",
"idx" : 6,
"name" : "LED_Wand",
"nvalue" : 15,
"stype" : "RGB",
"svalue1" : "72",
"switchType" : "Dimmer",
"unit" : 1
}

I'm really hoping you guy's can help me and push me in the right direction!

Thanks in advance!

Re: Dummy RGB Switch

Posted: Saturday 10 February 2018 22:12
by lagus
Hi, did you get an answer to this issue?

I also want to do the same thing and link that into node-red, convert what ever values Domoticz is sending to RBG for http requests to an ESPeasy ledstrip.

Please keep us updated!