What is the request?
In the Control Center widget, one can add their own quick action with a custom command, but the button has two states: on and off.
It would be useful to have an on_command and an off_command for each state. It might also be worth thinking about another property to calculate initial state; perhaps an init_command that returns either 'on' or 'off'.
Why is it useful?
It would be a great way to create custom actions. I realise state could be stored externally to get a 'toggle' functionality, but then the external state and the state of the button could be out of sync.
What is the request?
In the Control Center widget, one can add their own quick action with a custom
command, but the button has two states: on and off.It would be useful to have an
on_commandand anoff_commandfor each state. It might also be worth thinking about another property to calculate initial state; perhaps aninit_commandthat returns either 'on' or 'off'.Why is it useful?
It would be a great way to create custom actions. I realise state could be stored externally to get a 'toggle' functionality, but then the external state and the state of the button could be out of sync.