Open parus21 opened 7 years ago
Oh, ok. Did not see anywhere in readme mentioning this.
Thanks for your help Sascha
Good luck!
Best regards Sascha
Am 29.12.2017 um 21:39 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:
Oh, ok. Did not see anywhere in readme mentioning this.
Thanks for your help Sascha
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354497853, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-67ufgUA3q4qoa2Jded6YVNyBgsQks5tFU37gaJpZM4KvPK8.
hi Mortoney, I am also facing the exact same issue with my echo version 2 and esp8266 nodemcu board. Have you been able to solve this.
Have you tried the latest code? I have made some improvements related not being able to find
On Sat, Dec 30, 2017 at 1:54 PM jerrishjacob notifications@github.com wrote:
hi Mortoney, I am also facing the exact same issue with my echo version 2 and esp8266 nodemcu board. Have you been able to solve this.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354531201, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5qoZapIhINtoNyZ1n23RUj1bQ4Htks5tFd47gaJpZM4KvPK8 .
@jerrishjacob I still have this issue where alexa cannot discover my wemos d1-mini device. I also using 2nd generation Echo. Maybe that is the reason, it could expect a different response or something.
@kakopappa Yes, I have tried latest version with >= which improved things, Code now sends back a response to Alexa, but Alexa still does not recognise.
I have not tried a version of the code for multiple devices, I will try to do that later today.
Just tested with multi device version of the code and getting same issue:
Got UDP Belkin Request..
Sending response to 192.168.0.1 Port : 29352 Response sent !
Sending response to 192.168.0.1 Port : 29352 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.0.1 Port : 29352 Response sent !
But Alexa does not recognize device.
Is it because I don't have any legit smart device connected, as Sascha suggested HUE light?
IP address : 192.168.0.1
is this your router ip address or alexa ?
On Sat, Dec 30, 2017 at 5:57 PM, mortoney notifications@github.com wrote:
Just tested with multi device version of the code and getting same issue:
Got UDP Belkin Request..
Sending response to 192.168.0.1 Port : 29352 Response sent !
Sending response to 192.168.0.1 Port : 29352 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.0.1 Port : 29352 Response sent !
But Alexa does not recognize device.
Is it because I don't have any legit smart device connected, as Sascha suggested HUE light?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354540005, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5sbBNzcoukidz4JKpX-oiGwssBYOks5tFhcZgaJpZM4KvPK8 .
192.168.0.1 is router IP address
Amazon ehco ip: 192.168.0.10
Interesting that single device code sent repond to ip: 192.168.0.10 and multi device code sent repond to ip: 192.168.0.1
in both way alexa can't find device
@kakopappa I tried with the updated code. I am getting the following in the serial monitor: 192.168.1.107 is the IP of alexa.
Connecting to WiFi Connecting ........ Connected to Jerrish IP address: 192.168.1.133 Ask Alexa to discover devices
Connecting to UDP Connection successful HTTP Server started .. 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.107, port 50000 Responding to search request ...
Sending response to 192.168.1.107 Port : 50000 Response sent ! 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900 192.168.1.1, port 1900
Hi
When I press the rest switch I get the below output on console:
⸮Hl⸮⸮⸮hl$⸮y2h⸮⸮ Connecting to WiFi Connecting ......... Connected to CiscoD IP address: 192.168.1.41 Begin multicast .. Udp multicast server started at 239.255.255.250:1900 WebServer started on port: 80 WebServer started on port: 81 Adding switches upnp broadcast responder Adding switch : office lights index : 0 Adding switch : kitchen lights index : 1
When I ask alexa to search the device, I get the following lines on the console:
Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.1 Port : 53967 Response sent !
Sending response to 192.168.1.1 Port : 53967 Response sent !
My modem details: DSL-2750U Firmware Version:IN_1.02
Firewall is disabled on the modem, and Echo Plus, Lolin NodeMcu V3, my mobile with alexa app is on the same network.
I have two NodeMCU V3 module and I am getting the same result. Both devices are working as I have tried blink example on it.
I am power the device through laptop usb port. I have not connected any relay or circult to nodemcu to remove the doubt of low power.
I am using the exactly same device as shown in the below url: https://www.amazon.in/Centiot-ESP8266-NodeMCU-Development-Board/dp/B01M98LHT4
Now, every time I ask alexa to discover, it fail to find to find nodemcu. I have also tried the same through alexa app on android (on galaxy C9 pro). But alexa fail to detect the device.
Am I missing any additional step required to let echo plus discover nodemcu?
Use the App and do not ask Alexa. This does not work
Viele Grüße / Best regards Sascha
Am 31.12.2017 um 16:22 schrieb sunilda notifications@github.com<mailto:notifications@github.com>:
Hi
When I press the rest switch I get the below output on console:
⸮Hl⸮⸮⸮hl$⸮�y2h⸮⸮ Connecting to WiFi Connecting ......... Connected to CiscoD IP address: 192.168.1.41 Begin multicast .. Udp multicast server started at 239.255.255.250:1900 WebServer started on port: 80 WebServer started on port: 81 Adding switches upnp broadcast responder Adding switch : office lights index : 0 Adding switch : kitchen lights index : 1
When I ask alexa to search the device, I get the following lines on the console:
Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.6 Port : 50000 Response sent !
Sending response to 192.168.1.6 Port : 50000 Response sent ! Got UDP Belkin Request..
Sending response to 192.168.1.1 Port : 53967 Response sent !
Sending response to 192.168.1.1 Port : 53967 Response sent !
My modem details: DSL-2750U Firmware Version:IN_1.02
Firewall is disabled on the modem, and Echo Plus, Lolin NodeMcu V3, my mobile with alexa app is on the same network.
I have two NodeMCU V3 module and I am getting the same result. Both devices are working as I have tried blink example on it.
I am power the device through laptop usb port. I have not connected any relay or circult to nodemcu to remove the doubt of low power.
I am using the exactly same device as shown in the below url: https://www.amazon.in/Centiot-ESP8266-NodeMCU-Development-Board/dp/B01M98LHT4
Now, every time I ask alexa to discover, it fail to find to find nodemcu. I have also tried the same through alexa app on android (on galaxy C9 pro). But alexa fail to detect the device.
Am I missing any additional step required to let echo plus discover nodemcu?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354609459, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-0RYVJgRQfTgcse6xQpKUJ1wS535ks5tF6aigaJpZM4KvPK8.
Hi Sascha, You said "Use the App and do not ask Alexa. This does not work". So, I have two doubts.
1) There are lot of videos out there on youtube which shows that this works with alexa. Below is the URL of one such video. So how this is working of them.
2) When you say app do you mean alexa app or some other app?
Hi
I mean Alexa App. With Alexa 2nd gen with hue included, additionally at least one real Hue device need to be already connected to Alexa. That is a fact for Alexa 2nd gen . The Hue inside Alexa works slicly different than Hue Bridge.
Best regards Sascha
Am 31.12.2017 um 19:23 schrieb sunilda notifications@github.com<mailto:notifications@github.com>:
Hi Sascha, You said "Use the App and do not ask Alexa. This does not work". So, I have two doubts.
1.
There are lot of videos out there on youtube which shows that this works with alexa. Below is the URL of one such video. So how this is working of them.
1.
When you say app do you mean alexa app or some other app?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354617848, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM--5ZiKtBt9rmLEpG6dsiMKupYOzbks5tF9EKgaJpZM4KvPK8.
Hi Sascha,
Thanks for clarifying. With app also its not working, though I can see the request received from mobile app on console and response send:
Sending response to 192.168.1.6 <<~~~~My mobile IP
Port : 50000
Response sent ! <<~~~~
In Switch.cpp I printed value of response:
Serial.println("Response sent !"); Serial.println(response);
and I got the output given below which states that my app and nodemcu is communicating. Even when I ask alexa, I get the same response with the same IP 192.168.1.6. I am still trying to figure out what is missing in the code.
Sending response to 192.168.1.6 Port : 50000 Response sent ! HTTP/1.1 200 OK CACHE-CONTROL: max-age=86400 DATE: Sat, 26 Nov 2016 04:56:29 GMT EXT: LOCATION: http://192.168.1.41:101/setup.xml OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01 01-NLS: b9200ebb-736d-4b93-bf03-835149d13983 SERVER: Unspecified, UPnP/1.0, Unspecified ST: urn:Belkin:device: USN: uuid:Socket-1_0-38323636-4558-4dda-9188-cda0e670fa2e-101::urn:Belkin:device: X-User-Agent: redsonic
These codes enables esp8266 to simulate a Belkin Wemo switch. But somehow it is not working.
The code reaches void Switch::respondToSearch(IPAddress& senderIP, unsigned int senderPort), but alexa doesn't respond to the response sent by nodemcu, so I believe Alexa is expecting a different response.
Anyone who have something more to say/add?
there is no request generated from alexa for
/setup.xml /upnp/control/basicevent1 /eventservice.xml
:(
Hi All, At this point I can confirm that the problem I am facing is with Echo plus, with Echo Dot, it is working. Can anyone suggest what can be done for Echo Plus?
Hi sunilda, change the string response to:
String response = "HTTP/1.1 200 OK\r\n" "CACHE-CONTROL: max-age=86400\r\n" "DATE: Fri, 15 Apr 2016 04:56:29 GMT\r\n" "EXT:\r\n" "LOCATION: http://" + String(s) + ":80/setup.xml\r\n" "OPT: "http://schemas.upnp.org/upnp/1/0/\"; ns=01\r\n" "01-NLS: b9200ebb-736d-4b93-bf03-835149d13983\r\n" "SERVER: Unspecified, UPnP/1.0, Unspecified\r\n" "ST: ssdp:all\r\n" "USN: uuid:" + persistent_uuid + "::upnp:rootdevice\r\n" "X-User-Agent: redsonic\r\n\r\n
this is working on my Echo Plus.
Hello guys
Past few weeks I have been working on a smart home skill and a website which allows you add development boards such as WEMOS D1 to Alexa eco system without emulating as a belkin switch. Mainly, because some people have issues in the UDP broadcast and different Alexa devices such as ECO, DOT has different XML formats and this is logic is quite difficult to code. So, I belive moving forward using the smart home skill is the right thing to do;
So, I would like to invite everyone to give it a try.
Goto sinric.com
Create an account
Use the API key displayed on the home screen to connect your WEMOS D1 to sinric. Here is the code . Just replace the API KEY https://github.com/kakopappa/sinric/blob/master/arduino_sinric_example.ino
Install smart home skill from https://www.amazon.com/dp/B078RGYWQQ/ref=syps?s=digital-skills&ie=UTF8&qid=1515150398&sr=1-18&refinements=p_n_date%3A14284925011
4.1 Link, eneter you login details to sinric.com
Discover.
Rate the Skill so other people can easily find it!
You can turn on/off same like emulating a belkin device.
No need to say like Alexa ask sinric to turn on bedroom lights. Simple as a Alexa turn on bedroom lights.
If you have any issue or comments report it here; https://github.com/kakopappa/sinric
Thanks kakopappa
Hi Aruna
Thank you. But after looking from a security point of view, I prefer using the standalone version. Nevertheless – many thanks!
All best Sascha
Von: Aruna Tennakoon [mailto:notifications@github.com] Gesendet: Freitag, 5. Januar 2018 12:30 An: kakopappa/arduino-esp8266-alexa-wemo-switch arduino-esp8266-alexa-wemo-switch@noreply.github.com Cc: Magold, Sascha sascha.magold@sap.com; Mention mention@noreply.github.com Betreff: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)
Hello guys
Past few weeks I have been working on a smart home skill and a website which allows you add development boards such as WEMOS D1 to Alexa eco system without emulating as a belkin switch. Mainly, because some people have issues in the UDP broadcast and different Alexa devices such as ECO, DOT has different XML formats and this is logic is quite difficult to code. So, I belive moving forward using the smart home skill is the right thing to do;
So, I would like to invite everyone to give it a try.
4.1 Link, eneter you login details to sinric.com
You can turn on/off same like emulating a belkin device.
No need to say like Alexa ask sinric to turn on bedroom lights. Simple as a Alexa turn on bedroom lights.
If you have any issue or comments report it here; https://github.com/kakopappa/sinric
Thanks kakopappa
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-355533848, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-65lITMeKLXvMwD1fVdGy-2xu2nMks5tHgedgaJpZM4KvPK8.
It would be a great shame if we needed to start relying on an external web site for things like this. Won’t it introduce extra latency, too?
Great idea - do it and tell us!
Best regards Sascha
Am 05.01.2018 um 23:50 schrieb SupraJames notifications@github.com<mailto:notifications@github.com>:
It would be a great shame if we needed to start relying on an external web site for things like this. Won’t it introduce extra latency, too?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-355687019, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-xc76Hw1K_WeZMlbalDeQb8_V1htks5tHqdMgaJpZM4KvPK8.
@JanB97 There was a \ and ; missing in the code you gave and I applied, but it didn't worked.
I believe Sascha can help creating a standalone version, I believe then SupraJames will have no security issue.
@kakopappa dose the website communication with the device work on MQTT protocol ? if yes what broker are u using ?
I am working on a similar website, using the alexa skill dose make it easy.
what about the guys who dont have alexa and would like to emulate the device ?
It's using WebSockets at the moment. If you guys want I can add MQTT support as well.
Next goal of this project is to turn on/off the switchs using an Android app. API is there already. I am working on the app now.
On Sat, Jan 6, 2018 at 7:36 PM Ameengray notifications@github.com wrote:
@kakopappa https://github.com/kakopappa dose the website communication with the device work on MQTT protocol ? if yes what broker are u using ?
I am working on a similar website, using the alexa skill dose make it easy.
what about the guys who dont have alexa and would like to emulate the device ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-355744237, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5mYnvmsUZhHDaHEsoYAZEX_cjY5sks5tH2jBgaJpZM4KvPK8 .
Hi
I already use a standalone Version running on my local synology... so there is no need to build the stuff again. Just a Broker and the available sketch 😉
BR Sascha
Am 06.01.2018 um 13:31 schrieb sunilda notifications@github.com<mailto:notifications@github.com>:
I believe Sascha can help creating a standalone version, I believe then SupraJames will have no security issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-355743973, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-5eYHta-Nl-DK7cnNm6cDiOfAwOoks5tH2ePgaJpZM4KvPK8.
@sunilda I am sorry, I did not copy the last two characters.
This is the full response string I'm using, I did not change anything else. (this is a direct copy of my working sketch so it should be right).
String response = "HTTP/1.1 200 OK\r\n" "CACHE-CONTROL: max-age=86400\r\n" "DATE: Fri, 15 Apr 2016 04:56:29 GMT\r\n" "EXT:\r\n" "LOCATION: http://" + String(s) + ":80/setup.xml\r\n" "OPT: \"http://schemas.upnp.org/upnp/1/0/\"; ns=01\r\n" "01-NLS: b9200ebb-736d-4b93-bf03-835149d13983\r\n" "SERVER: Unspecified, UPnP/1.0, Unspecified\r\n" "ST: ssdp:all\r\n" "USN: uuid:" + persistent_uuid + "::upnp:rootdevice\r\n" "X-User-Agent: redsonic\r\n\r\n";
@JanB97 Not sure how the above said code even got compiled as it missing the very first \ after OTP:
"OPT: \"http://schemas.upnp.org/upnp/1/0/\"; ns=01\r\n"
anyways I added the \ and the code compiled, but still alexa (Echo Plus) fail to detect devices.
thank for your project and now I would like to know how can I you mqtt to communicate with alexa..I use adafruit io mqtt connect esp8266 Please help me
Google is your friend when you won‘t spend time on your own: https://create.arduino.cc/projecthub/2stacks/alexa-trigger-esp8266-181f0d
Am 24.02.2018 um 20:25 schrieb tinh8080 notifications@github.com<mailto:notifications@github.com>:
thank for your project and now I would like to know how can I you mqtt to communicate with alexa..I use adafruit io mqtt connect esp8266 Please help me
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-368252905, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-4wC4qy0PFRgGNfgsWkNGlxoYZHEks5tYGJBgaJpZM4KvPK8.
Sorry but now I can't access the link (the new code) you provide, can you sent it again. Thank you so much! Here is link: https://github.com/kakopappa/sinric/blob/master/arduino_sinric_example.ino
https://github.com/kakopappa/sinric/blob/master/arduino_examples/switch_example.ino
On Wed, 3 Oct 2018 at 9:14 AM thesofial notifications@github.com wrote:
Sorry but now I can't access the link (the new code) you provide, can you sent it again. Thank you so much! Here is link: https://github.com/kakopappa/sinric/blob/master/arduino_sinric_example.ino
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-426490031, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5r1hC3-ZS9xarEQx-EWb-SgislQjks5uhB15gaJpZM4KvPK8 .
thanks for making such a cool project searched all over for a way to control a relay through alexa. now if only i can get it to work. i run the code and open serial monitor. it says it connects to my wifi network and that http server started but when i try to discover new devices with alexa it doesnt show up? any help would be appreciated.