Add Solar Generation to WeeWX

129 views
Skip to first unread message

gary....@gmail.com

unread,
Mar 12, 2026, 10:08:44 AM (10 days ago) Mar 12
to weewx-user
I have solar, no storage, and would like to see the solar generation data in WeeWX.
The install uses Envoy for metering and I have the data going into Home Assistant via their API. I have some other sensors attached to HA and have those feeding CO2 and PM 2.5 to weewx via MQTT currently.

 Primarily, out of the 20+ data points, I'd only like to display current solar production, current consumption, current net consumption (utility - solar).

I don't really see a need to store the data.
Should I extend the schema, add a solar database, or repurpose unused existing database fields?

Thanks for any ideas

steepleian

unread,
Mar 12, 2026, 11:28:42 AM (10 days ago) Mar 12
to weewx...@googlegroups.com, weewx-user
I have done something very similar to this by using SolarAssistant which polls my inverter every 5sec. SolarAssistant has a built-in broker which I subscribe to and inject the data into my WeeWX loop stream. From there I can display the live data on my WeeWX dashboard also archive to the database. From there Cheetah is generating a json data series to display  charts and an energy dashboard. It looks like you almost there as you are already receiving air quality data from HomeAssistant via MQTT.

You can see this happening on the link below.

--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/ade17b58-0807-4a90-ae95-d20a44ab9e01n%40googlegroups.com.

Jimi Lawson

unread,
Mar 12, 2026, 12:00:47 PM (10 days ago) Mar 12
to weewx-user
steepleian
Your link loads an incomplete page on both Chrome & Firefox Screenshot 2026-03-12 155947.png

Ian Millard

unread,
Mar 12, 2026, 3:19:55 PM (10 days ago) Mar 12
to weewx...@googlegroups.com
Very strange, it loads fine and complete for me on any browser. Whereabouts are you viewing from?

On 12 Mar 2026, at 16:00, Jimi Lawson <jimi....@gmail.com> wrote:

steepleian
Your link loads an incomplete page on both Chrome & Firefox <Screenshot 2026-03-12 155947.png>

Jimi Lawson

unread,
Mar 12, 2026, 5:33:19 PM (10 days ago) Mar 12
to weewx-user
@steepleian
Very odd, just checked and it's loading OK now. I'm in the Kingdom of Fife, must have been a glitch in the matrix 😉

gary....@gmail.com

unread,
Mar 14, 2026, 6:04:23 PM (8 days ago) Mar 14
to weewx-user
I see, Did you extend the database or something else?

SolarAssistant doesn't look like it's compatible with my Envoy setup.

steepleian

unread,
Mar 14, 2026, 7:02:03 PM (8 days ago) Mar 14
to weewx...@googlegroups.com, weewx-user
I created a separate database as I have many customisations but I could have alternatively extended the default database.
 
Sometime ago I came across a WeeWX service extension which read data from HomeAssistant which I adapted to read solar data. I no longer use it but I will look back to see if I still have it in my collection of useful bits and pieces.

On 14 Mar 2026, at 22:04, gary....@gmail.com <gary....@gmail.com> wrote:



gary....@gmail.com

unread,
Mar 15, 2026, 2:57:19 PM (7 days ago) Mar 15
to weewx-user
Cool, sounds good if you can find it. However the HA>MQTT>WeeWX method is ok and I just wanted to see if I should extend the database. For me, it sounds like for the few data points I want to display, no need for anything more.
Reply all
Reply to author
Forward
0 new messages