-
Notifications
You must be signed in to change notification settings - Fork 137
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
Color support not working with Echo Dot 2 #28
Comments
Hi, thanks for the feedback! Did you attempt deleting the device in the Alexa app and re-discovering it? It might be that Alexa still recognizes it as a dimming-only device, especially if you had an Espalexa device with the same name and/or on the same ESP before the update. RGB 237, 255, 239 may be the result of the conversion formula for Hue = 0 and Saturation = 0. The library uses Hue + Saturation and Color Temperature internally. If you create the device yourself |
Hey there...
I assume some of the UDP connections are from my router or other devices in my network. |
Thank you for the testing! If you don't get any API calls like {"hue":20000,"sat":254}, that means Alexa is not even trying to set the color, so she must believe that it is a dimmable-only device somehow. Just for the record, which Alexa model do you have? I used an Echo 2 for testing this feature (there have been implementation differences between Echo and Echo Dot models before) There is a debug method Thanks again for helping me find out why this isn't working yet! :) |
Also, you could try if setting for example |
Totally forgot, if you go to
|
Well, it's in both our interests to get the library running (assuming it is in fact the libraries fault). So thanks for writing the library and trying to help me figure it out.
I'm using an Echo Dot 2, I would assume the problem is either, that Alexa for some reason doesn't consider the device a color device and therefore doesn't try to send color data or that my Echo Dot for some reason doesn't support color devices yet. It's about 1.5 years old, so maybe it needs a software update? I don't know, do you need to update Alexa manually? Apart from that, I've been trying to figure out the ESPAsyncWebServer problem, with no success so far. I couldn't find any way so far to get the library to return the raw request data without modifying it. It's kinda annoying since it's such a trivial problem. I'm not 100 %, that is in fact the problem, but given that Alexa finds the device and the ESP reacts to state changes, but it doesn't get any body data and therefore doesn't change the state. But I guess we should talk about that in the corresponding issue, as not to confuse people... |
Ok, your JSON object and method return values both seem valid. I just tried deleting the device and then discovering it with my Echo Dot 2 (fortunately i have both) and it worked without problems, full color support. I'll try again with the big Echo unplugged to verify though. I just pushed 2.2.1, because sporadically the discovery process would fail for me, so I updated the response to mimic the actual hue bridge behavior a tiny bit more closely. I don't believe that is related to this issue, though. You could try to delete and discover the device in the Alexa app itself (select discover hue light). After it has been discovered successfully, go to its control page in the app and select the cog icon. I'm curious to see if it actually reports "Color Capabilities: None", which would be really weird. For the record, my About section says:
About ESPAsyncWebServer, you are right, I will respond to you in that issue. |
About the software, Echo devices always update automatically, there isn't even an option for manually updating them. However, you can see the installed version in the app if you go to Devices -> Echo & Alexa -> [Echo Name] ->About (scroll way down). The version of my Echo Dot 2 is apparently |
Alright, I did some more testing. First of all, don't bother with v2.2.1. It seems to make discovery issues even worse than with 2.2.0. So, I unplugged the big Echos and just let the Echo Dot discover - which it did, and I could reproduce the issue! I'm getting
and, after plugging the Echo 2 back in, even it reports "Lampe unterstützt das nicht" until I re-discover it. So, it seems like the color support doesn't work with the current Dot 2 firmware. We just need to hope that Amazon adds the capability soon... |
Hey, thanks for all your troubleshooting... Wow, that's interesting. So apparently when there's at least one newer Echo in the network it works huh? Well that's fine, I guess they'll probably roll out updates for the Echo Dot 2 eventually. I also don't really need color support right now. Most important to me is the brightness control, so your library is still very useful for me! |
Thank you! Have fun with the library and let's hope we can get the async server working soon! |
Thanks... :-) |
Hey, I just wondered. Did you also try disconnecting the other Echos and running the original hue bridge only on the Echo Dot 2 to see if it also doesn't support color then (assuming you have original phillips lights with color support)? That way we could confirm it's not the library that for some reason only works on certain Echos but it's in fact the Echo Dot 2 that doesn't support it (yet). |
Hey, no I did not try that recently, because it would delete all my custom hue group names. However, when I first got Hue color lights a year ago I tried it with the following results:
So, at that time, no, color support wasn't working with the official device via the local API. I assume they now changed this (at least for the big Echo) and that's why it is also working in Espalexa now, however I can't verify that easily, sorry. |
Ok, so I've been reading a bit online. And it seems as though some people do have color support with Echo Dot 2. However, I assume probably not over the local API which Espalexa uses and apparently some people also have been having trouble with the colors sometimes working and sometimes not. |
I can reproduce the behavior on my Echo Dot 1 (Germany), so it's not an 2 specific issue.
for me. Weird. I do not have the Hue skill activated though, as I do not have an account for that. Is that needed? |
As of firmware version |
Oh hey thanks, I hadn't tried using color in a while. But you're right my Echo Dot 2 (Germany, running firmware version 635560020) also supports color over the local API now. Too bad they didn't fix the content type error yet (I wonder if they even realize it's there...?). But you know, the current workaround isn't super complicated and it works, so I guess it's something one can live with. One could potentially add a |
P.S. After playing around with colors a little, I found that color temperature still doesn't work. I didn't investigate this, but I suspect the Echo Dot 2 while supporting color now, still doesn't support color temperature. |
Yes, that is correct, color temparature is not supported on Dots. |
Yeah, that's what I thought too (about the workaround), it wouldn't make any noticeable difference but would make the library more complicated to use and confusing for people who are just getting started with Arduino/programming. |
Yeah, I agree, there are many occasions where color temperature is really useful! |
I did the ssdp implementation in micropython and I can set the color and the white-value. I want to share my observations: and 4.) I don't test it, but I would expect if x and y keys are used set state.colormode = 'xy' |
Hey there, so I tested the new color support. Unfortunately it's not quite working for me, I didn't try too long, so it may be my fault. When I upload the EspalexaColor example sketch and try to change the color Alexa states my device doesn't support that. I first assumed, since I live in Germany, maybe Alexa in German doesn't support Color yet, according to the Internet however, I believe it should be supported. Besides Alexa says my device doesn't support it, not that she doesn't support it.
I confirmed that I'm in fact using the new library and I do get a color value over the serial Port, RGB: 237, 255, 239 which I considered a somewhat odd default color. Anyway, any thoughts on what might be the cause or what I could try?
The text was updated successfully, but these errors were encountered: