This code is a custom component to read the data from Huawei inverters
Copy these files to custom_components/huawei_solar/
You can try the async component by renaming sensor_async.py sensor.py, but this seems to be currently broken with HA 105, pymodbus 2.3.0 and python 3.7.
Then configure the sensors by setting up the stib platform in configuration.yaml
.
Name | Type | Requirement | Description |
---|---|---|---|
host | string | Required | hostname or ip address |
optimizers | boolean | Optional | Set to true if you have optimizers and want to see information about them. |
battery | boolean | Optional | Set to true if you have a battery and want to see information about it. |
Example:
sensor:
- platform: huawei_solar
host: '192.168.0.123'
optimizers: true
battery: true