@schnipsel71 Häng mal hinter Spots ein Debug-Node mit der Konfig komplettes Nachrichtenobjekt. Dann Alexa bitten, die Helligkeit auf 33 Prozent zu setzen. Die Ausgabe des Debug-Nodes hier posten.
Beispiel: Wenn ich sage, Alexa, Gartenlicht 30 Prozent, kommt Folgendes raus:
[image: 1761901683637-fb545bab-a095-455b-b86f-ad9759d6bdcb-image.png]
Meine Rückmeldung an Alexa sieht so aus:
[image: 1761901883296-bfd627c6-ff85-46e1-9475-0786afab94b2-image.png]
Spoiler
var nodeid = "idDesNodesGartenLicht";
var obj = JSON.parse(msg.payload);
var ison=obj.on;
var proz=obj.percentage;
var hex=obj.rgb;
var hell=parseInt(obj.bri*255/100);
var color = [];
color[0] = parseInt (hex.substring (0, 2), 16);
color[1] = parseInt (hex.substring (2, 4), 16);
color[2] = parseInt (hex.substring (4, 6), 16);
var newMsg={
payload: ''
}
newMsg.payload= {
nodeid: nodeid,
on: ison,
bri: hell,
rgb: color
}
node.status({text:"on: "+ison+", proz:"+proz});
return newMsg;