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

Respond to Alexa #36

Closed
JonasFocke01 opened this issue Jun 17, 2019 · 2 comments
Closed

Respond to Alexa #36

JonasFocke01 opened this issue Jun 17, 2019 · 2 comments

Comments

@JonasFocke01
Copy link

Hi,

I have setted everything up, so that i can controll the pin, and it words perfectly fine.
The issue i have is: everytime i tell alexa to turn a GPIO on or off, she does it fine, but after that she tells me every time, that the device is not online. Do alexa need a response from the pi to stop saying this? What do i have to do to send this response? what else can i do?

sry for bad englisch

@OlkeA
Copy link

OlkeA commented Oct 10, 2019

Hi,

I ran into the same issue with Alexa.
While I was waiting for Python 3 to build on my Raspi for using the latest fauxmo branch (n8henrie/faufmo) I came up with a quite simple "copy/paste hack" of the fauxmo.py in this repository (see attached file fauxmo_state.py.txt).

The current implementation does not respond to the Status request from Alexa. Apparently the response to it became mandatory with some update weeks ago.

So, I copied and modified the SetBinaryState code to handle the GetBinaryState request, copied the GetBinaryStateResponse body from mattenoble and decided that an action_handler must now also implement a status-method (return True = "ON" or False = "OFF") and done.

Not so pretty but maybe it helps somebody and Alexa is satisfied again.

EDIT: Just saw it too late. There is already a pull request addressing the issue: link

@rgrokett
Copy link

Just a thank you for this. Solved my misbehaving Alexa/Fauxmo setup. I had been seeing intermittent operation with "device unavailable" in the Alexa app and the Echo saying it was not responding. in just the past week or two. Applying your GetBinaryState patch worked!

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