Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chrisbergeron/solar-assistant-scripts

Open more actions menu

Repository files navigation

solar-assistant-scripts

Tags: solar, eg4, flexboss, 6000xp, gridboss

About

I have a smart energy system that powers my home. It combines Solar, Batteries, Gas Generator and Grid to provide practical and affordable electricity. Occassionally, I have excess power and I created some scripts that help use that energy effectively. Some examples:

  • When the batteries are at 95% state of charge AND solar production is greater than 3,500 Watts (3.5kW), turn on the Tesla powerwall and charge the car (Tesla Model S).

  • When the Tempest weather station forecasts a rainy or very cloudy day, prioritize charging the batteries.

  • Turn on ceiling fans in the house when there is excess solar production. My primary ceiling fan is RF based. Instead of trying to determine the 433.24 signals, I used MITMproxy to determine how the APP controls them.

Installation

python3 -m venv cb
source cb/bin/activate
pip3 install -r requirements.txt

Create a file named .env:

MQTT_HOST = "192.168.123.22"
MQTT_PORT = 1883
MQTT_USER = "cbergeron"
MQTT_PASS = "somepass"

Usage

sa_event.py

Event triggered. Watches an MQTT topic and performs an action (or more) when conditions isare met.

sa_poller.py

Polls SA metrics periodically. When condition is seen, take actions.

Resources

https://chatgpt.com/c/68439412-f870-8001-b054-2b994171424e

upnote://x-callback-url/openNote?noteId=b4e93b6c-cde9-4844-8c38-2b3cd40d1946

b4e93b6c-cde9-4844-8c38-2b3cd40d1946

About

Automation scripts for EG4 Flexboss and Gridboss inverters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.