Aircoookie/Espalexa

ESP8266 is not being discover by Amazon App

Renison-Gohel opened this issue · 31 comments

Even i am able to see all defined device and their state at http://[yourEspIP]/espalexa But Unfortunately ESP8266 is not being discover by Amazon Alexa App (Version 2.2.347119.0)

I am using Simple ExampleBasic Sketch

Here is the Serial Monitor Output after enabling #define ESPALEXA_DEBUG

Connecting to WiFi
Connecting............
Connected to Godz_eye
IP address: 192.168.1.219
Constructing device 1
Adding device 1
Constructing device 2
Adding device 2
Adding device 3
Espalexa Begin...
MAXDEVICES 10
Done
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:dial-multiscreen-org:service:dial:1
USER-AGENT: Google Chrome/84.0.4147.89 Windows

everything seems to be normal in this output but still ESP8266 is not being discovered by app. is there any thing that i am doing wrong or is there any workaround to solve this issue?

Any updates? I am facing the same issue.

PS - Restarting echo devices or router doesn't help.

Same here.

@hey24sheep @Jeins98 Which gen alexa device are you using?

@hey24sheep @Jeins98 Which gen alexa device are you using?

I'm using latest ones, I think they are gen 3? Echo Input and Echo Flex are my devices.

@hey24sheep @Jeins98 Which gen alexa device are you using?

I'm using latest ones, I think they are gen 3? Echo Input and Echo Flex are my devices.

And which microcontroller are you using? Is it esp8266 or any other?

@hey24sheep @Jeins98 Which gen alexa device are you using?

I'm using latest ones, I think they are gen 3? Echo Input and Echo Flex are my devices.

And which microcontroller are you using? Is it esp8266 or any other?

I'm using node mcu esp8266

@Aircoookie Can you please address this issue.

@Reni0013 From the debug output it does not seem like one of your Echo devices is sending an appropiate SSDP M-SEARCH request with service type (ST) of either ssdp:all, upnp:rootdevice or device:basic:1.
The logged request with ST urn:dial-multiscreen-org:service:dial:1 originates from your Chrome browser.
I am afraid Amazon are phasing out support for the old Philips Hue local API with their newer devices (e.g. the Flex and Input you have) but some users have even reported this for Gen 2 or 3 Echo Dots so unfortunately it has become unclear whether Espalexa is going to work with any given Echo device. I wish there was a workaround for me to implement, but to my knowledge there is none not involving a cloud-based solution...

@Aircoookie I do not know a lot about SSDP or Alexa skills, I have not checked it a lot. But, can't we use philips hue skill or make another skill which makes us use Espalexa.

@Aircoookie "FauxmoESP" works fine. You could have a look at their implementation

@hey24sheep unfortunately it is not that easy. The standard way of voice control is Echo Device -> Amazon Server -> Device Manufacturer Server -> Smart Device. It is outside my scope of knowledge why they force manufacturers to set up complicated, expensive and potentially security compromisable servers with user accounts and all rather than just having a simple local Echo Device -> Smart Device API that is open and would cut down on latecy and complexity (like the old hue api Espalexa uses right now)

About fauxmoESP, since v.3.0.0 it uses the same Hue emulation Espalexa does. It even says in the readme that it was inspired by this project. If you can confirm that fauxmo 3.0.0+ works but Espalexa doesn't, maybe I can take a look at what they do differently! I doubt there is a chance though if the SSDP requests aren't sent by the Echo.

@Aircoookie I know that they have this complicated structure. But, the reason is to control devices across locations that is why they do it. I myself do not have a lot of knowledge on this but I do know a lil bit. I am using 3.1.1, I will recheck to be double sure.

@hey24sheep Controlling the device when away from the network works perfectly with the local approach (it does with Espalexa in the case the device is discovered successfully). It just uses Alexa App -> Amazon Server -> Echo Device -> Espalexa Device, the way it should be IMHO :)
Thanks!

Oh, I see what you mean. I agree with you, actually they should have left it open kind of. Like it could be either this or that depending on the usage of Alexa device.

@Aircoookie Okay, I double checked. I am using 3.1.1 of Fauxmo. It works. I am now testing your library again. Will update you.

@Aircoookie I figured it out. For some reason, your library takes way longer to connect to WiFi.

Code that doesnt work

boolean initWifi()
{
  blinkFeedback();
  int retryCount = 0;

  WiFi.hostname(deviceName); // DHCP Hostname (useful for finding device for static lease)

  // Configures static IP address
  if (!WiFi.config(staticIP, gateway, subnet, dns))
  {
    sendSerialData("STA Failed to configure");
  }

  WiFi.setAutoReconnect(true);
  WiFi.persistent(true);
  WiFi.mode(WIFI_STA);
  WiFi.softAPdisconnect (true);

  sendSerialData("Connecting to ");
  sendSerialData(ssid);
  WiFi.begin(ssid, password);

  delay(500);

  while (WiFi.status() != WL_CONNECTED)
  {
    sendSerialData("Connection Failed, Reconnecting...");
    if (retryCount == 30) {
      ESP.restart();
    }
    retryCount++;
  }

  return true;
}

Code that works just by adding delay and waiting for it to actually connect
PS: If it doesn't reconnect try resetting ESP manually, it works after that.
NOTE : I do not need to do this with Fauxmo Library on 3.1.1

boolean initWifi()
{
  blinkFeedback();
  int retryCount = 0;

  WiFi.hostname(deviceName); // DHCP Hostname (useful for finding device for static lease)

  // Configures static IP address
  if (!WiFi.config(staticIP, gateway, subnet, dns))
  {
    sendSerialData("STA Failed to configure");
  }

  WiFi.setAutoReconnect(true);
  WiFi.persistent(true);
  WiFi.mode(WIFI_STA);
  WiFi.softAPdisconnect (true);

  sendSerialData("Connecting to ");
  sendSerialData(ssid);
  WiFi.begin(ssid, password);

  delay(3000);

  while (WiFi.status() != WL_CONNECTED)
  {
    sendSerialData("Connection Failed, Reconnecting...");
    delay(1000);
    if (retryCount == 30) {
      ESP.restart();
    }
    retryCount++;
  }

  return true;
}

I am afraid Amazon are phasing out support for the old Philips Hue local API with their newer devices (e.g. the Flex and Input you have) but some users have even reported this for Gen 2 or 3 Echo Dots so unfortunately it has become unclear whether Espalexa is going to work with any given Echo device. I wish there was a workaround for me to implement, but to my knowledge there is none not involving a cloud-based solution...

So @hey24sheep @Aircoookie This is not like Amazon is closing support of old Philips hue API right?

@Reni0013 not right now. I would suggest try your wifi code with delay like mine. It should work. If it doesn't manual restart it. Let us know. Something is buggy for sure but it might be just plain connection api issue that it takes a while to connect without giving any progress or anything.

@Reni0013 not right now. I would suggest try your wifi code with delay like mine. It should work. If it doesn't manual restart it. Let us know. Something is buggy for sure but it might be just plain connection api issue that it takes a while to connect without giving any progress or anything.

Hi, Thanks for responding. This problem has been solved now. Actually i was just using alexa app to discover devices. Esp8266 or other development boards are only seems to be found when we gave command to the alexa smart speaker not from app as @Aircoookie mentioned this in another issue.

@Reni0013 not right now. I would suggest try your wifi code with delay like mine. It should work. If it doesn't manual restart it. Let us know. Something is buggy for sure but it might be just plain connection api issue that it takes a while to connect without giving any progress or anything.

Hi, Thanks for responding. This problem has been solved now. Actually i was just using alexa app to discover devices. Esp8266 or other development boards are only seems to be found when we gave command to the alexa smart speaker not from app as @Aircoookie mentioned this in another issue.

@Reni0013 not the case with me. I was able to use the app.

This is not like Amazon is closing support of old Philips hue API right?

I don't hope so. It's still useful to use Hue lights without having the Hue skill and an account!

Yep, I am able to discover devices from the app as well. Interesting to know that discovering directly from the Echo seems to work better in some cases...

Unfortunately now devices are not being discover with alexa smart speaker too. it seems ESP is being restarted when alexa send some requests in order to get pair esp with alexa. @Aircoookie Can you please check this output.

Connecting to WiFi
Connecting........
Connected to Godz_eye
IP address: 192.168.1.217
Constructing device 1
Adding device 1
Constructing device 2
Adding device 2
Constructing device 3
Adding device 3
Constructing device 4
Adding device 4
Adding device 5
Espalexa Begin...
MAXDEVICES 10
Done
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST: ssdp:all
MAN: "ssdp:discover"
MX: 3


Responding search req...
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST: upnp:rootdevice
MAN: "ssdp:discover"
MX: 3


Responding search req...
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST: ssdp:all
MAN: "ssdp:discover"
MX: 3


Responding search req...
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST: ssdp:all
MAN: "ssdp:discover"
MX: 3


Responding search req...
Got UDP!
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST: upnp:rootdevice
MAN: "ssdp:discover"
MX: 3


Responding search req...
# Responding to description.xml ... #

Send setup.xmlNot-Found HTTP call:
URI: /api/2WLEDHardQrI3WHYTHoMcXHgEspsM8ZZRpSKtBQr/lights
Body: 
AlexaApiCall
ok
l0
lAll

Exception (3):
epc1=0x402108d4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40240a4c depc=0x00000000

ctx: cont 
sp: 3ffff640 end: 3fffffd0 offset: 01a0

>>>stack>>>
3ffff7e0:  000019c4 3ffff8d3 00000014 401004e4  
3ffff7f0:  00000000 00000000 00000000 4020f0e0  
3ffff800:  3ffff930 3ffe8308 3ffff890 4020b161  
3ffff810:  3fff082c 3ffffac0 3ffff840 00000000  
3ffff820:  3ffefe54 00000000 00000000 3ffff890  
3ffff830:  4020f0e0 3ffff930 3ffffac0 4020b51c  
3ffff840:  00000000 000000f7 00000002 3fff0e3c  
3ffff850:  3ffe8308 00000002 0000000a 3ffe9374  
3ffff860:  3ffff8d3 3fff0cfa 4bc6a7f0 00000000  
3ffff870:  3ffef094 00000167 00000167 3fff0d30  
3ffff880:  00000000 3ffe8308 3ffff930 4020f540  
3ffff890:  00000000 ffffffff 00000000 00000000  
3ffff8a0:  00000000 00000060 00302073 402043ff  
3ffff8b0:  000002f7 00000000 3fff04ec 40204bb9  
3ffff8c0:  00000053 00000000 3fff04ec 40204c31  
3ffff8d0:  00343532 00000000 3fff04ec 3ffffd70  
3ffff8e0:  3ffef094 000002b5 00000000 4010020c  
3ffff8f0:  3ffffa30 3ffffa20 00000028 00000000  
3ffff900:  3fff0d2f 00000034 3ffffd70 40206f98  
3ffff910:  3ffeefa8 3ffef0b8 3ffef0b8 7fffffff  
3ffff920:  40240a5c 3ffe8308 7fffffff 4020cf21  
3ffff930:  3ffffb90 00000000 7fffff9e ffff0208  
3ffff940:  3ffffb30 7ffffffe 3fff058c 40208a04  
3ffff950:  3ffeefa8 3ffef0b8 3fff058c 40203028  
3ffff960:  6d783f3c 6576206c 6f697372 31223d6e  
3ffff970:  2022302e 723c3e3f 20746f6f 6e6c6d78  
3ffff980:  75223d73 733a6e72 6d656863 752d7361  
3ffff990:  2d706e70 3a67726f 69766564 312d6563  
3ffff9a0:  3e22302d 3ffffb30 3fff0ccc 4020cf64  
3ffff9b0:  3ffffa30 3ffffa20 00000008 401004e4  
3ffff9c0:  696d3c3e 3e726f6e 000000e0 7fffffff  
3ffff9d0:  40240a5c 3ffffb30 3fff0ccc 40209edd  
3ffff9e0:  3ffffa30 3ffffa20 00000008 7fffffff  
3ffff9f0:  3fff032c 00000005 3ffffae4 3ffffb30  
3ffffa00:  00000001 3ffe8a10 00000001 40209f1e  
3ffffa10:  3ffffa30 3ffffa20 00000008 40209274  
3ffffa20:  63733a6e 616d6568 3ffe8a10 000000fe  
3ffffa30:  3ffffa70 3ffffad4 61423a65 40205770  
3ffffa40:  642f3c31 63697665 00000001 40202c07  
3ffffa50:  3ffffac0 40240a4c 3fff0674 3ffe8e08  
3ffffa60:  00000001 0d925981 00000000 40100575  
3ffffa70:  00000000 00000000 00000000 00000000  
3ffffa80:  00000000 00000000 00000000 00000000  
3ffffa90:  00000000 00000000 00000000 00000000  
3ffffaa0:  00000000 00000000 00000000 00000000  
3ffffab0:  00000000 00000000 00000000 00000000  
3ffffac0:  00000000 00000000 00000000 00000000  
3ffffad0:  00000000 00000000 00000000 00000000  
3ffffae0:  00000000 3fff0674 0000000f 00000005  
3ffffaf0:  40240a4c 000000fe 3fff0674 3ffe8e08  
3ffffb00:  3ffffd3c 3ffeefa8 3ffffb30 402090b0  
3ffffb10:  3ffffd3c 3ffeefa8 00000000 00000001  
3ffffb20:  3ffffd3c 3ffeefa8 00000000 402037d1  
3ffffb30:  7473227b 22657461 6f227b3a 663a226e  
3ffffb40:  65736c61 7262222c 323a2269 222c3435  
3ffffb50:  72656c61 223a2274 656e6f6e 6d222c22  
3ffffb60:  2265646f 6f68223a 7561656d 616d6f74  
3ffffb70:  6e6f6974 72222c22 68636165 656c6261  
3ffffb80:  72743a22 2c7d6575 70797422 223a2265  
3ffffb90:  6d3c3e72 6c65646f 3e4c5255 70747468  
3ffffba0:  772f2f3a 6d2e7777 68746565 632e6575  
3ffffbb0:  2f3c6d6f 65646f6d 4c52556c 65733c3e  
3ffffbc0:  6c616972 626d754e 613e7265 31666334  
3ffffbd0:  32396432 3c383935 7265732f 4e6c6169  
3ffffbe0:  65626d75 553c3e72 753e4e44 3a646975  
3ffffbf0:  30346632 30386632 3561642d 31312d30  
3ffffc00:  392d3165 2d333262 66633461 39643231  
3ffffc10:  38393532 44552f3c 703c3e4e 65736572  
3ffffc20:  7461746e 556e6f69 693e4c52 7865646e  
3ffffc30:  6d74682e 702f3c6c 65736572 7461746e  
3ffffc40:  556e6f69 3c3e4c52 7665642f 3e656369  
3ffffc50:  6f722f3c 003e746f ff000000 00000000  
3ffffc60:  00000000 3fff0814 00000000 00000167  
3ffffc70:  00000001 3ffef094 3fff077c 3ffef094  
3ffffc80:  00000010 00000010 00000000 40100575  
3ffffc90:  3ffef094 00000271 00000271 3ffef094  
3ffffca0:  00000010 00000010 00000000 3fff0638  
3ffffcb0:  00000010 3fff0c14 3fff0c14 402090f3  
3ffffcc0:  3ffe8a58 00000000 3fff0c14 4020913f  
3ffffcd0:  3ffef094 00000161 3fff0c14 40209171  
3ffffce0:  3fff0bf0 3fff0c08 3fff0c14 3ffef094  
3ffffcf0:  00000010 00000010 00000000 40100575  
3ffffd00:  00000040 00000040 00000000 40100575  
3ffffd10:  00000014 000000b0 00000016 3ffef190  
3ffffd20:  00000010 3ffffd90 3ffffd90 402090f3  
3ffffd30:  00000000 00000000 00000000 3fff050c  
3ffffd40:  0000000f 0000000d 3ffffd90 40209171  
3ffffd50:  00000000 3ffef0b8 3ffffd90 402091be  
3ffffd60:  00000001 00000000 3ffffd9c 40209274  
3ffffd70:  00000000 3ffef0b8 3ffffd90 3ffef190  
3ffffd80:  00000000 3ffef0b8 3ffeefa8 4020393b  
3ffffd90:  3ffefa4c 0000000f 00000000 3fff0c3c  
3ffffda0:  0000003f 00000034 3fff05d0 00000000  
3ffffdb0:  00000000 3fff05d0 3fff058c 4020397c  
3ffffdc0:  00000000 00000000 00000000 40206f8e  
3ffffdd0:  00000000 00000000 00000000 402070b6  
3ffffde0:  00000000 00000000 00000000 00000000  
3ffffdf0:  00000000 3ffffe40 401065f8 00002c31  
3ffffe00:  3fff05d0 00000001 3fff0590 4020515c  
3ffffe10:  00331949 00000000 402064e4 0000000c  
3ffffe20:  00000000 3fff04d4 3fff058c 3ffef190  
3ffffe30:  00000001 3fff05b4 3fff058c 402072a0  
3ffffe40:  4020a450 00000000 00001388 40209d59  
3ffffe50:  00000000 3fff04d4 3fff0524 40205473  
3ffffe60:  3fffdad0 00000000 3ffeefa8 40203d74  
3ffffe70:  45532d4d 48435241 48202a20 2f505454  
3ffffe80:  0d312e31 534f480a 32203a54 322e3933  
3ffffe90:  322e3535 322e3535 313a3035 0d303039  
3ffffea0:  3a54530a 6e707520 6f723a70 6564746f  
3ffffeb0:  65636976 414d0a0d 22203a4e 70647373  
3ffffec0:  7369643a 65766f63 0a0d2272 203a584d  
3ffffed0:  0d0a0d33 0000000a 00000000 00000000  
3ffffee0:  00000000 00000000 00000000 00000000  
3ffffef0:  00000000 00000000 00000000 00000000  
3fffff00:  00000000 00000000 00000000 00000000  
3fffff10:  00000000 00000000 00000000 00000000  
3fffff20:  00000000 00000000 00000000 00000000  
3fffff30:  00000000 00000000 00000000 00000000  
3fffff40:  40104ab2 0035d16a 00000000 00000000  
3fffff50:  40104b6e 3ffee9a8 0035d16a 00000000  
3fffff60:  40104d40 0035d16a 3ffef074 00000000  
3fffff70:  3ffee9d0 3ffef074 3ffe850c 3ffef074  
3fffff80:  3fffdad0 3ffef190 40209c5c 3fffefb0  
3fffff90:  4020151a 00000001 00000001 4020150f  
3fffffa0:  3fffdad0 00000000 3ffef188 40203e94  
3fffffb0:  3fffdad0 00000000 3ffef188 40209ce8  
3fffffc0:  feefeffe feefeffe 3ffe850c 40100739  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

Connecting to WiFi
Connecting.......
Connected to Godz_eye
IP address: 192.168.1.217
Constructing device 1
Adding device 1
Constructing device 2
Adding device 2
Constructing device 3
Adding device 3
Constructing device 4
Adding device 4
Adding device 5
Espalexa Begin...
MAXDEVICES 10
Done
Not-Found HTTP call:
URI: /api/2WLEDHardQrI3WHYTHoMcXHgEspsM8ZZRpSKtBQr/lights
Body: 
AlexaApiCall
ok
l0
lAll

Exception (3):
epc1=0x402108d4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40240a4c depc=0x00000000

ctx: cont 
sp: 3ffff640 end: 3fffffd0 offset: 01a0

>>>stack>>>
3ffff7e0:  feefeffe 3ffff8d3 feefeffe feefeffe  
3ffff7f0:  feefeffe feefeffe feefeffe 4020f0e0  
3ffff800:  3ffff930 3ffe8308 3ffff890 4020b161  
3ffff810:  feefeffe 3ffffac0 3ffff840 feefeffe  
3ffff820:  feefeffe feefeffe feefeffe 3ffff890  
3ffff830:  4020f0e0 3ffff930 3ffffac0 4020b51c  
3ffff840:  00000000 feefeffe feefeffe feefeffe  
3ffff850:  3ffe8308 00000002 0000000a 3ffe9374  
3ffff860:  3ffff8d3 3fff0ae2 feefeffe feefeffe  
3ffff870:  feefeffe feefeffe feefeffe 3fff0b18  
3ffff880:  00000000 3ffe8308 3ffff930 4020f540  
3ffff890:  00000000 ffffffff 00000000 00000000  
3ffff8a0:  00000000 00000060 fe302073 feefeffe  
3ffff8b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8d0:  00343532 feefeffe feefeffe feefeffe  
3ffff8e0:  feefeffe feefeffe 00000000 feefeffe  
3ffff8f0:  3ffffa30 3ffffa20 00000028 00000000  
3ffff900:  3fff0b17 00000034 feefeffe feefeffe  
3ffff910:  feefeffe feefeffe feefeffe 7fffffff  
3ffff920:  40240a5c 3ffe8308 7fffffff 4020cf21  
3ffff930:  3ffffb90 feefeffe 7fffff9e ffff0208  
3ffff940:  3ffffb30 7ffffffe feefeffe feefeffe  
3ffff950:  feefeffe feefeffe feefeffe feefeffe  
3ffff960:  feefeffe feefeffe feefeffe feefeffe  
3ffff970:  feefeffe feefeffe feefeffe feefeffe  
3ffff980:  feefeffe feefeffe feefeffe feefeffe  
3ffff990:  feefeffe feefeffe feefeffe feefeffe  
3ffff9a0:  feefeffe 3ffffb30 3fff0ab4 4020cf64  
3ffff9b0:  3ffffa30 3ffffa20 00000008 401004e4  
3ffff9c0:  feefeffe feefeffe 000000e0 7fffffff  
3ffff9d0:  40240a5c 3ffffb30 3fff0ab4 40209edd  
3ffff9e0:  3ffffa30 3ffffa20 00000008 7fffffff  
3ffff9f0:  3fff032c 00000005 3ffffae4 3ffffb30  
3ffffa00:  00000001 3ffe8a10 00000001 40209f1e  
3ffffa10:  3ffffa30 3ffffa20 00000008 40209274  
3ffffa20:  feefeffe feefeffe 3ffe8a10 000000fe  
3ffffa30:  3ffffa70 3ffffad4 feefeffe 40205770  
3ffffa40:  feefeffe feefeffe 00000001 40202c07  
3ffffa50:  3ffffac0 40240a4c 3fff090c 3ffe8e08  
3ffffa60:  00000001 0d925981 00000000 40100575  
3ffffa70:  00000000 00000000 00000000 00000000  
3ffffa80:  00000000 00000000 00000000 00000000  
3ffffa90:  00000000 00000000 00000000 00000000  
3ffffaa0:  00000000 00000000 00000000 00000000  
3ffffab0:  00000000 00000000 00000000 00000000  
3ffffac0:  00000000 00000000 00000000 00000000  
3ffffad0:  00000000 00000000 00000000 00000000  
3ffffae0:  00000000 3fff090c 0000000f 00000005  
3ffffaf0:  40240a4c 000000fe 3fff090c 3ffe8e08  
3ffffb00:  3ffffd3c 3ffeefa8 3ffffb30 402090b0  
3ffffb10:  3ffffd3c 3ffeefa8 00000000 00000001  
3ffffb20:  3ffffd3c 3ffeefa8 00000000 402037d1  
3ffffb30:  7473227b 22657461 6f227b3a 663a226e  
3ffffb40:  65736c61 7262222c 323a2269 222c3435  
3ffffb50:  72656c61 223a2274 656e6f6e 6d222c22  
3ffffb60:  2265646f 6f68223a 7561656d 616d6f74  
3ffffb70:  6e6f6974 72222c22 68636165 656c6261  
3ffffb80:  72743a22 2c7d6575 70797422 223a2265  
3ffffb90:  feefeffe feefeffe feefeffe feefeffe  
3ffffba0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbb0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbc0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbd0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbe0:  feefeffe feefeffe feefeffe feefeffe  
3ffffbf0:  feefeffe feefeffe feefeffe feefeffe  
3ffffc00:  feefeffe feefeffe feefeffe feefeffe  
3ffffc10:  feefeffe feefeffe feefeffe feefeffe  
3ffffc20:  feefeffe feefeffe feefeffe feefeffe  
3ffffc30:  feefeffe feefeffe feefeffe feefeffe  
3ffffc40:  feefeffe feefeffe feefeffe feefeffe  
3ffffc50:  00000002 00000000 00000020 40100f22  
3ffffc60:  00000002 00000000 00000020 40100f22  
3ffffc70:  3ffe9712 40104304 3ffecea8 3ffef094  
3ffffc80:  00000010 00000010 00000000 40100575  
3ffffc90:  3ffef094 0000021c 0000021c 3ffef094  
3ffffca0:  00000010 00000010 00000000 3fff0638  
3ffffcb0:  00000010 3fff0a8c 3fff0a8c 402090f3  
3ffffcc0:  3ffe8a58 00000000 3fff0a8c 4020913f  
3ffffcd0:  00000000 3ffe944b 3fff0a8c 40209171  
3ffffce0:  3ffe8a58 3fff0a80 3fff0a8c 3ffef094  
3ffffcf0:  00000010 00000010 00000000 40100575  
3ffffd00:  00000040 00000040 00000000 40100575  
3ffffd10:  00000014 00000b38 00000167 3ffef190  
3ffffd20:  00000010 3ffffd90 3ffffd90 402090f3  
3ffffd30:  00000000 00000000 00000000 3ffefa4c  
3ffffd40:  0000000f 0000000d 3ffffd90 40209171  
3ffffd50:  00000000 3ffef0b8 3ffffd90 402091be  
3ffffd60:  00000001 00000000 3ffffd9c 40209274  
3ffffd70:  00000000 3ffef0b8 3ffffd90 3ffef190  
3ffffd80:  00000000 3ffef0b8 3ffeefa8 4020393b  
3ffffd90:  3fff04d4 0000000f 00000000 3fff0a24  
3ffffda0:  0000003f 00000034 00000001 00000000  
3ffffdb0:  00000000 3fff05d0 3fff058c 4020397c  
3ffffdc0:  00000000 00000000 00000000 40206f8e  
3ffffdd0:  00000000 00000000 00000000 402070b6  
3ffffde0:  00000000 00000000 00000000 00000000  
3ffffdf0:  00000000 3ffed1a0 401065f8 00002393  
3ffffe00:  3fff05d0 00000001 3fff0590 4020515c  
3ffffe10:  00292314 00000000 402064e4 0000000c  
3ffffe20:  00000000 3fff04ec 3fff058c 3ffef190  
3ffffe30:  00000001 3fff05b4 3fff058c 402072a0  
3ffffe40:  4020a450 00000000 00001388 00000001  
3ffffe50:  00000000 3fff04ec 3fff0524 40205473  
3ffffe60:  3fffdad0 00000000 3ffeefa8 40203d74  
3ffffe70:  3ffe9f90 40101fe8 3fffc200 00000022  
3ffffe80:  40000f83 00000030 00000017 ffffffff  
3ffffe90:  40104d46 00000023 00000001 00000000  
3ffffea0:  0000000d 3ffef074 000035af 00000000  
3ffffeb0:  3ffef074 3ffee9a8 3ffef074 0024eda8  
3ffffec0:  3ffef074 00000000 3ffee9d0 00000030  
3ffffed0:  3ffef074 3fffdad0 3ffef190 00000030  
3ffffee0:  3ffef074 3fffdad0 3ffef190 00000030  
3ffffef0:  ffffffff 3fffc6fc 00000001 3ffe850c  
3fffff00:  00000000 3fffdad0 3ffef190 00000030  
3fffff10:  00000000 3fffdad0 3ffef190 00000030  
3fffff20:  00000000 00000000 3ffef0b8 40208a68  
3fffff30:  00000001 3ffeefa8 3ffef0b8 40203203  
3fffff40:  40104ab2 002b4cda 00000000 4020a5c0  
3fffff50:  40104b6e 3ffee9a8 002b4cda 00000000  
3fffff60:  40104d40 002b4cda 3ffef074 00000000  
3fffff70:  3ffee9d0 3ffef074 3ffe850c 3ffef074  
3fffff80:  3fffdad0 3ffef190 40209c5c 3fffefb0  
3fffff90:  4020151a 00000001 00000001 4020150f  
3fffffa0:  3fffdad0 00000000 3ffef188 40203e94  
3fffffb0:  3fffdad0 00000000 3ffef188 40209ce8  
3fffffc0:  feefeffe feefeffe 3ffe850c 40100739  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Even when i request /espalexa page with the ip address of the esp then also esp is being restarted and the same output is showing

This is because you are getting out of memory. Happened to me once fauxmo, issue was mem in my case. I reduced the code to barebones and it worked.

This is because you are getting out of memory. Happened to me once fauxmo, issue was mem in my case. I reduced the code to barebones and it worked.

Barebones? Can you please tell me more about it and how can i reduce that? i dont know about it.

Barebones, I meant. To the most basic of what I actually need. Just remove comments, code that is not important. Rewrite logic if it can be shortened. Use progmem for your HTML page or convert it to binary (I think binary processor works too)

Responding search req...
# Responding to description.xml ... #

Send setup.xmlNot-Found HTTP call:
URI: /api/2WLEDHardQrI3WHYTHoMcXHgEspsM8ZZRpSKtBQr/lights
Body: 
AlexaApiCall
ok
l0
lAll

Exception (3):
epc1=0x402108d4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40240a4c depc=0x00000000

ctx: cont 
sp: 3ffff640 end: 3fffffd0 offset: 01a0

>>>stack>>>
3ffff7e0:  000019c4 3ffff8d3 00000014 401004e4  
3ffff7f0:  00000000 00000000 00000000 4020f0e0  
3ffff800:  3ffff930 3ffe8308 3ffff890 4020b161  
3ffff810:  3fff082c 3ffffac0 3ffff840 00000000  
3ffff820:  3ffefe54 00000000 00000000 3ffff890  
3ffff830:  4020f0e0 3ffff930 3ffffac0 4020b51c  
3ffff840:  00000000 000000f7 00000002 3fff0e3c  
3ffff850:  3ffe8308 00000002 0000000a 3ffe9374  
3ffff860:  3ffff8d3 3fff0cfa 4bc6a7f0 00000000  
3ffff870:  3ffef094 00000167 00000167 3fff0d30  
3ffff880:  00000000 3ffe8308 3ffff930 4020f540  
3ffff890:  00000000 ffffffff 00000000 00000000  
3ffff8a0:  00000000 00000060 00302073 402043ff  
3ffff8b0:  000002f7 00000000 3fff04ec 40204bb9  
3ffff8c0:  00000053 00000000 3fff04ec 40204c31  
3ffff8d0:  00343532 00000000 3fff04ec 3ffffd70  
3ffff8e0:  3ffef094 000002b5 00000000 4010020c  
3ffff8f0:  3ffffa30 3ffffa20 00000028 00000000  
3ffff900:  3fff0d2f 00000034 3ffffd70 40206f98  
3ffff910:  3ffeefa8 3ffef0b8 3ffef0b8 7fffffff  
3ffff920:  40240a5c 3ffe8308 7fffffff 4020cf21  
3ffff930:  3ffffb90 00000000 7fffff9e ffff0208  
3ffff940:  3ffffb30 7ffffffe 3fff058c 40208a04  
3ffff950:  3ffeefa8 3ffef0b8 3fff058c 40203028  
3ffff960:  6d783f3c 6576206c 6f697372 31223d6e  
3ffff970:  2022302e 723c3e3f 20746f6f 6e6c6d78  
3ffff980:  75223d73 733a6e72 6d656863 752d7361  
3ffff990:  2d706e70 3a67726f 69766564 312d6563  
3ffff9a0:  3e22302d 3ffffb30 3fff0ccc 4020cf64  
3ffff9b0:  3ffffa30 3ffffa20 00000008 401004e4  
3ffff9c0:  696d3c3e 3e726f6e 000000e0 7fffffff  
3ffff9d0:  40240a5c 3ffffb30 3fff0ccc 40209edd  
3ffff9e0:  3ffffa30 3ffffa20 00000008 7fffffff  
3ffff9f0:  3fff032c 00000005 3ffffae4 3ffffb30  
3ffffa00:  00000001 3ffe8a10 00000001 40209f1e  
3ffffa10:  3ffffa30 3ffffa20 00000008 40209274  
3ffffa20:  63733a6e 616d6568 3ffe8a10 000000fe  
3ffffa30:  3ffffa70 3ffffad4 61423a65 40205770  
3ffffa40:  642f3c31 63697665 00000001 40202c07  
3ffffa50:  3ffffac0 40240a4c 3fff0674 3ffe8e08  
3ffffa60:  00000001 0c1d6241 00000000 40100575  
3ffffa70:  00000000 00000000 00000000 00000000  
3ffffa80:  00000000 00000000 00000000 00000000  
3ffffa90:  00000000 00000000 00000000 00000000  
3ffffaa0:  00000000 00000000 00000000 00000000  
3ffffab0:  00000000 00000000 00000000 00000000  
3ffffac0:  00000000 00000000 00000000 00000000  
3ffffad0:  00000000 00000000 00000000 00000000  
3ffffae0:  00000000 3fff0674 0000000f 00000005  
3ffffaf0:  40240a4c 000000fe 3fff0674 3ffe8e08  
3ffffb00:  3ffffd3c 3ffeefa8 3ffffb30 402090b0  
3ffffb10:  3ffffd3c 3ffeefa8 00000000 00000001  
3ffffb20:  3ffffd3c 3ffeefa8 00000000 402037d1  
3ffffb30:  7473227b 22657461 6f227b3a 663a226e  
3ffffb40:  65736c61 7262222c 323a2269 222c3435  
3ffffb50:  72656c61 223a2274 656e6f6e 6d222c22  
3ffffb60:  2265646f 6f68223a 7561656d 616d6f74  
3ffffb70:  6e6f6974 72222c22 68636165 656c6261  
3ffffb80:  72743a22 2c7d6575 70797422 223a2265  
3ffffb90:  6d3c3e72 6c65646f 3e4c5255 70747468  
3ffffba0:  772f2f3a 6d2e7777 68746565 632e6575  
3ffffbb0:  2f3c6d6f 65646f6d 4c52556c 65733c3e  
3ffffbc0:  6c616972 626d754e 653e7265 62616663  
3ffffbd0:  64316363 3c343236 7265732f 4e6c6169  
3ffffbe0:  65626d75 553c3e72 753e4e44 3a646975  
3ffffbf0:  30346632 30386632 3561642d 31312d30  
3ffffc00:  392d3165 2d333262 61666365 31636362  
3ffffc10:  34323664 44552f3c 703c3e4e 65736572  
3ffffc20:  7461746e 556e6f69 693e4c52 7865646e  
3ffffc30:  6d74682e 702f3c6c 65736572 7461746e  
3ffffc40:  556e6f69 3c3e4c52 7665642f 3e656369  
3ffffc50:  6f722f3c 003e746f 3ffe9861 00000008  
3ffffc60:  4022468e 3ffece08 3ffefa8c 00000001  
3ffffc70:  4022479a 3ffece08 3ffefa8c 3ffef094  
3ffffc80:  00000010 00000010 00000000 40100575  
3ffffc90:  3ffef094 00000271 00000271 3ffef094  
3ffffca0:  00000010 00000010 00000000 3fff0638  
3ffffcb0:  00000010 3fff0c14 3fff0c14 402090f3  
3ffffcc0:  3ffe8a58 00000000 3fff0c14 4020913f  
3ffffcd0:  3ffef094 00000161 3fff0c14 40209171  
3ffffce0:  3fff0bf0 3fff0c08 3fff0c14 3ffef094  
3ffffcf0:  00000010 00000010 00000000 40100575  
3ffffd00:  00000040 00000040 00000000 40100575  
3ffffd10:  00000014 000000b0 00000016 3ffef190  
3ffffd20:  00000010 3ffffd90 3ffffd90 402090f3  
3ffffd30:  00000000 00000000 00000000 3fff050c  
3ffffd40:  0000000f 0000000d 3ffffd90 40209171  
3ffffd50:  00000000 3ffef0b8 3ffffd90 402091be  
3ffffd60:  00000001 00000000 3ffffd9c 40209274  
3ffffd70:  00000000 3ffef0b8 3ffffd90 3ffef190  
3ffffd80:  00000000 3ffef0b8 3ffeefa8 4020393b  
3ffffd90:  3ffefa4c 0000000f 00000000 3fff0c3c  
3ffffda0:  0000003f 00000034 3ffef190 00000000  
3ffffdb0:  00000000 3fff05d0 3fff058c 4020397c  
3ffffdc0:  00000000 00000000 00000000 40206f8e  
3ffffdd0:  00000000 00000000 00000000 402070b6  
3ffffde0:  00000000 00000000 00000000 00000000  
3ffffdf0:  00000000 3ffffe40 401065f8 0000dc80  
3ffffe00:  3fff05d0 00000001 3ffe850c 3fff05b4  
3ffffe10:  00000001 00000000 402064e4 0000000c  
3ffffe20:  00000000 3fff04d4 3fff058c 3ffef190  
3ffffe30:  00000001 3fff05b4 3fff058c 402072a0  
3ffffe40:  4020a450 00000000 00001388 40209d59  
3ffffe50:  00000000 3fff04d4 3fff0524 40205473  
3ffffe60:  3fffdad0 00000000 3ffeefa8 40203d74  
3ffffe70:  00000000 48435241 00002200 4000050c  
3ffffe80:  3fffc278 40101fe8 3fffc200 00000022  
3ffffe90:  3ffffea0 322e3535 313a3035 0d303039  
3ffffea0:  00000000 00000000 0000001f 40104bfd  
3ffffeb0:  4000050c 00000023 00000001 00000001  
3ffffec0:  40209cd1 00000030 0000001c ffffffff  
3ffffed0:  40100739 40100734 40209cc8 00000000  
3ffffee0:  00000000 00000000 00000000 fffffffe  
3ffffef0:  ffffffff 3fffc6fc 00000001 3ffe850c  
3fffff00:  00000000 3fffdad0 3ffef190 00000030  
3fffff10:  00000000 00000000 00000000 00000000  
3fffff20:  00000000 00000000 00000000 00000000  
3fffff30:  00000000 00000000 00000000 00000000  
3fffff40:  40104ab2 00a6d733 00000000 00000000  
3fffff50:  40104b6e 3ffee9a8 00a6d733 00000000  
3fffff60:  40104d40 00a6d897 3ffef074 00000000  
3fffff70:  3ffee9d0 3ffef074 3ffe850c 3ffef074  
3fffff80:  3fffdad0 3ffef190 40209c5c 3fffefb0  
3fffff90:  4020151a 00000001 00000001 4020150f  
3fffffa0:  3fffdad0 00000000 3ffef188 40203e94  
3fffffb0:  3fffdad0 00000000 3ffef188 40209ce8  
3fffffc0:  feefeffe feefeffe 3ffe850c 40100739  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Now i tried another sketch of espalexa then at the end something called wdt reset shows up in serial monitor and nothing will happens.

Yes, thats potential mem error.
[https://github.com/esp8266/Arduino/issues/4331#](check this) and this https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html.

Yes, thats potential mem error.
[https://github.com/esp8266/Arduino/issues/4331#](check this) and this https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html.

So this is what you have done in this sketch?

@Aircoookie I figured it out. For some reason, your library takes way longer to connect to WiFi.

Code that doesnt work

boolean initWifi()
{
  blinkFeedback();
  int retryCount = 0;

  WiFi.hostname(deviceName); // DHCP Hostname (useful for finding device for static lease)

  // Configures static IP address
  if (!WiFi.config(staticIP, gateway, subnet, dns))
  {
    sendSerialData("STA Failed to configure");
  }

  WiFi.setAutoReconnect(true);
  WiFi.persistent(true);
  WiFi.mode(WIFI_STA);
  WiFi.softAPdisconnect (true);

  sendSerialData("Connecting to ");
  sendSerialData(ssid);
  WiFi.begin(ssid, password);

  delay(500);

  while (WiFi.status() != WL_CONNECTED)
  {
    sendSerialData("Connection Failed, Reconnecting...");
    if (retryCount == 30) {
      ESP.restart();
    }
    retryCount++;
  }

  return true;
}

Code that works just by adding delay and waiting for it to actually connect
PS: If it doesn't reconnect try resetting ESP manually, it works after that.
NOTE : I do not need to do this with Fauxmo Library on 3.1.1

boolean initWifi()
{
  blinkFeedback();
  int retryCount = 0;

  WiFi.hostname(deviceName); // DHCP Hostname (useful for finding device for static lease)

  // Configures static IP address
  if (!WiFi.config(staticIP, gateway, subnet, dns))
  {
    sendSerialData("STA Failed to configure");
  }

  WiFi.setAutoReconnect(true);
  WiFi.persistent(true);
  WiFi.mode(WIFI_STA);
  WiFi.softAPdisconnect (true);

  sendSerialData("Connecting to ");
  sendSerialData(ssid);
  WiFi.begin(ssid, password);

  delay(3000);

  while (WiFi.status() != WL_CONNECTED)
  {
    sendSerialData("Connection Failed, Reconnecting...");
    delay(1000);
    if (retryCount == 30) {
      ESP.restart();
    }
    retryCount++;
  }

  return true;
}

Because you also added delay so could that solve this issue? 🤕

Yes, you could give it a try. Also add delay(1) to your loop function. If it doesn't work, let us know and show us your sketch.