Alexa App not working on Arduino core 2.4.0
Hi, I can succesfully use the webinterface to controll an LED strip and it is found in the Alexa app without any issues. The on/off status and brightness changes in the webinterface also gets updated in the Alexa App. But performing actions like switching off or adjusting the brigness from the app side, doesn´t have any effect. Am I missing something? Thank you, David
Hey, I believe this is an issue I already know that happens when you use the ESP8266 core version 2.4.0 and compile the source yourself. There is a bug in the Alexa protocol which the ESP can't handle properly in that Arduino core version. The "fix" for now is to either use Arduino core 2.3.0 or to apply this workaround: https://github.com/Aircoookie/Espalexa/issues/6#issuecomment-366533897 Let me know if this solves the problem for you!
Thank you, must have missed this. Works perfect now! =) Anyway, what would be the benefit of getting a Hue Hub and use the integration? May I use is for color changes on voice commands than?
I'm glad that it works for you now! I'll keep the issue open for now so it can help others. :)
The hue integration can only work if you have the hue bridge hub and a hue lamp (preferably color). Due to the limitations of their API it is unfortunately impossible to add non-Hue lights to their system. All WLED can do is request the state of a Hue lamp every second or so (you can set this in the settings) and set itself to the same color. This means you can only control the WLED light together with the hue lamp, not separately. In that case, color changes via Alexa work perfectly! (although there is a small bug in the Hue protocol which can cause the color to be slightly different from the actual color for 30 seconds and then adjusting). Also it is the best way to use WLED with a Google home device, the other one being IFTTT, which is quite a hassle to setup and exposes your ESP to the public net. It would also work to borrow a hue color bulb, pair it to the bridge, and then remove it from the setup. You can then still update the "virtual" bulb without it being actually there and use it to control WLED. Overall, in my opinion the hue integration feature is more aimed at those who want to cheaply extend their expensive hue setups using WLED and easily sync them. I don't know if it's worth the hassle for you personally to buy a hue setup just to control WLED colors by voice... Unless you always wanted to try out Philips hue itself (it's quite great!). /rant over =)
P.S.: I'd really love to extend the Alexa integration to support colors, but that is not possible with their current implementation of the local API. The only option which would work is to have a cloud based bridge server, which is both totally beyond my current abilities and to be avoided in an open-source project like WLED.
Would it be possible to add each saved preset as a new "device" discoverable by Alexa. Then it could be possible to use Alexa voice control to switch between saved patterns/presets.
Yes, this is a great idea! I'll add it soon, but it will take a while as there is a lot to do currently! I might even extend that so you could set the color by saying "Alexa, set
I compiled the new code and applied the workaround in Arduino Core 2.4.1. Doesn't seem to work. With every change I still get : Device 1 changed to ON.
@Jakespta thanks for the feedback! I've never tried this workaround with core 2.4.1, just 2.4.0. Did a quick look and in 2.4.1 the line to replace is 192, not 193, but I believe you already figured that out!
Have you tried this with WLED or with Espalexa?
I'll have to install 2.4.1 and see if I can find a new workaround if the 2.4.0 workaround doesn't work anymore.