This is a custom configuration for Home Assistant to read data from an E3DC device via ModBus.
Copy on your Home Assistant server the folder packages
at the same level of the configuration.yaml
file.
For a better overview, you can create a subfolder e3dc
under the packages
folder and copy the files there. Is recommended.
Add the following line to your configuration.yaml
file:
homeassistant:
packages: !include_dir_merge_named packages/
Edit the file packages/modbus.yaml
and add your E3DC device IP address.
If you want to add utility_meter for creating daily/weekly/monthly sensors for better graphs or exporting to prometheus you can add the the file extras/utility_meter.yaml
into the packages
folder.
Restart Home Assistant and you will find the sensors in the e3dc
entity. Now you can use them in your automations or add the sensors to your dashboard.
If your add HACS to your Home Assistant, you can add the Layout called Power-Distribution-Card
To Add the Sensor to your Energy Dashboard use the following Sensors:
It is normal that some sensors are not available. This is because the E3DC device has not yet sent all the values. This can take up to 2 days.
The following sensors are available:
e3dc_grid_export_power
- Grid Export Power in Watte3dc_grid_import_power
- Grid Import Power in Watte3dc_battery_charge_power
- Battery Charge Power in Watte3dc_battery_discharge_power
- Battery Discharge Power in Watte3dc_autarky
- Autarky in % per daye3dc_external_power
- Power of an additional source in Watte3dc_own_consumption
- Own Consumption in % per daye3dc_emergency_power_state_text
- emergency power state in text
This configuration Files are based on the work of Community-Contribution: E3DC in Energy Dashboard
Thangs to Roman for Sharing his work.