I don’t use it personally, but I’ve run into it on these forums and thought it looked quite neat for your scenario.
Regarding the yaml, if that fixes your issue please take the time to mark my post with the Solution tag so that others with the same problem can find the answer immediately when searching