@robertklep Although HA Discovery[1] supports a lot of values, you are spot on about the retained message issue.
I've had to reboot kit to re-publish topics after deleting the wrong retained.
My custom-device dev needed a load of `mosquitto_pub` scripts to create and remove. At least the changes in #homeassistant are instant.
I can see why #Tasmota switched to their own all-in-one #MQTT JSON payload format [2].
[1] https://www.home-assistant.io/integrations/mqtt#mqtt-discovery