I have a ESP32 MH ET Live ESP32 DEVKIT board emulating 6 devices for a 6 socket board, using fauxmo. I have the latest version of fauxmo 3.4.0 and am using Arduino 1.8.19 and ESP32 V1.06 installed.
Alexa added all 6 devices and switches them on and off for approx 6 hrs to 8 hrs
After that Alexa says the device is not responding. I know the ESP 32 has not stuck in some loop as all other fuctions like using a touch pin to switch on the relay works fine.
However typically after 6 to 8 hrs alexa fails to find the device. All I need to do is to reset the device and Alexa finds it immediately (So it is a device end problem and not a alexa problem)
Any suggestions ?
Full Code attached
P.S.
If you are wondering about this piece of code :
if(flgFauxmoActivated) {
if ((millis() - tm_fauxmorestart) > 900000) { // every 15 mins stop and restart fauxmo. Being tried because fauxmo disconnects every few hours
fauxmo.enable(false);
tm_fauxmorestart = millis() ;
delay(100);
fauxmo.enable(true);
}
fauxmo.handle();
}
It was an attempt to work around the problem by trying to disable fauxmo and restart fauxmo every few minutes , hoping it would clear some buffers etc. Seemed to make it go for longer but definitely fails within 12 hrs
I have a ESP32 MH ET Live ESP32 DEVKIT board emulating 6 devices for a 6 socket board, using fauxmo. I have the latest version of fauxmo 3.4.0 and am using Arduino 1.8.19 and ESP32 V1.06 installed. Alexa added all 6 devices and switches them on and off for approx 6 hrs to 8 hrs After that Alexa says the device is not responding. I know the ESP 32 has not stuck in some loop as all other fuctions like using a touch pin to switch on the relay works fine. However typically after 6 to 8 hrs alexa fails to find the device. All I need to do is to reset the device and Alexa finds it immediately (So it is a device end problem and not a alexa problem)
Any suggestions ? Full Code attached
P.S. If you are wondering about this piece of code :
if(flgFauxmoActivated) { if ((millis() - tm_fauxmorestart) > 900000) { // every 15 mins stop and restart fauxmo. Being tried because fauxmo disconnects every few hours fauxmo.enable(false); tm_fauxmorestart = millis() ; delay(100); fauxmo.enable(true); } fauxmo.handle(); }
It was an attempt to work around the problem by trying to disable fauxmo and restart fauxmo every few minutes , hoping it would clear some buffers etc. Seemed to make it go for longer but definitely fails within 12 hrs
Alexa SpikeGuardV3.txt