Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lovicub opened this issue Sep 16, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@lovicub
Copy link

lovicub commented Sep 16, 2019

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 lovicub added the bug Something isn't working label Sep 16, 2019
@mabunixda
Copy link
Owner

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

@mabunixda
Copy link
Owner

ok could reproduce this bug today

@mabunixda
Copy link
Owner

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

@atika
Copy link

atika commented Apr 7, 2021

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.

@mabunixda
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants