Go to file
Stephan Joubert 7143061cf6 Modify the invalidation mechanism to make it more flexibile 2022-12-13 11:51:35 +02:00
.github/workflows Create hacs.yml 2022-01-19 11:26:37 +02:00
custom_components/solarman Modify the invalidation mechanism to make it more flexibile 2022-12-13 11:51:35 +02:00
.gitignore Modify the invalidation mechanism to make it more flexibile 2022-12-13 11:51:35 +02:00
LICENSE Initial commit 2021-11-14 12:52:27 +02:00
README.md Modify the invalidation mechanism to make it more flexibile 2022-12-13 11:51:35 +02:00
component_status.png Updated documentation 2022-02-06 14:55:47 +02:00
custom_components.json Replace all instances of Sunsynk with Solarman 2022-04-04 01:11:38 +01:00
customization.md Modify the invalidation mechanism to make it more flexibile 2022-12-13 11:51:35 +02:00
energy.md Add battery parameters for the DEYE Hybrid inverter, and update documentation 2022-02-27 18:19:17 +02:00
energy.png Documentation update 2022-01-12 17:19:58 +02:00
energy_config.png Add battery parameters for the DEYE Hybrid inverter, and update documentation 2022-02-27 18:19:17 +02:00
entities.png Documentation update 2022-01-12 17:19:58 +02:00
flow_init.png Updated documentation 2022-04-17 13:47:27 +02:00
flow_init_manual.png Updated documentation 2022-04-17 13:47:27 +02:00
flow_select.png Updated documentation 2022-04-17 13:47:27 +02:00
hacs.json Remove unsupported key 2022-06-16 18:01:40 +02:00
info.md Updated for HACS 2022-01-19 11:37:45 +02:00
web_portal.png Updated documentation 2022-01-30 12:18:28 +02:00

README.md

Solarman integration

This is a Home Assistant component for interacting with Solarman data collectors used with a variety of inverters. The integration allows Home Assistant to connect in direct-mode over the local network to the collector to extract the information, and no cables are required.

It has been created with a 5kW DEYE/SUNSYNK inverter and since integrated with a veriety of other inverters that uses the Solarman data collector.

This component uses version 5 of the communication protocol. If your collector is older and this component does not work, try one of the other integrations that uses version 4 of the protocol.

Discord

Feel free to discuss the integration by joining the Discord server.

Installation

HACS

This method is prefered.

Manual

For this, it is highly recomended to use the "Samba share" add-on (you will need to enable advanced mode in your user profile).

Clone or download the repo, and copy the "solarman" folder in "custom_components" to the "custom_components" folder in home assistant.

After that, the folder structure should look as follows:

custom_components
├── solarman
│   ├── __init__.py
│   ├── const.py
│   ├── manifest.json
│   ├── parser.py
│   ├── solarman.py
│   ├── sensor.py
│   └── inverter_definitions
│       ├── {inverter-definition yaml files}
├── {other components}

Preparation

  1. Get the IP and Serial Number to use in the configuration.

Find the internal IP of the logger on the DHCP server, and then open a browser and navigate to that address. If you are prompted for a username/password, use "admin" as username and "admin" as password.

Once logged in, expand the "Device information" and note the Device serial number, as well as the IP used.

WebPortal

  1. Check the version of the solarman logger. If the serial number starts with 17xxxxxxx or 21xxxxxxx (protocol V5), the component should work. If not, you may need to try the component for V4 of the protocol mentioned above.

  2. On your DHCP server, reserve the IP for the WiFi data logger so that it will not change.

Configuration

This integration can be configured using config-flow, or by manually configuring using the configuraiton.yaml file. Both methods are described below:

Automatic (config flow)

  1. After the installation of this component, click on the "Configuration" tab on the left, then on "Devices & Services"
  2. Select the "Integrations" tab on the top of the screen, then on the "+ ADD INTEGRATION" button on the left-hand corner.
  3. Select the solarman integration Solarman

4.Configure the entity by filling in the details. Solarman

Manual Configuration (configuration.yaml)

In your configuration.yaml file, add the solarman platform under "sensor"

Example:


sensor:
  - platform: solarman
    name: DEYE 
    inverter_host: 192.168.0.100
    inverter_port: 8899
    inverter_serial: 1720747149 
    inverter_mb_slaveid: 1
    lookup_file: deye_hybrid.yaml

Parameters

Parameter Description
name This name will be prefixed to all parameter values (change as you like)
inverter_host The IP address of the data logger. (* see: autodiscover)
inverter_port Always 8899
inverter_serial The serial number of the data collector (* see: autodiscover)
inverter_mb_slaveid The Modbus Slave ID of the inverter. Defaults to 1
scan_interval Time in seconds between refresh intervals
lookup_file ** The yaml file to use for parameter-definition

** This parameter is optional, and if not specified will revert to deye_hybrid.yaml. If you customize the parameters, create a lookup file "custom_parameters.yaml" and refer to it so that it will not be overwritten during updates.

Lookup Files

Lookup File Inverters supported Notes
deye_hybrid.yaml DEYE/Sunsynk/SolArk Hybrid inverters used when no lookup specified
deye_string.yaml DEYE/Sunsynk/SolArk String inverters eg. SUN-4/5/6/7/8/10/12K-G03 Plus
deye_4mppt.yaml DEYE Microinverter
sofar_lsw3.yaml SOFAR Inverters
sofar_hyd3k-6k.yaml SOFAR Hybrid inverter HYD 6000 or rebranded ex. ZCS AZZURRO
solis_hybrid.yaml SOLIS Hybrid inverter
solid_1p8k-5g SOLIS 1P8K-5G

Auto-discovery

The component has the option to auto-discover the logger IP and serial number.

To use auto discovery, the IP should be specified as 0.0.0.0 and/or the serial as 0

NOTE: This should be used as a temporary or debug measure since the discovery only happens when the component starts and, if the logger is inaccessible at that point, the entities will unavailable until restart. This will not be the case when the IP and serial was specified.

Manual

The section below shows an example configuration done using manual configuration. This is an option for those that want to customize the component for inverters not supported out of the box.


sensor:
  - platform: solarman
    name: DEYE 
    inverter_host: 0.0.0.0
    inverter_port: 8899
    inverter_serial: 0 
    inverter_mb_slaveid: 1
    lookup_file: deye_hybrid.yaml

Config-flow

Autodiscover

Entities

Once the component is running, it will add the following entities to Home Assistant Entities

Status Entities

Apart from the inverter-parameters, it will also add status entities to view the status of the solarman component. Component-status

Energy Dashboard

The entities includes the device classes to enable it to be added to the Energy Dashboard introduced with Home Assistant Core 2021.8.

To configure the energy dashboard with the infirmation provided by this component, see configuring energy dashboard

Customization

This integration was tested against the DEYE 5kW inverter, and it is possible that the parameter-definitions for other inverters may differ. If you want to try your hand at it, refer to customizing parameters.yaml