This is a custom configuration for Home Assistant to read data from an E3DC device via ModBus/TCP.
Copy the folder packages
with it's contents to your Home Assistant server at the same level as the configuration.yaml
file.
Be sure that you have activated Modbus in your storage.
Add the following line to your configuration.yaml
file to make sure, the packages are loaded:
homeassistant:
packages: !include_dir_merge_named packages/
Edit the file packages/e3dc/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.
Utility meters for the wallbox are inclued. You can track the wallbox energy in the enregy panel by adding sensor.e3dc_wallbox_energie
to the individual devices section like shown in the example.
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 you added HACS to your Home Assistant, you can also add the card 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 texte3dc_wallbox_power
- Wallbox Power in Watt
This configuration Files are based on the work of Community-Contribution: E3DC in Energy Dashboard
Thangs to Roman for Sharing his work.