Python Plugin : Solar Prediction

Python and python framework

Moderator: leecollings

Post Reply
User avatar
JayDotR
Posts: 45
Joined: Thursday 02 January 2025 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Lux
Contact:

Python Plugin : Solar Prediction

Post by JayDotR »

Hi everyone,

I've developed a new plugin for Domoticz that retrieves photovoltaic (PV) production forecasts from Forecast.Solar and makes them available as devices in Domoticz.

The goal is to make solar production forecasts easy to integrate into your home automation, energy monitoring and automation scripts.

Features
  • []Remaining Today – Forecast energy production from the current time until midnight.
    []Tomorrow Forecast – Estimated total PV production for the next calendar day.
    []Next Hour Forecast – Estimated PV production for the next complete clock-hour interval.
    []Status – Displays the last update status.
    []Automatic device creation.
    []Configurable through a .env file.
  • Energy forecasts reported in kWh.
New in v0.0.3

The latest release introduces the Next Hour Forecast sensor.

For example, at 17:44, the forecast covers 18:00–19:00 rather than a rolling 60-minute period.

This can be useful for automations that depend on expected solar production during the next hour.

Example Use Cases
  • []Optimize EV charging based on expected solar production.
    []Schedule appliances when sufficient PV energy is expected.
    []Improve energy management using today's remaining and tomorrow's forecast.
    []Use forecast values in Domoticz scripts and other automations.
Installation and Download

GitHub repository:
https://github.com/janreimen/Domoticz-SolarForecast

Please check the repository README for installation and configuration instructions.

Feedback and Contributions

The plugin is under active development, and feedback is welcome!

If you encounter a problem, please open an issue on GitHub and include the relevant Domoticz logs, with any personal information or API credentials removed.

Suggestions, bug reports and contributions are appreciated.

Happy automating! ☀️
--
Domoticz Beta on raspberry3b, and raspberry4(b) on Rasbian Trixie / Python 3.13 / 64 bit
Using: PiHole, SolarEdge Modbus, Sainlogic / Weather Underground, MQTT, Fritzbox, P1 Meter(s), dzvents Scripting
https://www.github.com/janreimen/
User avatar
imautohuttraeger
Posts: 407
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Python Plugin : Solar Prediction

Post by imautohuttraeger »

Great stuff! I will test it maybe this weekend. One question: How to proceed with different PANEL_AZIMUTH? I can only refer to the information in the readme file, so it seems to exist just one PANEL_AZIMUTH - right?

22 panels south
5 panels east
5 panels west

Maybe pragmatically type in just e.g. 29 panels instead of 32, all orientated south?
Stop, look and listen.
User avatar
JayDotR
Posts: 45
Joined: Thursday 02 January 2025 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Lux
Contact:

Re: Python Plugin : Solar Prediction

Post by JayDotR »

Good point, could you open a feature request issue..

As this seems doable with the plugin ;)
--
Domoticz Beta on raspberry3b, and raspberry4(b) on Rasbian Trixie / Python 3.13 / 64 bit
Using: PiHole, SolarEdge Modbus, Sainlogic / Weather Underground, MQTT, Fritzbox, P1 Meter(s), dzvents Scripting
https://www.github.com/janreimen/
User avatar
imautohuttraeger
Posts: 407
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Python Plugin : Solar Prediction

Post by imautohuttraeger »

JayDotR wrote: Thursday 15 October 2026 6:03 Good point, could you open a feature request issue..

As this seems doable with the plugin ;)
Done:
https://github.com/janreimen/Domoticz-S ... 5860606314
Stop, look and listen.
Post Reply