i noticed that MQTT sends the hue light status as format
Code: Select all
{
"Battery" : 255,
"Color" : {
"b" : 58,
"cw" : 0,
"g" : 175,
"m" : 3,
"r" : 254,
"t" : 0,
"ww" : 0
},
"Level" : 40,
"RSSI" : 12,
"description" : "",
"dtype" : "Color Switch",
"id" : "00000005",
"idx" : 15,
"name" : "LampachterTV",
"nvalue" : 1,
"stype" : "RGBWW",
"svalue1" : "40",
"switchType" : "Dimmer",
"unit" : 1
}
Code: Select all
{"command": "setcolbrightnessvalue", "idx": 2450, "hue": 274, "brightness": 40, "iswhite": false }
{"command": "setcolbrightnessvalue", "idx": 2450, "hex": "RRGGBB", "brightness": 100, "iswhite": false }
{"command": "setcolbrightnessvalue", "idx": 2450, "color": {"m":3,"t":0,"r":0,"g":0,"b":50,"cw":0,"ww":0}, "brightness": 40}
is there a way to change the mqtt output format to let's say hue so that instead of sending the m,t,r,g,b,cw and cw it sends out the hue and brightness status
so basically something like this
Code: Select all
{
"Battery" : 255,
"hue" : 274,
"Level" : 40,
"RSSI" : 12,
"description" : "",
"dtype" : "Color Switch",
"id" : "00000005",
"idx" : 15,
"name" : "LampachterTV",
"nvalue" : 1,
"stype" : "RGBWW",
"svalue1" : "40",
"switchType" : "Dimmer",
"unit" : 1
}