Skip to content

intui/ha-intuihems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

163 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

intuiHEMS - Smart Battery Optimizer

English below

hacs_badge GitHub Release

Spare Stromkosten & reduziere COβ‚‚ - Dein Batteriespeicher wird automatisch zum optimalen Zeitpunkt gesteuert.

intuiHEMS ist ein Smart Battery Optimizer fΓΌr Home Assistant. Es optimiert deinen Heimspeicher anhand dynamischer Strompreise, Solarprognosen und deines Verbrauchs vollautomatisch.

✨ Das sind die Vorteile

  • πŸ’° Kosten senken: Die Batterie wird bei gΓΌnstigen Strompreisen geladen und versorgt dein Zuhause bei hohen Preisen aus dem Speicher.

  • 🌱 Mehr erneuerbare Energie nutzen: Die Batterie lΓ€dt bevorzugt, wenn viel grΓΌner Strom verfΓΌgbar ist.

  • ⚑ Netz entlasten: Lastspitzen werden vermieden, indem teurer und netzbelastender Strom nicht genutzt wird.

  • πŸ€– Kostenlos & ohne Aufwand: intuiHEMS ist kostenlos downloadbar und plant den Betrieb deines Speichers vollstΓ€ndig automatisch.

🧠 Wie intuiHEMS deinen Speicher optimiert

intuiHEMS erkennt deinen Batteriespeicher, deine PV-Anlage und den Hausverbrauch automatisch, ganz ohne aufwendige Einrichtung.

Mithilfe KI-gestΓΌtzter Prognosen berechnet das System bis zu 24 Stunden im Voraus, wie sich Stromverbrauch, Solarertrag und Strompreise entwickeln. Auf dieser Basis wird alle 15 Minuten ein optimaler Lade- und Entladeplan erstellt.

So wird dein Speicher genau dann geladen oder genutzt, wenn es wirtschaftlich und ΓΆkologisch sinnvoll ist. In deinem Home-Assistant-Dashboard siehst du jederzeit, wie viel Geld und COβ‚‚ du dadurch einsparst.

Deine Daten bleiben dabei vollstΓ€ndig in deiner Kontrolle und werden nicht an Dritte weitergegeben.

⚠️ Alpha-Version

intuiHEMS befindet sich aktuell in der Alpha-Phase. Die Kernfunktionen sind stabil, dennoch kΓΆnnen vereinzelt Bugs auftreten.

WΓ€hrend der Alpha-Phase ist das Plugin kostenlos und auf 100 Tester limitiert. Feedback aus der Community spielt dabei eine zentrale Rolle. Wenn Ihr dabei sein wollt, schreibt eine kurze Nachricht in das Diskussionsforum mit der Beschreibung eures Systems: welche Batterie, Wechselrichter, dyn. Stromtarif.

πŸ“‹ Voraussetzungen

intuiHEMS funktioniert, wenn folgende Punkte erfΓΌllt sind:

  • Home Assistant (Version 2024.4 oder neuer)
  • Batteriespeicher mit bestehender Home-Assistant-Integration
  • Energy Dashboard ist eingerichtet
  • Internetverbindung fΓΌr Prognosen & Optimierung

πŸš€ Installation

1. Über HACS installieren

HACS β†’ Integrationen β†’ β€žintuiHEMS" suchen β†’ Installieren

2. Integration hinzufΓΌgen

Einstellungen β†’ GerΓ€te & Dienste β†’ intuiHEMS

3. Fertig ✨

Dein Batteriespeicher wird jetzt automatisch optimiert.


Hinweis: Systeme die nicht automatisch erkannt werden, kΓΆnnen manuell angebunden werden.

Mit ❀️ für die Home Assistant Community

intuiHEMS - Smart Battery Optimizer

hacs_badge GitHub Release

Save money. Save the planet. Automatically optimize your home battery to use cheap renewable energy and reduce grid strain.

🌍 Why intuiHEMS?

Climate change demands smarter energy use. intuiHEMS helps you:

  • πŸ’° Save money - Charge when electricity is cheap, use when it's expensive
  • 🌱 Use renewable energy - Maximize solar self-consumption, charge from grid when renewables are abundant
  • ⚑ Support the grid - Reduce peak demand, enable virtual power plants
  • πŸ€– Zero effort - AI does the thinking, you save automatically

✨ Key Features

  • Zero-config setup - Auto-detects your battery, solar panels, and house load
  • Smart device learning - Knows how to control FoxESS, Solis, Huawei, SolarEdge, Growatt (and learns new ones!)
  • AI-powered - Forecasts your consumption, solar production, and electricity prices
  • Free alpha - No cost during testing phase
  • Privacy-first - Your data stays yours

πŸš€ Quick Start

  1. Install via HACS

    • HACS β†’ Integrations β†’ Explore & Download Repositories
    • Search "intuiHEMS"
    • Install & Restart
  2. Add Integration

    • Settings β†’ Devices & Services β†’ Add Integration
    • Search "intuiHEMS"
    • Click through setup - we auto-detect everything!
  3. Done! ✨

    • Your battery is now optimized 24/7
    • Check savings in your dashboard

πŸ“‹ Requirements

  • Home Assistant 2024.4.0+
  • Home battery system (any brand with HA integration)
  • Energy Dashboard configured
  • Internet connection

🎯 What Gets Optimized?

Before intuiHEMS:

  • Battery charges randomly
  • You buy expensive peak electricity
  • Excess solar is wasted or sold cheap

With intuiHEMS:

  • Battery charges when electricity is cheap (or solar surplus)
  • Battery powers your home during expensive hours
  • Solar is used optimally
  • Result: 20-40% lower electricity bills πŸ’°

🧠 How It Works

  1. Every 15 minutes: Reads your battery level, house consumption, solar production
  2. AI forecasts: Predicts next 24 hours of consumption, solar, and prices
  3. Optimization: Calculates the perfect battery schedule
  4. Execution: Tells your battery when to charge/discharge

All the heavy AI computation happens in the cloud - works on any Home Assistant device!

🎬 Supported Devices

Auto-detected (zero config):

  • FoxESS (H1, H3 series)
  • Solis
  • Huawei
  • SolarEdge
  • Growatt

Learning system:

  • Don't see your brand? No problem!
  • Configure it once manually
  • We learn and help future users automatically

⚠️ Alpha Status

Current Version: 2025.11.9.1

This is an alpha release. What this means:

  • βœ… Core features work great
  • βœ… Actively developed and improved
  • ⚠️ Free during alpha (normally €5/month planned)
  • ⚠️ May have bugs - please report!
  • πŸ“Š Limited to 100 alpha testers

Your feedback shapes the product!

πŸ“Š What You Get

  • Daily savings estimate - See how much you're saving
  • Next action explanation - Understand what your battery will do and why
  • Optimization control - Enable/disable anytime
  • Forecasts - See predicted consumption, solar, and prices

Alpha Testing Program

What to Expect

Status: Alpha (v0.1.0)

  • βœ… Core functionality working
  • βœ… Automated registration and setup
  • ⚠️ Limited to 100 alpha testers
  • ⚠️ May have bugs - please report!

How to Report Issues

  1. Check existing GitHub Issues
  2. Create new issue with:
    • Home Assistant version
    • Integration version
    • Battery/inverter model
    • Detailed description of problem
    • Relevant logs from Settings β†’ System β†’ Logs

Alpha User Limit

The cloud service currently supports 100 alpha users. To check availability:

curl https://api.intuihems.io/api/v1/auth/status

Response:

{
  "status": "accepting_users",
  "current_users": 45,
  "max_users": 100,
  "alpha_phase": true
}

Privacy & GDPR

Data Collection

intuiHEMS collects:

  • Battery state of charge (every 15 minutes)
  • House energy consumption
  • Solar power production
  • Battery control actions executed
  • Electricity prices (from Tibber or EPEX Spot)

Data Usage

Your data is used for:

  • MPC optimization (battery charge/discharge planning)
  • ML forecasting (consumption and solar prediction)
  • Historical analytics and savings calculation

Your Rights (GDPR)

Right How to Exercise
Access (Article 15) Settings β†’ intuiHEMS β†’ Export Data
Rectification (Article 16) Settings β†’ intuiHEMS β†’ Update Configuration
Erasure (Article 17) Settings β†’ intuiHEMS β†’ Delete Account
Data Portability (Article 20) Settings β†’ intuiHEMS β†’ Export Data (JSON)

Data is never shared with third parties. Data retention: 30 days (configurable).

Privacy Policy

Full privacy policy: https://api.intuihems.io/api/v1/gdpr/privacy

πŸ†˜ Need Help?

Technical Details

Architecture

  • Cloud Service: FastAPI (Python), TimescaleDB, Docker
  • MPC Solver: CVXPY with OSQP backend
  • Forecasting: Scikit-learn (historical average + weather-enhanced hybrid)
  • Pricing: Tibber API or ENTSO-E EPEX Spot
  • Communication: HTTPS REST API (pull-based control)

Update Frequency

Task Frequency
Sensor data upload Every 15 minutes
Price fetching Every hour
Consumption/solar forecasts Every 2 hours
MPC optimization Every 15 minutes
Control plan fetch Daily at 00:05
Control execution :00, :15, :30, :45 minutes

Data Storage

  • Local: Configuration only (API key, entity IDs)
  • Cloud: Sensor readings (30 days), forecasts, MPC results

Development

Local Development

# Clone repository
git clone https://github.com/intui/intuiHEMS.git
cd intuiHEMS

# Create development environment
python3 -m venv venv
source venv/bin/activate
pip install -e .

# Run tests
pytest tests/

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create feature branch
  3. Add tests
  4. Submit pull request

See CONTRIBUTING.md for details.

Roadmap

v0.2.0 (Beta)

  • Increased user limit (1,000 users)
  • Advanced ML forecasting (weather integration)
  • Multi-battery support
  • Email notifications

v1.0.0 (Stable)

  • Local compute mode (optional offline operation)
  • Fleet optimization (cross-user insights)
  • Mobile app
  • Subscription plans

v2.0.0 (Future)

  • Energy community trading
  • Vehicle-to-Grid (V2G) support
  • Commercial deployment features

Support the Project

intuiHEMS is free during alpha testing. If it saves you money, please consider donating to support development:

Suggested donation: 20% of monthly electricity savings

License

This project is licensed under the BSD-3-Clause License - see LICENSE file for details.

Acknowledgments

  • Based on research by TNO (Netherlands Organization for Applied Scientific Research)
  • Built with Neuromancer framework (PNNL)
  • Inspired by Model Predictive Control research in building energy management

Links


Made with ❀️ for the Home Assistant community

About

intuiHEMS Home Assistant Integration - Intelligent battery optimization using Model Predictive Control

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages