vince <[email protected]> writes:

> I'm a little lost re: what you're doing and why it's needed.
>
> What i did was install the MQTT extension to weewx so that weewx emitted 
> MQTT data to a MQTT broker running on a pi3.  I then subscribed to the 
> readings I wanted in HA (temp/rain/wind) and added those elements to my HA 
> dashboard.  Nice and simple.  Adding 'three' MQTT subscriptions to HA was 
> trivial.  No fancy code or anything needed on either end.

@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.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/rmilfds44ts.fsf%40s1.lexort.com.

Attachment: signature.asc
Description: PGP signature

Reply via email to