I have a ESP8266 with FauxmoESP acting as a simple switch. I can use Alexa to switch it on, and also to switch it off.
I want a single command to ask Alexa to switch it on, leave it on for 2 seconds, then switch it off. (without the need to issue an "off" command).
Alexa would then be ready to receive the same "switch on" command to perform the same result at a later date.
Is this something to configure at the Alexa end, or on the ESP.
Any advice on how to accomplish this appreciated.
Ah, solved it. I was using the "delay" function and find there is an issue with this in the Arduino IDE (see other posts/forums). I've used a "while" loop and millis() and it works fine now.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.