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

Alexa not sending to device? #57

Open
jenniferannegluck opened this issue Sep 20, 2018 · 12 comments
Open

Alexa not sending to device? #57

jenniferannegluck opened this issue Sep 20, 2018 · 12 comments

Comments

@jenniferannegluck
Copy link

I had everything working -- for a couple hours --

Alexa found the switches/devices. (I had three "Door", "Open Close", and "Elevator Up") I told Alexa to turn on/off for the different devices, and she did it. I had put a couple print statements in the code so I could see it working, too. I just left it all on and running.

In a couple hours it wasn't working. Alexa now says "Door isn't responding, Please check it's network connection and power supply" So, I hooked it back up to the computer to watch the Serial output.

It scrolls through a lot of this (took out the IP address and port number)...

Sending response to xx.xx.xx.xx
Port : xxxxx
Response sent !
Got UDP Belkin Request..

And also this...

########## Responding to setup.xml ... ########

Sending :urn:Belkin:device:controllee:1open close Belkin International Inc.Socket3.1415Belkin Plugin Socket 1.0
uuid:Socket-1_0-38323636-4558-4dda-9188-cda0e6b40a51-85221517K01017690urn:Belkin:service:basicevent:1urn:Belkin:serviceId:basicevent1/upnp/control/basicevent1/upnp/event/basicevent1/eventservice.xml

So, I know that it's still connected to the WIFI. But when I give Alexa the command, nothing happens. The WEMO doesn't seem to respond. (It just continues to scroll through the same stuff as above.) I am a newbie, so speak in small words if you happen to know the issue and can help.

@Ynot1
Copy link

Ynot1 commented Sep 20, 2018 via email

@jenniferannegluck
Copy link
Author

Ha! Thank you -- it worked.

I also should have read the earlier threads. I have two WEMO's running. So, I changed the serial number and the 01-NLS as suggested by (I guess you in an earlier thread). That didn't work immediately -- but when I rebooted Alexa it started working again. Now we'll see if it continues working. Hopefully I won't have to keep rebooting Alexa, otherwise it will make the application pretty useless.

THanks for the help... do you think it was the reboot or the serial renaming that did it?

@Ynot1
Copy link

Ynot1 commented Sep 20, 2018 via email

@jenniferannegluck
Copy link
Author

Tried again today -- and no go... same issue. Rebooting Alexa didn't work. Fiddling with serial numbers again didn't work.

So, here's my theory. I have 3 alexa's. I think that they remembered the old serial number on the device. I went to the Alexa app on my phone and deleted the devices (not sure how else to delete devices). But, that must not have completely deleted it (when I asked Alexa to turn on the device she still tried even though I had deleted it.) So, I unplugged the other alexa's in the house until when I asked her to turn on the device she said she didn't recognize it.

Reloaded the code with the new serial number etc. onto Alexa. Plugged them in. Now it is seemingly working again.

We'll see if it continues to work or if I get the same issue tomorrow.

@jenniferannegluck
Copy link
Author

It has again failed.

Here is my setup:

  1. Three separate echos in different rooms
  2. WEMOs with one switch (that works just fine).
  3. WEMOs with three switches (that works, then starts not receiving Alexa's callback after a day).

So, the switches all have a different port. (I assigned port 80, 81, 82 to the WEMOs with 3 switches and 83 to the WEMOs with one port.)
The two WEMOs have a different serial number and 01-NLS number. I kept the format of these, but just changed some random numbers in them.

I have no idea what to try next.

@kakopappa
Copy link
Owner

kakopappa commented Sep 22, 2018 via email

@Ynot1
Copy link

Ynot1 commented Sep 22, 2018 via email

@jenniferannegluck
Copy link
Author

I am trying one more thing... I am also changing the uuid. So far, no luck, but I think it might be because the old device hasn't gone away, which leads me to ask...

I am trying to get Alexa to forget this device so that I can re-find it with the correct uuid/serial #/etc... But how do I get her to do that? I tried rebooting, but she still recognizes the devices.

Somehow before I managed to delete and then re-find the devices, but it's not working this time.

@Ynot1
Copy link

Ynot1 commented Sep 24, 2018 via email

@santosh09142
Copy link

santosh09142 commented Sep 24, 2018 via email

@jenniferannegluck
Copy link
Author

Ok, I had no idea what the comment Sinric was. Now I understand it is some kind of alexa skill to use the WEMOs with. Can you @kakopappa give a brief explanation of how to switch to using that?

Would I use this code in conjunction with that? Or would I completely replace this code with using sinric?

@kakopappa
Copy link
Owner

kakopappa commented Sep 26, 2018

@jenniferannegluck

everything you need to know is in the home page
https://sinric.com/

it will take less than 5 mins to get all working again

  1. Create a sinric account and login

  2. Create a smart home device. eg: switch

  3. Copy the api key

  4. https://github.com/kakopappa/sinric/blob/master/arduino_examples/switch_example.ino

replace the api key, wifi name, password

  1. flash

  2. Install the skill and link.

ask alexa to discover devices.

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

4 participants