jeeshofone / ha-apc-ecu-3

Get homeassistant to read APC ECU-3 data
https://www.123cloud.st/p/the-unexpectedly-direct-path-to-building
5 stars 1 forks source link
ha homeassistant homeassistant-integration

Home Assistant APC ECU-3 Data Reader

This custom component for Home Assistant fetches data from an APC ECU-3 or ECU-4 device and integrates it into your Home Assistant instance. It's currently a work in progress, but functional. You can find more information in this blog post.

Requirements

Setup

Creating a Virtual Python Environment on your Laptop/Desktop

  1. Clone the Repository:

    git clone https://github.com/jeeshofone/ha-apc-ecu-3.git
  2. Install virtualenv:

    pip install virtualenv
  3. Create a new virtual environment:

    virtualenv venv
  4. Activate the virtual environment:

    • On Windows:
      .\venv\Scripts\activate
    • On Unix or MacOS:
      source venv/bin/activate
  5. Install necessary dependencies:

    Then install the dependencies:

    pip install -r requirements.txt

Script Preparation

Fetch and Save Power Data to create a template

Generate Home Assistant Configuration

Integration into Home Assistant

Usage

Once everything is set up, you will have the solar panel data from your APC ECU device available as sensor entities in Home Assistant. You can use these entities in your automations, dashboards, or any other feature within Home Assistant.

You will need to restart HomeAssistant for it to take in any new configuration changes.

The sensor names are based on the inverter IDs and are automatically generated by the script.

Support and Contribution

This project is still under development, and your contributions are very welcome. If you encounter any issues or have suggestions, please open an issue on GitHub. If you can improve the code or add a feature, feel free to fork the repository and create a pull request.