This sounds like a proper way to do it. Maybe I am biased for MQTT but I like your approach.
And HA which supports autodiscovery. Such a great piece of software
And HA which supports autodiscovery. Such a great piece of software