MIT License

项目介绍

ohAnd/EOS_connect 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 62 个 Star、19 次 Fork。

仓库全名
ohAnd/EOS_connect
开源许可证
MIT License
Star 数
62
Fork 数
19
未关闭 Issue
26

README 摘要

EOS Connect For full documentation, guides, and configuration details, visit: https://ohAnd.github.io/EOSconnect/ Overview EOS Connect is a comprehensive energy management and optimization platform. While it remains a flexible orchestration layer between your hardware and various optimization engines, it has evolved from a pure "data gateway" into a full-featured, self-contained optimization solution. EOS Connect…

完整内容见 GitHub 原始 README 或本页 。

常见问题

EOS_connect 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 62 个 Star。

EOS_connect 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 EOS_connect 的源码?

可以直接克隆仓库:git clone https://github.com/ohAnd/EOS_connect.git,默认分支为 main;安装与运行步骤见仓库 README。

EOS_connect 最近还在维护吗?

仓库最近一次更新为 13 小时前,当前有 26 个未关闭 Issue;Star 数为 62,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

EOS Connect is a tool designed to easily collect the needed data for optimize energy usage by interacting with the EOS system or evopt. And will be used as controller for a PV / Battery System and integrates the state of evcc. It displays the results dynamically on a webpage and serve the possibilty to manually override.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
107
价值分
42
活跃状态
活跃

语言占比

CSS
Dockerfile
HTML
JavaScript
Python

README

EOS Connect Logo

EOS Connect

For full documentation, guides, and configuration details, visit: https://ohAnd.github.io/EOS_connect/


Overview

EOS Connect is a comprehensive energy management and optimization platform. While it remains a flexible orchestration layer between your hardware and various optimization engines, it has evolved from a pure “data gateway” into a full-featured, self-contained optimization solution.

EOS Connect now ships with a built-in MILP optimizer (local_evopt) — providing a complete, high-performance energy management system out of the box. For specialized needs, it maintains its open nature by allowing connections to external backends:

EOS Connect fetches real-time and forecast data (solar, prices), runs the integrated optimization (or delegates it), and automatically controls your devices to maximize self-consumption and minimize grid costs.


Key Features

  • All-in-One Optimization Solution: No external servers required for standard energy optimization.
  • Privacy & Reliability: With local_evopt, all calculations happen on your device, ensuring faster response times and no dependency on external network reachability.
  • Automated Energy Management: Uses real-time and forecast data into a cohesive control strategy to maximize self-consumption.
  • Battery and Inverter Management: Precise charge/discharge control, grid/PV modes, and manufacturer-validated dynamic charging curves.
  • Integration with Smart Home Platforms: Home Assistant (MQTT auto discovery, native inverter control via service calls), OpenHAB, EVCC, and REST APIs.
  • Dynamic Web Dashboard: Live monitoring, manual overrides, and visualization of the optimization process.
  • Cost Optimization: Automatic alignment with dynamic electricity prices (Tibber, smartenergy.at, EVCC, timeseries, etc.) with configurable resolution. Learn more →
  • Dynamic Feed-In Pricing: Optimize battery discharge for maximum profit when export prices are favorable. Switch feed-in sources live without restart via hot reload. Supports fixed, Elpris DK, EPEX Spot, and EVCC. Learn more →
  • Smart Price Prediction: Learned grid fees and taxes for accurate planning even when future prices aren’t yet available. Learn more →
  • Dynamic PV Override: Intelligent discharge prevention during high solar production or intermittent clouds. Learn more →

How It Works

EOS Connect acts as the central brain of your energy system:

  1. Data Collection: Periodically collects local consumption, battery states, and inverter data.
  2. Forecasting: Fetches PV solar forecasts and upcoming energy prices for the next 48 hours.
  3. Internal Optimization: The built-in optimizer processes this data locally to generate the most cost-efficient power strategy.
  4. Active Control: Applies targeted commands to your devices (inverters, batteries, wallboxes) based on the calculated strategy.

All scheduling, logic, and interface management is handled by EOS Connect, providing a unified and reliable energy management experience.

EOS Connect process flow
Figure: EOS Connect process flow

Supported data sources and integrations:

  • Home Assistant: MQTT publishing (dashboard, control, auto-discovery) and direct API integration for sensor/entity data collection.
  • OpenHAB: MQTT publishing (dashboard, control, auto-discovery via MQTT binding) and direct API integration for item data collection.
  • EVCC: Monitors and controls EV charging modes and states.
  • Inverter Interfaces: Victron MultiPlus (3-phase ESS via Modbus/TCP), Fronius GEN24 (with automatic firmware detection), legacy fallback, generic Home Assistant inverter control (e.g., Marstek, Sungrow, Goodwe), and more via MQTT/web API/EVCC external inverter control.

Quick Start

  1. Requirements:

    • Home Assistant (latest version recommended)
    • EOS or EVopt server (can be installed as part of the setup; see below)
  2. Install EOS Connect Add-on:

    • Add the ohAnd/ha_addons repository to your Home Assistant add-on store.
    • Install the EOS Connect add-on from the store.
    • The built-in optimizer (local_evopt) works out of the box — no additional add-ons required.
  3. (Optional) External optimization backend:

  4. Configure:

    • On first start, a Setup Wizard guides you through initial configuration via the web UI.
    • All settings are managed through the EOS Connect web interface — no manual editing of config files required.
    • The HA addon only handles bootstrap settings (web port, timezone, log level). All other configuration is stored in EOS Connect’s built-in database.
    • See the user-guide/configuration for full details.
  5. Start & Access:

    • Start the EOS Connect add-on from the Home Assistant UI.
    • Open http://homeassistant.local:8081 (or your HA IP) to view the dashboard.
EOS Connect dashboard screenshot
Figure: EOS Connect dashboard

Note for Proxmox / VM Users: If the add-on crashes with a Segmentation Fault on startup, your VM might be using a generic CPU type.

  • Go to your VM Settings > Hardware > Processor.
  • Change Type from kvm64 (default) to host.
  • Restart the VM.

This allows the add-on to correctly see and use your physical CPU’s instructions.

Note for Proxmox / local_evopt Users: If local_evopt fails with “CBC file not found” in Proxmox, force a full container rebuild:

docker rmi ghcr.io/ohand/ha-addon-eos_connect_develop_amd64:VERSION
# Then restart the addon from Home Assistant UI to pull and rebuild

Cached images may use system Python instead of the venv.

Note on SSL Certificate Verification: By default, EOS Connect validates SSL certificates when connecting to Home Assistant or OpenHAB. If you use a setup with self-signed or private CA certificates, you can disable verification in Settings → Data Source → SSL Ignore (expert level, requires restart). Only enable this in trusted private networks where you fully control the network path. Currently, EOS Connect does not support supplying custom root CA certificates — this feature is planned for future releases. For production setups, we recommend obtaining a valid certificate through Let’s Encrypt (free) or your organization’s certificate authority.


Other Installation Options:

  • Docker, manual, and advanced setups are supported. See the docs for details.

Configuration

EOS Connect uses a web-based configuration system. All settings are managed through the built-in web UI at http://localhost:8081.

First Start (Setup Wizard)

On first launch, a Setup Wizard guides you through the essential configuration steps in optimal order:

  1. Optimizer — Select your optimization backend (built-in Local EVopt, EOS Server, or external EVopt)
  2. EVCC (Optional) — Configure if you want to use EVCC for PV forecasts, inverter control gateway, or car charging dependent control. Can be skipped if not using EVCC.
  3. Inverter — Select your inverter type for battery control (display-only if not using hardware control). Can use EVCC as controller if configured in step 2.
  4. Data Source — Connect to Home Assistant, OpenHAB, or use default sensors
  5. Battery — Set capacity and SOC limits
  6. Load — Connect your load sensor
  7. Price — Choose your electricity pricing provider
  8. PV Installations — Configure your solar forecast provider and PV systems (location-based sources only)

After the wizard completes, restart EOS Connect to apply the settings.

Note:

  • EVCC configuration must come before Inverter so you can select EVCC as your inverter controller type. If EVCC URL is not configured, the option will be greyed out in both the Inverter and PV Source selection fields.
  • PV Installations configuration is only required for location-based forecast sources (Akkudoktor, OpenMeteo, Forecast.Solar). Other sources (Default, Solcast, Victron, EVCC, Timeseries) configure their data elsewhere and do not need PV Installations defined.

Bootstrap Config (config.yaml)

Only 3 infrastructure settings live in config.yaml — everything else is stored in the database and managed via the web UI:

# config.yaml — bootstrap settings only
eos_connect_web_port: 8081  # Web server port
time_zone: Europe/Berlin    # System time zone
log_level: info             # Log level: debug, info, warning, error

Upgrading from an older version? On first start, EOS Connect automatically migrates your existing config.yaml settings into the database. After migration, you can reduce config.yaml to just the bootstrap keys above.

Changing Configuration

  • Open http://localhost:8081 and click the gear icon to access the configuration page
  • Changes marked as “hot-reloadable” (e.g., feed-in price, SOC limits) take effect immediately
  • Other changes require a restart (the UI shows which fields need restart)

Troubleshooting & Advanced Configuration

For troubleshooting and advanced configuration, see the docs.


Support & Sponsoring

If you find this project useful and would like to support its development, please consider sponsoring: https://github.com/sponsors/ohAnd

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

评论

暂无评论