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

No White Spectrum #11

Closed
frankyboy1973 opened this issue Jan 28, 2019 · 26 comments
Closed

No White Spectrum #11

frankyboy1973 opened this issue Jan 28, 2019 · 26 comments

Comments

@frankyboy1973
Copy link

frankyboy1973 commented Jan 28, 2019

Since 0.1.6 no White Spectrum avalible and Color goes always back to Peppermint Creme
Hue Output is alway 0

@datech
Copy link
Owner

datech commented Jan 28, 2019

Hello,

Is there any debug messages on the Node-Red console?

@wongnam
Copy link

wongnam commented Jan 29, 2019

@frankyboy1973 Are you talking about Color Capabilities in Alexa? Including Color Temperature?
What kind of you Echo device? Echo, Echo Dot 1, Echo Dot 2, Echo Dot 3, Echo Plus.. this is important.
@datech If you have free time should create a template for every one want to report issue to select or answer and provide enough information at one time so that we can easy to imaging the issue and no need to ask one by one again.

@frankyboy1973
Copy link
Author

@datech No, there is no Debug Message in Node Red or in Ioroker Log.
@wongnam Sorry, i am from Germany and my Engish is not very good.
In the Alexa App under Version 0.1.4 it was possible to choose Color Temperature like Warm, Warmwhite, Cold, Coldwhite, now, in the new Version i can only chosse Colors. But when i give a speak Command to Alexa, to turn Light Warm or White or Cold it works, the CT Out changes.
When i choose a Color in the App or per Speak Command nothing happens, the Hue Output is alsways 0. In the App the Color goes always back to Pefferminz Creme. In Version 0.1.4 it was working, but not in the 0.1.6.
It was not possible to update from 0.1.4 to 0.1.6. Error, not installed. I deinstalled it and then I installed it new.
I have Echo Dot 2, Echo 2, Echo Plus, Echo Spot, Echo Show 2.

@datech
Copy link
Owner

datech commented Jan 29, 2019

@frankyboy1973 Versions 0.1.5 and 0.1.6 just enabled the support for older Echo devices.

May I ask you to set the Node-Red logging to debug and check the console again.
https://nodered.org/docs/user-guide/logging

Also, can you test the following:

  1. Delete all devices using the Alexa app
  2. Turn off all Echo devices except Echo 2
  3. Start the discovery procedure again
  4. Test the color capabilities

@wongnam Thanks. It is in my plan to create an issue template

@wongnam
Copy link

wongnam commented Jan 29, 2019

I've just deleted my comment. Sorry to ignore my words.

@frankyboy1973
Copy link
Author

Sorry, but i dont know how i can edit/open the settings.js, i am not a pro on linux. I have found it in the Node Red Folder, but dont know how to open it.
Yes i can delete the diveses and try it with only Echo 2 online.

@frankyboy1973
Copy link
Author

frankyboy1973 commented Jan 29, 2019

Ok, when i discover the diveces only with Echo 2 online, the color Temperature is avalible in the App and the Colors capabilities is ok, the Hue Output changes, and the choosen Color is shown in the App. so i can say, the Funktion of the Node is OK. When i search with only Dot 2 online, the Color Temperature is not avalible in the App and the Color does not change.
Perhaps you can help me by another Problem, i am using Ikea Trafri and i want to convert the Hue Output to Rgb or Hex, any Idear how i can do this. The Bri and Ct output is no Problem, i have already done that.

@datech
Copy link
Owner

datech commented Jan 29, 2019

@frankyboy1973 Are you using the latest software version for Echo Dot 2nd gen?
https://www.amazon.com/gp/help/customer/display.html?nodeId=201602210

Would it be possible to update to latest version if you haven't already done so?

About hue & saturation conversion:
You can check the hslToRgb function in this example: https://gist.github.com/mjackson/5311256

@wongnam
Copy link

wongnam commented Jan 30, 2019

Tip: You can ask Alexa to install the latest software update by saying, "Check for software updates."

@frankyboy1973
Copy link
Author

Yes, i am using the latest Software Version for Echo Dot Gen.2 (628568520)

@frankyboy1973
Copy link
Author

frankyboy1973 commented Jan 31, 2019

Now the Hue Output is always 43690, i tought the Hue must be between 0 and 360.
And after one day the Color Temperature is no longer avalible and the chosen Color goes always back to Peppermint Creme. The discovery with only Echo 2 online works not for long when the other Echos online. I dont start the dicovery with the other Echos online.

@wongnam
Copy link

wongnam commented Feb 1, 2019

Yep, I also ecounter this situation dueto multiple Echo with differrent generation in a same network.

I don't know which Echo will discover which Node :( , so i am in passive for this case.

@datech
Copy link
Owner

datech commented Feb 2, 2019

Just released v0.1.7 with updated model of simulated light. It wasn't tested on Dot 2nd gen and I'm not sure that it will fix the support of color settings.

@frankyboy1973
Saturation of the light (min 0, max 254)
Hue of the light (min 0, max 65535)

@wongnam
Copy link

wongnam commented Feb 2, 2019

@datech Echo Dot 2nd generation can found "color capabilities" in Aleaxa app but it is unusable due to it's not send value to the node output, it also no "color temperature" capabilities.

image

@frankyboy1973
Copy link
Author

frankyboy1973 commented Feb 2, 2019

The same here, Echo Dot 2 can found color capabilities, but Hue Output is always 0. There is no color temperatur avalible in the App, but i can change the color temperature with speak command.
@datech Thanks for the info about Hue and Saturation Range

@datech
Copy link
Owner

datech commented Feb 2, 2019

@frankyboy1973 , @wongnam Have you tried with a new device added to the flow?

@frankyboy1973
Copy link
Author

Hi, i deletet all devices in Alexa and all Nodes in Node Red and tried it with new Nodes.

@wongnam
Copy link

wongnam commented Feb 2, 2019

@datech I have just added a new device to the flow, the issue still persist.

@datech
Copy link
Owner

datech commented Feb 3, 2019

v0.1.8 was released. Color capabilities has to be working now.

Could you try again with a new node added to the flow?

I haven't done any fixes about color temperature capabilities, so I expect that they might be working with voice commands and still can be missing from the app. More important to me is how the current release is working with multiple types and generations of Echo devices.

@frankyboy1973
Copy link
Author

frankyboy1973 commented Feb 3, 2019

Hi, the Color capabilities works.
With Echo Dot2 i can change the Color in the App and with voice commands and the Hue and the RGB Output works fine. In the App the chosen Color is only shown for a few seconds, then it shows the Color Peppermint, but thats not a Problem for me. The Output value stays on the chosen Color.
With Echo2 it works to, additionally i can chose Color Temperature in the App, and the chosen Color is shown in the App.
When both Echos are online, its the same as only Echo Dot2 is online.
amazonalexa1
First is blue, second is green.

Thanks for the RGB Output

@datech
Copy link
Owner

datech commented Feb 3, 2019

Thanks for checking this out.

I think that color is returned back to peppermint, because Echo Dot 2nd gen is ignoring or doesn't understand sat/hue color settings. I will add "xy" color in the API response in the next version, so it might fix this issue.

@frankyboy1973
Copy link
Author

frankyboy1973 commented Feb 3, 2019

Another problem for me, is that the brightness of the devices nodes goes to 100%, after Node Red restart. When i say Alexa to turn light on, all Lights are on full brightness.
The Color and the Color Temperature goes back to standart after restart, Hue = 0, CT = 199

@datech
Copy link
Owner

datech commented Feb 4, 2019

You have to configure the context to localfilesystem.
I've added more info in Troubleshooting page

@frankyboy1973
Copy link
Author

In the settings.js the context is configured to localfilesystem. Is it perhaps a problem that i run Node Red as an Iobroker Instance? Or i am at the wrong seetings.js? I have found it in /opt/iobroker/node_modules/node-red. Sorry, i am not a pro in these things.

@datech
Copy link
Owner

datech commented Feb 5, 2019

You should have a similar log message in your Node-RED console:

5 Feb 06:16:58 - [info] Settings file  : /home/vagrant/.node-red/settings.js

In my case settings.js is located under /home/vagrant/.node-red directory

Here is how it is configured on my setup:

    // Context Storage
    // The following property can be used to enable context storage. The configuration
    // provided here will enable file-based context that flushes to disk every 30 seconds.
    // Refer to the documentation for further options: https://nodered.org/docs/api/context/
    //
    contextStorage: {
        default: {
            module:"localfilesystem"
        },
    },

@datech
Copy link
Owner

datech commented Feb 5, 2019

Feature request about support of XY colors was created #16

@datech datech closed this as completed Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants