node-red-contrib-alexa-home icon indicating copy to clipboard operation
node-red-contrib-alexa-home copied to clipboard

payload.xy Color XY object is missing in msg.payload & Device unresponsive when color used

Open lovicub opened this issue 6 years ago • 5 comments

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"?

lovicub avatar Sep 16 '19 21:09 lovicub

sent anyway -> the output in the node is generated and sent to linked nodes?

mabunixda avatar Sep 23 '19 12:09 mabunixda

ok could reproduce this bug today

mabunixda avatar Sep 24 '19 13:09 mabunixda

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

mabunixda avatar Oct 01 '19 11:10 mabunixda

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.

atika avatar Apr 07 '21 15:04 atika

Thanks for the input! I gonna review this code segments in the next days and hopefully fix this !

mabunixda avatar Apr 08 '21 14:04 mabunixda