Skip to content

Alexa App not working on Arduino core 2.4.0 #10

Closed

Description

@d-works42

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

Activity

  1. Aircoookie commented on Apr 9, 2018

    @Aircoookie
    Member

    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: Aircoookie/Espalexa#6 (comment)
    Let me know if this solves the problem for you!

  2. d-works42 commented on Apr 9, 2018

    @d-works42
    Author

    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?

  3. Aircoookie commented on Apr 9, 2018

    @Aircoookie
    Member

    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.

  4. changed the title [-]Alexa App not working[/-] [+]Alexa App not working on Arduino core 2.4.0[/+] on Apr 9, 2018
  5. nbietz commented on Jun 26, 2018

    @nbietz

    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.

  6. Aircoookie commented on Jun 27, 2018

    @Aircoookie
    Member

    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 hue to 20 percent", where you just roughly need to know, which hue on the 0-100 scale your color is.

  7. Juanko984 commented on Jul 5, 2018

    @Juanko984

    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.

  8. Aircoookie commented on Jul 5, 2018

    @Aircoookie
    Member

    @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.

  9. added a commit that references this issue on May 4, 2020
  10. added a commit that references this issue on May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions