arduino-esp8266-alexa-wemo-switch icon indicating copy to clipboard operation
arduino-esp8266-alexa-wemo-switch copied to clipboard

alexa not discovering device

Open parus21 opened this issue 9 years ago • 84 comments

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.

parus21 avatar Nov 10 '16 22:11 parus21

  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?

kakopappa avatar Nov 12 '16 14:11 kakopappa

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

kalirenegade avatar Nov 14 '16 01:11 kalirenegade

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

joeman2116 avatar Nov 14 '16 21:11 joeman2116

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 avatar Nov 17 '16 00:11 parus21

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

parus21 avatar Nov 17 '16 00:11 parus21

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 [email protected] 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 .

joeman2116 avatar Nov 17 '16 02:11 joeman2116

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!

AndrewsHappy avatar Dec 18 '16 00:12 AndrewsHappy

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 [email protected] 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 .

joeman2116 avatar Dec 18 '16 00:12 joeman2116

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

AndrewsHappy avatar Dec 18 '16 00:12 AndrewsHappy

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 [email protected] 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 .

joeman2116 avatar Dec 18 '16 00:12 joeman2116

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

AndrewsHappy avatar Dec 18 '16 00:12 AndrewsHappy

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 [email protected] 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 .

joeman2116 avatar Dec 18 '16 01:12 joeman2116

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

AndrewsHappy avatar Dec 18 '16 01:12 AndrewsHappy

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 [email protected] 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 .

joeman2116 avatar Dec 18 '16 01:12 joeman2116

One step behind you! Right, off to bed Night

Andrew (Hampshire, England)

AndrewsHappy avatar Dec 18 '16 01:12 AndrewsHappy

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 [email protected] 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 [email protected] 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.

AndrewsHappy avatar Dec 19 '16 18:12 AndrewsHappy

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 [email protected] 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 [email protected] 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 [email protected] 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 .

joeman2116 avatar Dec 19 '16 23:12 joeman2116

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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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.

AndrewsHappy avatar Dec 19 '16 23:12 AndrewsHappy

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 [email protected] 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 <[email protected]<mailto: [email protected]>> 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 <[email protected] mailto:[email protected]> 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 <[email protected]<mailto: [email protected]>> 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 <[email protected] mailto:[email protected]> 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 .

joeman2116 avatar Dec 19 '16 23:12 joeman2116

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 [email protected] 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 [email protected] 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 <[email protected]<mailto: [email protected]>> 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 <[email protected] mailto:[email protected]> 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 <[email protected]<mailto: [email protected]>> 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 <[email protected] mailto:[email protected]> 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.

AndrewsHappy avatar Dec 20 '16 00:12 AndrewsHappy

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 [email protected] 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 [email protected] 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 [email protected] 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 <[email protected]<mailto: [email protected]>> 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 <[email protected] mailto:[email protected]> 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 <[email protected]<mailto: [email protected]>> 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 < [email protected] mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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 .

joeman2116 avatar Dec 20 '16 03:12 joeman2116

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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected] mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 < [email protected]mailto:[email protected] mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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.

AndrewsHappy avatar Dec 20 '16 07:12 AndrewsHappy

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 [email protected] 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 <[email protected]<mailto: [email protected]>> 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 <[email protected]<mailto: [email protected]>> 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 <[email protected]<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 <[email protected]< mailto:[email protected]>> 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 <[email protected]<mailto: [email protected]><mailto: [email protected]mailto:[email protected]>> 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 <[email protected]< mailto:[email protected]> mailto:[email protected]> 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 <[email protected]<mailto: [email protected]><mailto:

[email protected]mailto:[email protected]>>

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 < [email protected]mailto:[email protected] mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003>, or mute the thread<https://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 .

joeman2116 avatar Dec 21 '16 19:12 joeman2116

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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<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 <[email protected]mailto:[email protected]< mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]< mailto:[email protected]> mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto:

[email protected]mailto:[email protected]mailto:[email protected]>>

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 < [email protected]mailto:[email protected]mailto:[email protected] mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003>, or mute the thread<https://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.

AndrewsHappy avatar Dec 21 '16 20:12 AndrewsHappy

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

solrac21 avatar Dec 21 '16 23:12 solrac21

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 <[email protected]mailto:[email protected]> 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.

AndrewsHappy avatar Dec 21 '16 23:12 AndrewsHappy

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 [email protected] 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 <[email protected]<mailto: [email protected]>> 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 <[email protected]<mailto: [email protected]>> 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 <[email protected]<mailto: [email protected]><mailto: [email protected]mailto:[email protected]>> 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 <[email protected]<mailto: [email protected]><mailto: [email protected]mailto:[email protected]>> 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 <[email protected]<mailto: [email protected]><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 <[email protected] mailto:[email protected]< mailto:[email protected]>> 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 <[email protected]<mailto: [email protected]><mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]<mailto: [email protected]>>> 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 <[email protected] mailto:[email protected]< mailto:[email protected]> mailto:[email protected]> 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 <[email protected]<mailto: [email protected]><mailto: [email protected]mailto:[email protected]><mailto:

[email protected]mailto:[email protected]<mailto: [email protected]>>>

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 < [email protected]mailto:[email protected]<mailto: [email protected]> mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003>, or mute the thread<https://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 .

joeman2116 avatar Dec 21 '16 23:12 joeman2116

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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><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 <[email protected]mailto:[email protected] mailto:[email protected]< mailto:[email protected]>> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>>> 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 <[email protected]mailto:[email protected] mailto:[email protected]< mailto:[email protected]> mailto:[email protected]> 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 <[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]><mailto: [email protected]mailto:[email protected]mailto:[email protected]><mailto:

[email protected]mailto:[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]>>>

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 < [email protected]mailto:[email protected]mailto:[email protected]<mailto: [email protected]mailto:[email protected]> mailto:[email protected]> 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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268112850>, or mute the thread<https://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 GitHub<https://github.com/ kakopappa/arduino-esp8266-alexa-wemo-switch/issues/7# issuecomment-268146003>, or mute the thread<https://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.

AndrewsHappy avatar Dec 21 '16 23:12 AndrewsHappy

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

solrac21 avatar Dec 22 '16 00:12 solrac21

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


From: solrac21 [email protected] 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.

AndrewsHappy avatar Dec 22 '16 00:12 AndrewsHappy