I have a Tuya scene button integrated with localtuya. The button uses an enum list of “Single click”, “Double click” and “Long press”. It is a wifi button so it goes “unavailable” 5 seconds after the button is pressed.
Once it’s triggered on “Single click” you can’t trigger it again because it remains the same value. That’s ok (but not great) because it goes to “unavailable” after 5 seconds, and now I can trigger again. But reloading the integration somehow always wakes the button and causes the automation to trigger. I’m not certain the button is actually waking up, but nevertheless, it triggers.
I need to find some condition to test that the trigger came from a physical press of the button, and no any other way such as an integration reload or HA restart.
Are there any solutions?
4 posts - 3 participants