There are at least two community members who’ve already created thermostat controls by using virtual dimmers. That way you can set the dimmer to a particular percentage setting. And some using modes for their favorite set points. You should be able to find discussion of their projects in the forums.
@DarcRanger has been working on one for a month or two:
I think your way sounds fine, too. It just depends on what feels more natural to you.