Could you post your code on Github or on here? I’d love to use this!
this is what I’ve done if it helps https://github.com/thekiwismarthome/ha-alarm-clock