A confirmation dialog can be configured in the yaml of various cards. However, I haven’t been able to do the same in a script - is it not possible?
Use case : confirmation to turn on, no confirmation to turn off. I have a water spray line which is controlled by a solenoid. To avoid it turning on unintentionally, I’ve configured a confirmation for the tap-action. However, turning off also requires confirmation.
I tried calling a script from the tap-action but script syntax doesn’t (seem to) support it. My work-around is to configure tap-action to turn off & hold-action to confirm then turn on.
Confirmation would be useful in script syntax.
BTW, would be great if confirmation configuration was available in the UI.