This integration aims to create the sensors/switches in home assist in order to retrieve data and control the freeds from home asistant via MQTT.
- Values will be preseted as sensors.
- Commands will be presented as switches.
- A freeds device
- A configured MQTT broker (e.g. Mosquitto Broker)
TODO
Create a directory called freeds in the /custom_components/ directory on your Home Assistant instance. Install this component by copying all files in /custom_components/freeds/ folder from this repo into the new /custom_components/goodwe/ directory you just created.
This is how your custom_components directory should look like:
custom_components
├── freeds
│ ├── __init__.py
│ ├── freeds.py
│ ├── manifest.json
│ └── sensor.py
To enable this sensor, add the following lines to your configuration.yaml
file:
sensor:
- platform: freeds
ip_address: 192.168.100.100
port: 8899
baseTopic: freeds_d4ae
username: MQTT_user
password: MQTT_password
Be aware that the comunication with your inverter/meter should be preconfigured in freeds previously.
This component will set up the following platforms.
Platform | Description |
---|---|
binary_sensor |
Show something True or False . |
sensor |
Show info from blueprint API. |
switch |
Switch something True or False . |
Riemann Sum integration can be used to convert these instant (W) values into cumulative values (Wh).
Utility Meter can report these values as human readable statistical values.
Template Sensor can be used to separate buy and sell values.
To test whether the inverter properly responds to UDP request, just execute the inverter_test.py
script