Action widget - purpose?

Can anyone explain to me what the Action widget is used for, or what it does?

One of the uses would be to trigger an action or a scene, like “turn off all lights”.

So something like a button then? Instead of a switch?
Ok … gives me something to think about, thanks.