GithubHelp home page GithubHelp logo

arest / ha-zcsazzurro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aturri/ha-zcsazzurro

0.0 0.0 0.0 81 KB

A modern integration for ZCS Azzurro devices in Home Assistant

License: MIT License

Shell 4.68% Python 93.90% Makefile 1.42%

ha-zcsazzurro's Introduction

ZCS Azzurro hacs_badge Validate with hassfest Maintenance ZCSAzzurro_downloads ZCSAzzurro_downloads

ZCS Azzurro Integration for Home Assistant

All supported ZCS Azzurro inverters / energy meters will show a status sensor and sensors represnting generating power/energy. According to device types and installation, there are some other sensors representing the power/energy consuming, auto-consuming, charging, discharging, importing, exporting, as well as batteries charge status. Note that these sensors are disabled by default, they need to be manually enabled on device page.

This integration lets you configure an authentication to ZCS Azzurro portal and then you can add inverters through integration page on frontend.

Installation

Make sure you have the asked ZCS Azzurro credentials to use this integration. Contact their support and they will give you a client code and an auth key. If you have an existing integration with the name "zcsazzurro" you are recommended to remove it before attemping to install this one.

Preferred download method

  • Use HACS, search for ZCS Azzurro integration and download it.
  • Restart Home Assistant

Manual download method

  • Copy all files from custom_components/zcsazzurro in this repo to your config custom_components/zcsazzurro
  • Restart Home Assistant

Setup

First thing you have to do is to specify in your configuration.yaml file the credentials that are required for this integration:

zcsazzurro:
  auth_key: xxx
  client_code: xxx

After modifying this, restart Home Assistant and go to Integrations > Add Integration and select ZCS Azzurro. Sometimes you must refresh the browser cache to find the integration.

Pick serial number of your inverter / energy meter and insert it to complete the config flow: a new device with serial number inserted will appear. Add a new ZCS Azzurro config entry for each device you want to add.

Development

There are many ways to setup a development environment.

Dev Container

The recommended option is to use the VS Code Dev Container. You need to have Docker installed.

  1. For best performance, clone the repo in a named volume.

  2. Open a new, empty window in VS Code.

  3. Press Cmd+Shift+P and select Dev Containers: Clone Respository in Named Container Volume

  4. Fill in your repo and your chosen names at the prompts

  5. Wait for the container to be built

  6. You can customize config/configuration.yaml by adding your credentials, as required before adding the integration

  7. Press Cmd+Shift+P and select Tasks: Run Task > Run Home Assistant on port 9123.

  8. Wait for Home Assistant to start and go to http://localhost:9123/.

  9. Walk through the Home Assistant first-launch UI.

  10. Go to http://localhost:9123/config/integrations, click Add Integration and add the ZCS Azzurro integration.

  11. To debug, press F5 to attach to the Home Assistant running in the container.

  12. Your configuration.yaml will be persistent (survives rebuild of container).

Without a Dev Container

Alternatively, you can run Home Assistant directly on your machine/WSL2. The following procedure works fine in the hands of the maintainer developing with VS Code on WSL2/Windows.

  • Make sure you have at least python3.11 installed on your WSL.
  • Create a fork on github
$ git clone https://github.com/{your_user}/ha-zcsazzurro
$ cd ha-zcsazzurro
$ make install_dev

Home Assistant has defined a code style. Run make lint before pushing your changes to align with the peferred style.

There are many ways to test the integration, three examples are:

  • run Home Assistant in the development container as described above

  • copy all files in custom_comonents/ha-zcsazzurro to custom_components/ha-zcsazzurro in your HA configuration directory

  • mount custom_components/ha-zcsazzurro into a HA development container

Debugging and filing issues

If you find bugs or other issues please download diagnostic information from the ZCS Azzurro integration card or from the device page and attach the file to your issue report.

Disclaimer

The package and its author are not affiliated with ZCS Azzurro. Use at your own risk.

License

The package is released under the MIT license.

ha-zcsazzurro's People

Contributors

aturri avatar dependabot[bot] avatar thundo avatar cbuschbeck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.