Code Monkey home page Code Monkey logo

homeassistant-solax-modbus's Introduction

hacs_badge

ko-fi

Octopus.Energy ๐Ÿ™ referral code. You get ยฃ50 credit for joining and I get ยฃ50 credit.

homeassistant-solax-modbus

2022.12.1 adds in support for Ginlong Solis & Sofar Solar Inverters, some aspects are still in development.

Universal Solar Inverter over Modbus RS485 / TCP custom_component for Home Assistant

Support Modbus over RS485 & TCP

(Pocket LAN / Pocket WiFi does not provide a Modbus connection in most situations, trouble shooting for Pocket WiFi will not be provided) Please check the Wiki for Compatible RS485 Adaptors

You can have multiple instances of this Integration, just change the default Prefix from SolaX to something else. Ie SolaX Main or SolaX Southwest

Supports:

Ginlong Solis

  • RHI-nK-48ES-5G Single Phase (lowercase n indicates Inverter size, ie 6kW)
  • RHI-3PnK-HVES-5G Three Phase (lowercase n indicates Inverter size, ie 10kW)
  • Unknown Models

Growatt:

Untested Models:

  • AC Battery Storage:

    • SPA
  • Hybrid:

    • SPH
    • TL-XH
  • PV Only:

    • MAC
    • MAX
    • MID
    • TL-X

Sofar Solar

  • HYDxxKTL-3P (plugin_sofar)
  • HYDxxxxES (plugin_sofar_old)
  • Unknown Models

SolaX Power

  • Gen2 Hybrid
  • Gen3 AC, Hybrid & Retrofit
  • Gen4 Hybrid
    • Qcells Q.VOLT HYB-G3-3P
  • X3 MIC / MIC PRO (Limited set of entities available)

Indepth Features

  • SolaX Gen2, Gen3 & Gen4
    • Charge / Discharge rate of battery
    • Charger Start / End times
    • Charger Use Mode
  • SolaX Gen2 & Gen3
    • Allow Grid Charge
    • Charge periods in Force Time Use Mode
    • Force Discharge into Grid
    • Min Battery Capacity
  • SolaX Gen2, Gen3 & Gen4
    • Sensors support the "Energy" Dashboard in 2021.08.x and onwards.
  • SolaX Gen3
    • ForceTime Period 1 Max Capacity
    • ForceTime Period 2 Max Capacity
  • SolaX Gen4
    • Backup Discharge Min SOC
    • Backup Nightcharge Upper SOC
    • Charge / Discharge rate of battery
    • Charge and Discharge Period2 Enable
    • Discharger Start / End time
    • Export Control User Limit
    • Feedin Discharge Min SOC
    • Feedin Nightcharge Upper SOC
    • Manual Mode Select
    • Selfuse Discharge Min SOC
    • Selfuse Night Charge Enable
    • Selfuse Nightcharge Upper SOC

Untested: Non Hybrid Models ie Solar PV only

Documentation

For further Documentation please refer to the Wiki

Some of the topics that will be covered (WIP):

  • Gen2 & Gen3 Modes of Operation
  • Gen4 Modes of Operation
  • Gen4 Connection methods

Installation

Preferred Option

You can add this custom_component directly through HACS, if you have HACS installed on your Home Assistant instance.

Alternatively

Download the zip / tar.gz from the release page.

  • Extract the contents of solax_modbus into to your home-assistant config/custom_components folder.

If you manually clone the repository you may end up mid code update!

Copy the folder and contents of solax_modbus into to your home-assistant config/custom_components folder.

Post Installation

After reboot of Home-Assistant, this integration can be configured through the integration setup UI

From 0.6.0 the Configuration is split into separate views.

TCP

Serial

Any manual updates / HACS updates require a restart of Home Assistant to take effect.

  • Any major changes might require deleting the Integration from the Integration page and adding again. If you name the Integration exactly the same including the Area if set, you should retain the same entity naming bar any name changes in the release. (Refer to the release notes for any naming change)

If the Integration fails to load with the following error in your log "unrecognized inverter type - serial number : {your_serial_number_here}" Please see Discussion #26 providing the details asked for.

Inverter never connected to the Cloud / possibly after a firmware update: (SolaX only)

  • If you can read values, but unable to adjust select / number you need to press the "Unlock Inverter" button.
  • Might need performing again following a full Power Cycle

Known Issues

  1. You can only have one connection to the inverter, so you can't use this and one of my yaml packages at the same time for writing to registers.
  2. Possible Warnings about blocking call in the event loop (in systems with serial modbus connection).
  3. Please check the Todo List under discussions for other known issues and what's being worked on.
  4. Release 0.5.9 onwards is only compatible with Home Asisstant 2022.07 onwards. For Home Assistant installation prior to 2022.07 please use Release 0.5.8
  5. If your Inverter is asleep do not start this integration / restart HA as you will get the following error "Modbus Error: [Connection] Failed to connect[Modbus" You can't establish a connection if there is nothing to connect to.
  6. If you try and reconfigure and existing Integration instance you get "Name was already used or was invalid" You need to remove the Integration from the Integration Page, restart HA and reconfigure the Integration with your new settings. If you retain the same name any dashboards will continue as normal.

homeassistant-solax-modbus's People

Contributors

wills106 avatar infradom avatar martin-klima avatar ppetru avatar zeppen avatar darkrain-nl avatar mickemartinsson 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.