I think I finally solved my one-button alarm idea! For the alarm automation you’ll need the standard date/time helper (set to just time) and a toggle - I wanted to create a card that pulled both of those functions into a single card. Tap on the card to turn on/off, long press to adjust time.
On
Off
Here’s the code for the template for the card - note I used the mushroom template card, but you can use a standard Lovelace card for this if you’re not into the mushroom card look.
Well stupid likely but brute force (better to make the hours, minutes into a time) …
Just a sample tested only with strings and not your entity. you may not need the |string if they are really strings
I hadn’t thought of using an if statement that way to check the length of the minutes string. Well played. I will test this out tonight and update the original post if I can successfully make it work.