This can be done with user code on the Arduino or ESP, or with MQTT on the Raspberry Pi.
For Arduino, check out this post.
A pushbutton widget would be nice, but the functionality to turn off the momentary should always be controlled at the local level.
Cheers,
Craig