andrei-tatar / node-red-contrib-nora

Node Red Google Home integration
74 stars 25 forks source link

Hue, Saturation, Value values not showing properly when I send a payload. #68

Open xury77 opened 4 years ago

xury77 commented 4 years ago

Hi Andrei. I have a problem with nora-light node. When I change the color using Google Home it's all OK all values are displayed correctly, but when I sending payload to the node as described in node info: eq {"on":true,"brightness":36,"color":{"spectrumHsv":{"hue":36.70588235294117,"saturation":0.33333333333333337,"value":1}}} Then hue and saturation are always 0.00, value always is 100%. Brightness always is OK. I'm sure it used to be OK. Unfortunately, I don't remember which version these problems started with. This problem is only with displayed values under the node Sometimes I had another issue, but not so important. When I send a payload with other properties not used by nora-light node. It showing error in debug window something as "Invalid property msg.payload.idx wit t value 183", but simply delete these properties before sending resolving this problem.

labodj commented 4 years ago

I'm experiencing this bug too, anyway I've noticed that the spectrumHsv has been deprecated, we should use this instead: https://developers.google.com/assistant/smarthome/traits/colorsetting

geoffreydemaagd commented 4 years ago

Can we do it ourself or do we need the help of Andrei?

When trying to push the colorModel Example msg.payload = { on: true, brightness: 20, colorModel: 'rgb', color: { spectrumRgb:16711935 } }

I get "Error: Invalid property msg.payload.colorModel with value rgb"

Is this correct? I must say the Google examples aren't that great.

Many thanks!

labodj commented 4 years ago

I think that the node must be updated to use the new color API