Switch control from toggle to button “Activate”?

Why create a switch?

Add “script.clear_log_ha” to your front end and it will appear with an “Active” button in blue text. If you click it the script runs.

If you are wanting to call this function in a automation, you can just call the script.

2 Likes