Update switch status within Alexa from IoT Cloud status?

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.

  1. Is there a better way to have momentary switch functionality?
  2. 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?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.