kakopappa / arduino-esp8266-alexa-wemo-switch

Amazon Alexa + WeMos switch made with Arduino D1 Mini
https://sinric.pro
MIT License
281 stars 249 forks source link

alexa not discovering device #7

Open parus21 opened 7 years ago

parus21 commented 7 years ago

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.

kakopappa commented 7 years ago
  1. Make sure ports or udp packets are not blocked from router.
  2. When you ask alexa to discover devices, do you see these printed in the serial window ? normally alexa does a udp broadcast when you request to discover new devices

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

or

########## Responding to eventservice.xml ... ########

in the serial monitor?

kalirenegade commented 7 years ago

I have also tried to set up this device and do not get a response all devices are on the same network UDP seems to be working on the network as I am getting a request showing up from the router on the serial port However nothing from Alexa i'm using Alexa on the Amazon fire tv using a ESP-01 if I navigate to the ESP's homepage Aka index.htnl I get hello world so I know it is connected

joeman2116 commented 7 years ago

I am using the software on several nodemcu 8266 -12f modules and it works great. Also reprogrammed the Sonoff modules with this code. I use the arduino ide software to flash the new code. I choose the nodemcu.9v type

Changed the ssid and password and gave each one a new device name, reboot and Told Alexa Echo dot to discover and all appeared.... wow! great stuff....

Thanks for Super Piece of Software!! Joe

parus21 commented 7 years ago

just looking back at the boards i ordered and realized that i ordered the d1 mini pro which looks like a different board. could this be causing the issue?

parus21 commented 7 years ago

not seeing anything when i make a request from alexa in the serial monitor. just pauses at http server started.

joeman2116 commented 7 years ago

I looked at the mini pro and it looks fine. It has more mem than most. Should work ok. I use frpm esp01 to 12f and nodemcu modules and all work ok. Is your power source powerfull enough? Joe

On Wed, Nov 16, 2016, 8:39 PM parus21 notifications@github.com wrote:

not seeing anything when i make a request from alexa in the serial monitor. just pauses at http server started.

— 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-261119304, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY0zFZ7jqwmu53iOuWceR7-U_I1iRks5q-6JRgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

It is beautiful code, and I am glad that someone has got it to work, but afraid I am not one of them. I know it is getting onto the router, as i can see it, I can also ping it. Just Alexa will not discover it. Granted that I have a professional meru wifi system, which has lots of settings that might stop the UDP etc... but also tried it on my back up router that EE provides and still nothing... You can't get the WeMo sockets for love or money (and a lot of money at that) to see if your network is the problem of if there is a bit of code that just doesnt like me! So close yet so far!

joeman2116 commented 7 years ago

Are you referring to the single device or multiple device version?

When you run the serial monitor and reset your esp do you see it attempting to connect?

If so then tell Alexa to discover devices

You should see the requests ack coming from Alexa and when you tell Alexa to turn on the device you should see it print across your screen?

Joe

On Sat, Dec 17, 2016 at 8:19 PM, AndrewsHappy notifications@github.com wrote:

It is beautiful code, and I am glad that someone has got it to work, but afraid I am not one of them. I know it is getting onto the router, as i can see it, I can also ping it. Just Alexa will not discover it. Granted that I have a professional meru wifi system, which has lots of settings that might stop the UDP etc... but also tried it on my back up router that EE provides and still nothing... You can't get the WeMo sockets for love or money (and a lot of money at that) to see if your network is the problem of if there is a bit of code that just doesnt like me! So close yet so far!

— 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-267795557, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY8RfQ5ePEbPZPt0xFXEKl9DYUoaDks5rJHwZgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

I must confess that I am not as clever as I might think I am and quite new to it all. I am programming the Sonoff and only got as far as looking at the single device. I do not know how to use the Serial Monitor to get anything useful out of it, so I do not even know if Alex is doing anythin....HOLY SMOKE!! Press the button.... I didn't even realise I needed to push the button.... DHO!

OK, I now have a WeMo Switch showing up on my Alexa.... Joe, you are my hero!!! Thank you....

joeman2116 commented 7 years ago

Glad I could help.. I have several sonoff modules setup up as singles devices on Alexa - they work very well.

The serial monitor is an option located under one of the arduino ide tabs. When you reset the module, it will display the actions (baud rate at bottom should display 9600 or you will get weird character prints If all is well you will see things like:

Such as connecting Connected to wifi xxx IP It helps a lot when trying to see if all is working properly and where the failure might be etc...

The muliple version is also very cool when you are using regular esp8266 modules as you can have one esp8266 control up 2 14 devices.. I have a few boxes with 1 esp8266 a 4 channel relay and Alexa displays it as 4 devices each with their own name,,

Great piece of software....

Joe

On Sat, Dec 17, 2016 at 8:41 PM, AndrewsHappy notifications@github.com wrote:

I must confess that I am not as clever as I might think I am and quite new to it all. I am programming the Sonoff and only got as far as looking at the single device. I do not know how to use the Serial Monitor to get anything useful out of it, so I do not even know if Alex is doing anythin....HOLY SMOKE!! Press the button.... I didn't even realise I needed to push the button.... DHO!

OK, I now have a WeMo Switch showing up on my Alexa.... Joe, you are my hero!!! Thank you....

— 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-267796218, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY6E_s8vswarKFXU6HgdHc5QrjNCIks5rJIFCgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Slow down! So with the Sonoff can you get the relay and green LED to work together, at the moment, it seems to only be "Alexa turn the light on" to turn on the light, then "Alexa turn the light on" to turn it off!! I think I need to study this code more... but at least I can now go to bed with some sense of achievement

joeman2116 commented 7 years ago

Yes, You just need to make sure the declared pins are correct.

  1. One for the relay.

  2. One for the LED - which must be added.

Then you would need to add the same code for the led.

joe

On Sat, Dec 17, 2016 at 8:56 PM, AndrewsHappy notifications@github.com wrote:

Slow down! So with the Sonoff can you get the relay and green LED to work together, at the moment, it seems to only be "Alexa turn the light on" to turn on the light, then "Alexa turn the light on" to turn it off!! I think I need to study this code more... but at least I can now go to bed with some sense of achievement

— 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-267796707, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY1GsZqScfyOBq2EokGHG9kchX3ORks5rJIS8gaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

joeman2116 commented 7 years ago

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy notifications@github.com wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

— 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-267797037, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

One step behind you! Right, off to bed Night

Andrew (Hampshire, England)

AndrewsHappy commented 7 years ago

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy notifications@github.com wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-267797296, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN-PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8.

joeman2116 commented 7 years ago

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy notifications@github.com wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy notifications@github.com wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN-PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

— 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-268047872, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY-rxm-m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 notifications@github.com<mailto:notifications@github.com> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com<mailto:notifications@github.com> Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy notifications@github.com<mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN-PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY-rxm-m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268104804, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8.

joeman2116 commented 7 years ago

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 <notifications@github.com<mailto: notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy <notifications@github.com mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 <notifications@github.com<mailto: notifications@github.com>> Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy <notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN-PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm-m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

— 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 notifications@github.com Sent: 19 December 2016 23:51 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 <notifications@github.com<mailto: notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy <notifications@github.com mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 <notifications@github.com<mailto: notifications@github.com>> Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy <notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN-PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm-m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268112850, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuzUtks5rJxhlgaJpZM4KvPK8.

joeman2116 commented 7 years ago

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew notifications@github.com wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 notifications@github.com Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 <notifications@github.com<mailto: notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy <notifications@github.com mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 <notifications@github.com<mailto: notifications@github.com>> Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

— 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Let me know if you get either working with Alexa, seems only one person has so far.

@ndrew

On 20 Dec 2016, at 03:36, joeman2116 notifications@github.com<mailto:notifications@github.com> wrote:

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew notifications@github.com<mailto:notifications@github.com> wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 notifications@github.com<mailto:notifications@github.com> Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com> wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.commailto:notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

- 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268146003, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPcreYxZBxOkCY_Q8nvIri3juf3t1ks5rJ00rgaJpZM4KvPK8.

joeman2116 commented 7 years ago

Got the linknodes r4 in today and 10 minutes later Alexa is working fine with the nodes 4 relays.

I just added a 5v +center powersupply Connected 3 wires from my uart (programmer) tx rx and gnd (3vmode) Moved the jumper to the UART PROGRAM position

Then i ran esptool to write blank bins - clears memory - probably not required but have found it clears any issues - so I do it first.

Then I ran the code found at " The makers workbench" How to use Amazon Alexa to control the Linknode R4. I changed the ssid and pw.

Compiled and uploaded use the Arduinio IDE software

Generic 8266 QIO 2meg /1 meg spfss

makersite https://themakersworkbench.com/tutorial/how-use-amazon-alexa-control-linknode-r4-esp8266-4-channel-relay-board is here..

Ran the node thru its paces - on, off / combinations etc - works great. Now will exercise it during the eve and overnight to see if there are any issues.

So far ---- cool....

Joe

On Tue, Dec 20, 2016 at 3:04 AM, Andrew notifications@github.com wrote:

Let me know if you get either working with Alexa, seems only one person has so far.

@ndrew

On 20 Dec 2016, at 03:36, joeman2116 <notifications@github.com<mailto: notifications@github.com>> wrote:

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew <notifications@github.com<mailto: notifications@github.com>> wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 <notifications@github.com<mailto:notifications@github. com>> Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy <notifications@github.com< mailto:notifications@github.com>> wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy <notifications@github.com< mailto:notifications@github.com> mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto:

notifications@github.commailto:notifications@github.com>>

Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.commailto:notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

- 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPcreYxZBxOkCY_ Q8nvIri3juf3t1ks5rJ00rgaJpZM4KvPK8.

— 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-268170763, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY87Sk9jnq_A2CkarAi_xS7znlNkiks5rJ34TgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Wow, in 10 minutes! Took me a few days ! But now I know what I'm doing...

I got my broadlink rm pro, as I have a few infrared devices I'd like to get Alexa to control, but seems there is a better way using a Logitech Harmony hub.... but not keen on having to use the cloud to connect to Alexa...

@ndrew

On 21 Dec 2016, at 19:54, joeman2116 notifications@github.com<mailto:notifications@github.com> wrote:

Got the linknodes r4 in today and 10 minutes later Alexa is working fine with the nodes 4 relays.

I just added a 5v +center powersupply Connected 3 wires from my uart (programmer) tx rx and gnd (3vmode) Moved the jumper to the UART PROGRAM position

Then i ran esptool to write blank bins - clears memory - probably not required but have found it clears any issues - so I do it first.

Then I ran the code found at " The makers workbench" How to use Amazon Alexa to control the Linknode R4. I changed the ssid and pw.

Compiled and uploaded use the Arduinio IDE software

Generic 8266 QIO 2meg /1 meg spfss

makersite https://themakersworkbench.com/tutorial/how-use-amazon-alexa-control-linknode-r4-esp8266-4-channel-relay-board is here..

Ran the node thru its paces - on, off / combinations etc - works great. Now will exercise it during the eve and overnight to see if there are any issues.

So far ---- cool....

Joe

On Tue, Dec 20, 2016 at 3:04 AM, Andrew notifications@github.com<mailto:notifications@github.com> wrote:

Let me know if you get either working with Alexa, seems only one person has so far.

@ndrew

On 20 Dec 2016, at 03:36, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 notifications@github.com<mailto:notifications@github.com<mailto:notifications@github. com>> Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com< mailto:notifications@github.com>> wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com< mailto:notifications@github.com> mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto:

notifications@github.commailto:notifications@github.commailto:notifications@github.com>>

Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.commailto:notifications@github.commailto:notifications@github.com mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

- 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPcreYxZBxOkCY_ Q8nvIri3juf3t1ks5rJ00rgaJpZM4KvPK8.

- 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-268170763, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY87Sk9jnq_A2CkarAi_xS7znlNkiks5rJ34TgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268622873, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPWjq-65yB9iP9stHSvEFhU3nfFX-ks5rKYPzgaJpZM4KvPK8.

solrac21 commented 7 years ago

Hello everyone, i am having some isssues...I can flash the Sonoff and i get this in the serial monitor: . Connected to HOME-1307-2.4 IP address: 10.0.0.229

Connecting to UDP Connection successful HTTP Server started ..

but no matter what i do, i cannot get alexa to see it. I also do not see the request from Alexa on the serial monitor. I have tried diffrent UDP ports but nothing....

AndrewsHappy commented 7 years ago

Are you pressing the button on the Sonoff once you have flashed it and the Sonoff has logged onto the network and asked Alexa to find new devices?

On 21 Dec 2016, at 23:45, solrac21 notifications@github.com<mailto:notifications@github.com> wrote:

Hello everyone, i am having some isssues...I can flash the Sonoff and i get this in the serial monitor: . Connected to HOME-1307-2.4 IP address: 10.0.0.229

Connecting to UDP Connection successful HTTP Server started ..

but no matter what i do, i cannot get alexa to see it. I also do not see the request from Alexa on the serial monitor. I have tried diffrent UDP ports but nothing....

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268676155, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPZTt_Or79vh_xbf3xsEpqgueKL9Wks5rKbowgaJpZM4KvPK8.

joeman2116 commented 7 years ago

Curious how the Broadlink Rm Pro works out with Alexa. It has the most device connectivity.

Cheaper than Harmony but Harmony more polished interface.

Thanks for the linknode info, I like them..

Joe

On Wed, Dec 21, 2016, 4:00 PM Andrew notifications@github.com wrote:

Wow, in 10 minutes! Took me a few days ! But now I know what I'm doing...

I got my broadlink rm pro, as I have a few infrared devices I'd like to get Alexa to control, but seems there is a better way using a Logitech Harmony hub.... but not keen on having to use the cloud to connect to Alexa...

@ndrew

On 21 Dec 2016, at 19:54, joeman2116 <notifications@github.com<mailto: notifications@github.com>> wrote:

Got the linknodes r4 in today and 10 minutes later Alexa is working fine with the nodes 4 relays.

I just added a 5v +center powersupply Connected 3 wires from my uart (programmer) tx rx and gnd (3vmode) Moved the jumper to the UART PROGRAM position

Then i ran esptool to write blank bins - clears memory - probably not required but have found it clears any issues - so I do it first.

Then I ran the code found at " The makers workbench" How to use Amazon Alexa to control the Linknode R4. I changed the ssid and pw.

Compiled and uploaded use the Arduinio IDE software

Generic 8266 QIO 2meg /1 meg spfss

makersite < https://themakersworkbench.com/tutorial/how-use-amazon-alexa-control-linknode-r4-esp8266-4-channel-relay-board

is here..

Ran the node thru its paces - on, off / combinations etc - works great. Now will exercise it during the eve and overnight to see if there are any issues.

So far ---- cool....

Joe

On Tue, Dec 20, 2016 at 3:04 AM, Andrew <notifications@github.com<mailto: notifications@github.com>> wrote:

Let me know if you get either working with Alexa, seems only one person has so far.

@ndrew

On 20 Dec 2016, at 03:36, joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com>> wrote:

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com>> wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto:notifications@github. com>> Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy <notifications@github.com mailto:notifications@github.com< mailto:notifications@github.com>> wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.com<mailto: notifications@github.com>>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy <notifications@github.com mailto:notifications@github.com< mailto:notifications@github.com> mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com><mailto:

notifications@github.commailto:notifications@github.com<mailto: notifications@github.com>>>

Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.commailto:notifications@github.com<mailto: notifications@github.com> mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

- 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPcreYxZBxOkCY_ Q8nvIri3juf3t1ks5rJ00rgaJpZM4KvPK8.

- 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-268170763 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY87Sk9jnq_A2CkarAi_xS7znlNkiks5rJ34TgaJpZM4KvPK8

.

- 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-268622873>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPWjq-65yB9iP9stHSvEFhU3nfFX-ks5rKYPzgaJpZM4KvPK8

.

— 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-268624328, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY8H7jXnxhTg6ga8LbBCuesBuA0Qcks5rKYVmgaJpZM4KvPK8 .

AndrewsHappy commented 7 years ago

Link nodes have suddenly gone up in price here and hard to get. I've had to order more from the USA.

Think I have to use an Android bridge as well. So far not impressed with the Broadlink, that might be down to poor instructions and I'm doing it wrong

On 21 Dec 2016, at 23:49, joeman2116 notifications@github.com<mailto:notifications@github.com> wrote:

Curious how the Broadlink Rm Pro works out with Alexa. It has the most device connectivity.

Cheaper than Harmony but Harmony more polished interface.

Thanks for the linknode info, I like them..

Joe

On Wed, Dec 21, 2016, 4:00 PM Andrew notifications@github.com<mailto:notifications@github.com> wrote:

Wow, in 10 minutes! Took me a few days ! But now I know what I'm doing...

I got my broadlink rm pro, as I have a few infrared devices I'd like to get Alexa to control, but seems there is a better way using a Logitech Harmony hub.... but not keen on having to use the cloud to connect to Alexa...

@ndrew

On 21 Dec 2016, at 19:54, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

Got the linknodes r4 in today and 10 minutes later Alexa is working fine with the nodes 4 relays.

I just added a 5v +center powersupply Connected 3 wires from my uart (programmer) tx rx and gnd (3vmode) Moved the jumper to the UART PROGRAM position

Then i ran esptool to write blank bins - clears memory - probably not required but have found it clears any issues - so I do it first.

Then I ran the code found at " The makers workbench" How to use Amazon Alexa to control the Linknode R4. I changed the ssid and pw.

Compiled and uploaded use the Arduinio IDE software

Generic 8266 QIO 2meg /1 meg spfss

makersite < https://themakersworkbench.com/tutorial/how-use-amazon-alexa-control-linknode-r4-esp8266-4-channel-relay-board

is here..

Ran the node thru its paces - on, off / combinations etc - works great. Now will exercise it during the eve and overnight to see if there are any issues.

So far ---- cool....

Joe

On Tue, Dec 20, 2016 at 3:04 AM, Andrew notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

Let me know if you get either working with Alexa, seems only one person has so far.

@ndrew

On 20 Dec 2016, at 03:36, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com>> wrote:

Thanks for info on the linknode - ordered 2

The broadlink rm pro looks interesting as well

joe

On Mon, Dec 19, 2016 at 8:02 PM, Andrew notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com>> wrote:

I just went to the router and found the MAC code of the Sonoff and assigned it a static IP. I have lots of IP cameras, VoIP, AV's and now this lot... so I like to try and keep track of my ip addresses by giving them all static ip's

The Link Node is just a 8266 with 4 relays on it that you can control like the Sonoff, as well as flash code onto it...


From: joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto:notifications@github. com>> Sent: 19 December 2016 23:51

To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Would be interesting to see what code you used for static ip.

Have not looked at the link node R4 to see what it is supposed to do.

Joe

On Mon, Dec 19, 2016, 7:41 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com mailto:notifications@github.com< mailto:notifications@github.com>> wrote:

Now I have given it a static in, seems to be behaving.

Have you had any experience programming the Linknode R4, seems kakopappa has written some code, and although it will flash, does not do anything according to the serial monitor, yet I can put the Sonoff onto it and get it to join the net...

Tomorrow I am getting a Broadlink RM Pro, which they say can also be made to talk to Alexa...

@ndrew

On 19 Dec 2016, at 23:05, joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>>> wrote:

Nope I have several sonof running 24/7 for more than a month so far they work 100 percent

On Mon, Dec 19, 2016, 2:59 PM AndrewsHappy notifications@github.com<mailto:notifications@github.com mailto:notifications@github.com< mailto:notifications@github.com> mailto:notifications@github.com> wrote:

Hi Joe

do you find that you have to keep turning the sonoff off and then on after an hour to get it to register back onto the wifi ? Mine is falling asleep and Alexa says it is off line.

Andrew


From: joeman2116 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com><mailto: notifications@github.commailto:notifications@github.commailto:notifications@github.com><mailto:

notifications@github.commailto:notifications@github.commailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>>>

Sent: 18 December 2016 01:15 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: AndrewsHappy; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

const int relayPin = D1; const int ledPin = D7;

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, LOW); //GREEN LED }

void turnOffRelay() { digitalWrite(relayPin, LOW); // turn off relay with voltage LOW digitalWrite(ledPin, HIGH); //GREEN LED OFF }

This is what I have on my Sonoff.... to control led and relay

Ltr. . Joe- Canada

On Sat, Dec 17, 2016 at 9:07 PM, AndrewsHappy < notifications@github.commailto:notifications@github.commailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com> mailto:notifications@github.com> wrote:

Yes, it isn't as easy as I thought

void turnOnRelay() { digitalWrite(relayPin, HIGH); // turn on relay with voltage HIGH digitalWrite(ledPin, HIGH); // turn on the green LED }

giving the value of 13 for the relay and 12 for the relay, but all it seems to do is to turn on the relay and not the LED.

Oh, thanks again, got the serial monitor working.... having fun now,..... shame it is 1am

- 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-267797037

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ AWDpY25d4o3XYVF346stZ22g7Os3oWYlks5rJIdugaJpZM4KvPK8

.

- 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-267797296 , or mute the thread<

https://github.com/notifications/unsubscribe-auth/ARQwPRrjHuiN- PhVcnbqIhnz7sSGKb2iks5rJIlEgaJpZM4KvPK8

.

- 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-268047872 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY-rxm- m92CAmaijZICiOcnN2KXLcks5rJtQagaJpZM4KvPK8

.

- 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-268104804>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ ARQwPVHAiQz3hPrCtyRsRGCLRN_GWYfqks5rJw2_gaJpZM4KvPK8

.

- 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-268111322, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY4eoOOj1HOvidUWFubmEIV40vjDrks5rJxYVgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPdu3P40QurAlUHtfEbFsI5hpuz Utks5rJxhlgaJpZM4KvPK8.

- 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-268114707, or mute the thread https://github.com/notifications/unsubscribe-auth/ AWDpY3S2yBphr0gH7bxZ7KnkfFIqza-4ks5rJxsJgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003, or mute the threadhttps://github.com/ notifications/unsubscribe-auth/ARQwPcreYxZBxOkCY_ Q8nvIri3juf3t1ks5rJ00rgaJpZM4KvPK8.

- 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-268170763 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AWDpY87Sk9jnq_A2CkarAi_xS7znlNkiks5rJ34TgaJpZM4KvPK8

.

- 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-268622873>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ARQwPWjq-65yB9iP9stHSvEFhU3nfFX-ks5rKYPzgaJpZM4KvPK8

.

- 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-268624328, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDpY8H7jXnxhTg6ga8LbBCuesBuA0Qcks5rKYVmgaJpZM4KvPK8 .

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268676934, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPRbIiBFNLZz--8LHpUr4A0N8gayNks5rKbr3gaJpZM4KvPK8.

solrac21 commented 7 years ago

No, i haven't tried the button. So do i hold the button down? press the button once and scan for devices?

AndrewsHappy commented 7 years ago

Press the Find devices (or ask her to) then press the button. It should then come up on the app


From: solrac21 notifications@github.com Sent: 22 December 2016 00:32 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: Andrew; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

No, i haven't tried the button. So do i hold the button down? press the button once and scan for devices?

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268686138, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPR5MfhEtvZIS7R9fDfHGmcF9dMQqks5rKcUogaJpZM4KvPK8.

solrac21 commented 7 years ago

Still nothing,,, i have a fire stick and tried the app but neither one sees it. Am i supposed to see the requests from the alexa units in the serial monitor?

AndrewsHappy commented 7 years ago

Soon after you have flashed the sonoff, the serial monitor should then do the following

Connecting to WiFi

Connecting ................ Connected to "Your SSID" IP address: 192.168.1.10 (or what ever your IP is set up as)

Connecting to UDP Connection successful HTTP Server started ..

Received packet of size 173 From 192.168.1.4, port 58406

this will repeat a few times. Get Alexa to discover

Sending response to 192.168.1.36 Port : 50000 Response sent ! ########## Responding to setup.xml ... ########

Sending :<?xml version="1.0"?>urn:Belkin:device:controllee:1Test RelayBelkin International Inc.Emulated Socket3.1415uuid:Socket-1_0-38323636-4558-4dda-9188-cda0e6cbf88a221517K01017690urn:Belkin:service:basicevent:1urn:Belkin:serviceId:basicevent1/upnp/control/basicevent1/upnp/event/basicevent1/eventservice.xml

Received packet of size 173 From 192.168.1.53, port 2048

And now it should show up on your app.


From: solrac21 notifications@github.com Sent: 22 December 2016 00:42 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: Andrew; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

Still nothing,,, i have a fire stick and tried the app but neither one sees it. Am i supposed to see the requests from the alexa units in the serial monitor?

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-268688166, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPSLq7155yHOGsiYj_rcVg1pcHu6hks5rKcd8gaJpZM4KvPK8.

kakopappa commented 7 years ago

If you are not seeing anything in the Serial Moniotor, that means

1.UDP packets sent by Alexa are being blocked by a firewall

  1. UDP multicasts are blocked from the router

  2. or you are connected to the wrong Wifi.

Try this.

Start a APN on your mobile. Reconfigure Alexa to connect to APN Connect the Swicth to APN

Try discovering

solrac21 commented 7 years ago

I tried the APN route and have the same result. i can see these repeating: Received packet of size 313 From 192.168.43.113, port 48353

Received packet of size 322 From 192.168.43.113, port 48353

over and over but i never can discover the sonoffs. Both were connected to the APN and show a successful connection. I will keep trying different things...seriously considering getting the wemos tho....

AndrewsHappy commented 7 years ago

I know how you feel, that was exactly how I thought once I had programmed it and wasn't getting anywhere. I guess if you can get the Wemos it will prove your system works... Just one small thought, I had an Meru wifi system, which I have just replaced. It didn't like apple iPhones and some of the internet of things I was putting on it. (well known problem apparently)

So just to go back to basics.

You can see on the serial monitor your Sonoff logging onto the network and gives the same IP as what Alexa is on, but when you ask Alexa to find your device and press the button on the sonoff, you do not see any requests on the Serial monitor. in which case it might not be the sonoff that is the problem.

You could try and get hold of aLinkNode R4 and give that a go, slightyly different code, but it is on here somewhere....

Best of Luck.... you are me, this time last week!


From: solrac21 notifications@github.com Sent: 23 December 2016 16:08 To: kakopappa/arduino-esp8266-alexa-wemo-switch Cc: Andrew; Comment Subject: Re: [kakopappa/arduino-esp8266-alexa-wemo-switch] alexa not discovering device (#7)

I tried the APN route and have the same result. i can see these repeating: Received packet of size 313 From 192.168.43.113, port 48353

Received packet of size 322 From 192.168.43.113, port 48353

over and over but i never can discover the sonoffs. Both were connected to the APN and show a successful connection. I will keep trying different things...seriously considering getting the wemos tho....

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-269011384, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARQwPdMqRzpMwcrJoCmeewWA2RlqT3Xgks5rK_H8gaJpZM4KvPK8.

solrac21 commented 7 years ago

Thank AndrewsHappy...well i have a list of blocked ports for comcast/xfinity and 1900 was on there. I have tried various ports and even placing the Sonoff's IP address in the DMZ on the router to no avail. I tested a diffrent code on the sonoffs to make sure they werent faulty and they worked as they should.

idreamsi commented 6 years ago

Hi, Is this script compatible with none physical echo device for example "echosim.io" website or other sites and applications? Who has tested?

Ameengray commented 6 years ago

I have been trying to get alexa to discover devices and she just wont, my serial monitor will just stop at

Connecting to WiFi Connecting ..... Connected to Am IP address: 192.168.0.108 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

and when I ask alexa to discover devices, I don't see anything in the serial monitor. I am on the same network as alexa. I am using the nodemcu cp2102 dev board. I also tried slightly different code with esp8266, I was able to turn on and off the led from the browser but alexa is just not discovering devices. Can please get some help ?

kakopappa commented 6 years ago

Check whether IGMP / multicast is disabled in your router.

Also try starting an APN on your mobile and connecting Alexa and dev-board to the same APN.

mortoney commented 6 years ago

Hi, I am trying to create alexa controlled window blinds. I have servo motor and wemos d1-mini.

I uploaded code to wemos d1-mini and it seems to connected fine to mine wifi. (at this point servo motor is not plugged in to wemos, I just want to make sure alexa have access to it).

Message that I get in console:

Connecting to WiFi Connecting ........ Connected to VM140913-2G IP address: 192.168.0.13 Ask Alexa to discover devices

Connecting to UDP Connection successful HTTP Server started ..

Now, When Alexa tries to discover devices, she says that non found.

I can see in console that alexa hits wemos server:

192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.4, port 49170 192.168.0.4, port 49170 192.168.0.4, port 49170 192.168.0.4, port 49170

Any suggestions? is it my router settings?

Thanks

samazw commented 6 years ago

Do not ask Alexa - use the Alexa App to find your device. This should work.

Best regards Sascha

Am 29.12.2017 um 15:07 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

Hi, I am trying to create alexa controlled window blinds. I have servo motor and wemos d1-mini.

I uploaded code to wemos d1-mini and it seems to connected fine to mine wifi. (at this point servo motor is not plugged in to wemos, I just want to make sure alexa have access to it).

Message that I get in console:

Connecting to WiFi Connecting ........ Connected to VM140913-2G IP address: 192.168.0.13 Ask Alexa to discover devices

Connecting to UDP Connection successful HTTP Server started ..

Now, When Alexa tries to discover devices, she says that non found.

I can see in console that alexa hits wemos server:

192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.10, port 50000 192.168.0.4, port 49170 192.168.0.4, port 49170 192.168.0.4, port 49170 192.168.0.4, port 49170

Any suggestions? is it my router settings?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7#issuecomment-354450232, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-yZJH4e7cVB-CYcjyfOJJjJb_gpUks5tFPIUgaJpZM4KvPK8.

mortoney commented 6 years ago

@samazw Thank for your reply, but I tried both, asking alexa and using the app. In both cases no devices found. But I can see in the console that alexa hits my device with some requests, but for some reason, it does not recognise as a suitable device.

samazw commented 6 years ago

Hi

Could you please send your coding for analyzing?

Does the initial coding work (Version with issue 22 fixed)?

Best regards Sascha

Am 29.12.2017 um 20:41 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

@samazwhttps://github.com/samazw Thank for your reply, but I tried both, asking alexa and using the app. In both cases no devices found. But I can see in the console that alexa hits my device with some requests, but for some reason, it does not recognise as a suitable device.

— 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-354491604, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-9b1NH2idov7LRDf27mqjE_LWf3Oks5tFUB9gaJpZM4KvPK8.

mortoney commented 6 years ago

Code I use is latest code from here: https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/blob/master/sinric.ino

Only thing that I changed is wifi connection details, And it seems to connect fine to my wifi.

samazw commented 6 years ago

Ah ok, please do the following change. This is 100% working with my Setup and even others (copied from the bottomside here: https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/issues/22 )

My device wasn't discovered because of the code:

if(request.indexOf('M-SEARCH') > 0) { .... respondToSearch(); }

Because 'M-SEARCH' is at index 0 (in my case) the above if statement is never true and respondToSearch() is never invoked. I've changed the code to:

if(request.indexOf('M-SEARCH') >= 0) { .... respondToSearch(); }

and my Echo has been discovered successfully.

This could be the fix for those with devices that are not discovered.

Best regards Sascha

Am 29.12.2017 um 20:48 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

Code I use is latest code from here: https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/blob/master/sinric.ino

Only thing that I changed is wifi connection details, And it seems to connect fine to my wifi.

— 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-354492527, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-3-4YcrDglOMNtTb5kO4dlJ_rPkZks5tFUIkgaJpZM4KvPK8.

mortoney commented 6 years ago

Thanks. That seems to improve things. I can see that response is being sent.

Sending response to 192.168.0.10 Port : 50000 Response sent ! 192.168.0.10, port 50000 Responding to search request ...

Sending response to 192.168.0.10 Port : 50000 Response sent ! 192.168.0.10, port 50000 Responding to search request ...

Sending response to 192.168.0.10 Port : 50000 Response sent !

But still alex app and alexa itself say that no devices found. Do I need any skills enable? or any setup todo on the app?

samazw commented 6 years ago

Hmm,

Do you have at least one „real“ hue device connected to Alexa hub? Furthermore: start search using the App as soon as ESP just connected to your wifi.

I am in holidays on my iPhone so I can do no deeper analyzing (a bit strange on a phone without a computer)... sorry!

Best regards Sascha

Am 29.12.2017 um 21:09 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

Thanks. That seems to improve things. I can see that response is being sent.

Sending response to 192.168.0.10 Port : 50000 Response sent ! 192.168.0.10, port 50000 Responding to search request ...

Sending response to 192.168.0.10 Port : 50000 Response sent ! 192.168.0.10, port 50000 Responding to search request ...

Sending response to 192.168.0.10 Port : 50000 Response sent !

But still alex app and alexa itself say that no devices found. Do I need any skills enable? or any setup todo on the 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-354494771, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-4MfSBi3aIhIQvfPoRFdkfLKx43Gks5tFUcAgaJpZM4KvPK8.

mortoney commented 6 years ago

I tried restarting wemos d1-mini and searching for devices as soon server started, but no success. I don't have any smart home devices connected to my echo yet. But when I ask amazon to search for devices it says to me that I would make sure to enable skill. But I can not enable belkin wemos skill without real switch device.

samazw commented 6 years ago

There is no further skill required but at least one real Hue device, such as a bulb.

Best regards Sascha

Am 29.12.2017 um 21:26 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

I tried restarting wemos d1-mini and searching for devices as soon server started, but no success. I don't have any smart home devices connected to my echo yet. But when I ask amazon to search for devices it says to me that I would make sure to enable skill. But I can not enable belkin wemos skill without real switch device.

— 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-354496538, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-0p_mvEq347CgOuymCWwBXua0Asaks5tFUsDgaJpZM4KvPK8.

samazw commented 6 years ago

One last idea without a real Hue device: use this version (considering also Code change I sent you previously): https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch?files=1

Regards Sascha

Am 29.12.2017 um 21:26 schrieb mortoney notifications@github.com<mailto:notifications@github.com>:

I tried restarting wemos d1-mini and searching for devices as soon server started, but no success. I don't have any smart home devices connected to my echo yet. But when I ask amazon to search for devices it says to me that I would make sure to enable skill. But I can not enable belkin wemos skill without real switch device.

— 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-354496538, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-0p_mvEq347CgOuymCWwBXua0Asaks5tFUsDgaJpZM4KvPK8.