I have an ESP8266 connected and setup with 3 switches (ON, STOP & DOWN), that use the 'onChange' trigger. But I only want a momentary switch function, as it doesn't care what the current state is and will always trigger a HIGH signal. So have it write HIGH, delay and then write LOW.
Within IoT Cloud it appears to only registers the initial trigger event, so will be set to TRUE, when it's in fact been set to LOW within the void loop, and should be set to FALSE.
- Is there a better way to have momentary switch functionality?
- How do I get it to update Alexa with the correct current state of the 'button'?
How do I write back to the IoT variable to always set it to "FALSE" after a button press/trigger?