node-red-contrib-alexa-home
node-red-contrib-alexa-home copied to clipboard
payload.xy Color XY object is missing in msg.payload & Device unresponsive when color used
payload.xy Color XY object is missing in msg.payload.
I've created a device with name "scene". Before update to 1.1.3 i've used it to change colors of some hue bulbs. If i said "scene red" - some bulbs were changed to red. After update to 1.1.3 if i say "scene red" alexa says that device didn't responded - BUT - the information was anyway sent: (debug) payload: object hue: 43690 sat: 254 bri: 254 command: "switch" bri_normalized: 100
so xy that i used is missing - its not working.
- Alexa Devices generation: gen2, gen3
- node red version 0.20.8
- npm version 6.11.3
- is docker used? n
can you reproduce this "error"?
sent anyway -> the output in the node is generated and sent to linked nodes?
ok could reproduce this bug today
still working - items get information and also forward the information but it seems that the response to alexa is not correct because the device gets marked as failed after a color update
I think I also have the same issue, I only have the following values for color: hue, sat, and bri, and hue value is erroneous.
For a green color, the payload is:
{"on":true,"hue":21845,"sat":254,"bri":254,"command":"switch","bri_normalized":100}
The hue value is not in 0-360 range. What I do, it's seems to work, but it's pure hazard :
let hue = msg.payload.hue * 360 / 65536;
let sat = msg.payload.sat * 100 / 254;
But the device (Echo dot 2) and app respond immediately that there is a problem with the device.
Thanks for the input! I gonna review this code segments in the next days and hopefully fix this !