@rest of people: This message is not going to make sense if you don't
understand Home Assistant.
My impression of the goal is to support "mqtt discovery". Basically a
device posts a json dictionary to a config topic, and HA operates on
that data and adds sensors.
https://www.home-assistant.io/docs/mqtt/discovery/
and see "Sensors with multiple values". So the mqtt extension, which
perhaps has knowledge of all the items in the aggregate, would post to N
config topics, one for each item and then all the sensors would just
appear.
I post an aggregate message every archive interval, and I have 12
sensors configured from the large json dictionary that is published. I
ignore a bunch.
Obviously, if added, this facility should be optional in the weewx mqtt
extension. Some people, me included, don't want my sensor list spammed
with stuff they don't care about. I don't mind actual weather data, but
extraTemp4 when I don't have a sensor I defintely don't want. So
probably the extension needs to have some explicit config. This ends up
being a win if the programmatic config saves people time on average.
A comment I sent privately was that I want humiidty units to be "H%"
rather than "%", because when I look at graphs (in HA still) I want to
see humidities graphed together, and battery levels graphed together,
not all on one graph. (I even use V for line voltages, aV for
1.5V-nominal, bbV for 2 x 12V lead acid nominal, etc. Yes, I know I'm
unusual.)
All that said, I can completey see your point that you prefer to just
add a few sensors manually with template sensors.