Sure, you need to create some specific sensors and integration sensors, but it does work. See this topic for some hints. At the time of this topic there was no support yet for the batteries. These require further sensors to be created.
But do not expect a perfect accuracy compared to the E3DC Webinterface. For it to be accurate, we’d need direct access to the energy values (kWh) instead of the power read outs. I opened a ticket with E3DC and requested an update to the Modbus interface. Maybe if enough people request this feature, they will be willing to adapt.
well, had to move the server at the end and get rid of my dmz. NAT should have worked but didn’t.
Took a few paket traces and had loads of retransmissions. So it was easier for me to move the server.
I will take a look at the link. But have to say that i am a “copy & paste” programmer lets see how far my skills can go.
Another thing is that i do run my system in docker so no supervisior is there.
But hey actually i am proud. A week ago i did not even knew what home automation could give me.
Ordered some ikea lamps… very curious about it…
So something has to be added and you can use status attributes on the developer tools tab.
Some also put it into the customization.yamls. Looks like wildcards working as well.
@ArminF well, easiest way to install custom components is via HACS, so follow it’s install instructions (will also run in your setup) and installing community components is as simple as one click. https://hacs.xyz/
Thanks! I could install HACS and guess what… even i could do it
works like a charm. I am very happy.
No i need check how i get this energy stuff up and running.
Evening,
all up and running. maybe some fine tuning here and there. But for now i am very pround
DId anyone of you activated the Energy Management?
I did and figured most of it out.
There seems to be a battery check every morning on the E3DC as i get some charge/discharge values even when there is no solar power and battery is not in discharge.
Do you get the same? I do not think my settings are wrong actually. Checked them several times.
For the entities i used a template sensor and integration for the conversion from watt to kwh.
Sensors i had to split into only positive values by using ABS.
thanks A
Hi Peter,
no worries. I could figure it out and got the nice card up and running.
It seems to be a battery/system check from our E3DC system which shows up daily.
Was my last post. So i accepted it as normal.
Rest is working proper and i am very happy with the details/statistics i get out of it.
in order to use the Energy component of HA, you need a couple additional template sensors to convert the +/- values coming from e3dc to separate sensors for in and out.
These are all my e3dc related sensors (copied from a split out yaml, you if you have your config all in the main file, you have to adjust indention etc)
- platform: template
sensors:
e3dc_autarky:
friendly_name: 'E3DC Autarky'
unit_of_measurement: '%'
value_template: "{{ (states('sensor.e3dc_autarky_and_consumption')|int / 256)|round(0,'floor') }}"
e3dc_own_consumption:
friendly_name: 'E3DC Own Consumption ratio'
unit_of_measurement: '%'
value_template: "{{ ((states('sensor.e3dc_autarky_and_consumption')|int / 256 - states('sensor.e3dc_autarky')|int) * 256)|round(0,'floor') }}"
# Grid out
e3dc_grid_power_out:
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.e3dc_grid_power') | int > 0 %}
0
{% else -%}
{{ (states('sensor.e3dc_grid_power') | int) | abs }}
{% endif %}
# Grid in
e3dc_grid_power_in:
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.e3dc_grid_power') | int > 0 %}
{{ states('sensor.e3dc_grid_power') | int }}
{% else -%}
0
{% endif %}
# Battery out
e3dc_battery_power_out:
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.e3dc_battery_power') | int > 0 %}
0
{% else -%}
{{ (states('sensor.e3dc_battery_power') | int) | abs }}
{% endif %}
# Battery in
e3dc_battery_power_in:
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.e3dc_battery_power') | int > 0 %}
{{ states('sensor.e3dc_battery_power') | int }}
{% else -%}
0
{% endif %}
- platform: integration
source: sensor.e3dc_battery_power_out
name: energy_battery_discharge
unit_prefix: k
round: 2
- platform: integration
source: sensor.e3dc_battery_power_in
name: energy_battery_charge
unit_prefix: k
round: 2
- platform: integration
source: sensor.e3dc_solar_power
name: energy_solar_production
unit_prefix: k
round: 2
- platform: integration
source: sensor.e3dc_power_consumption
name: energy_consumption
unit_prefix: k
round: 2
- platform: integration
source: sensor.e3dc_grid_power_in
name: energy_grid_usage
unit_prefix: k
round: 2
- platform: integration
source: sensor.e3dc_grid_power_out
name: energy_grid_feed_in
unit_prefix: k
round: 2
calculated using the Riemann integration. See my previous post. You first need to create dedicated sensors for energy consumption and production since the Riemann can’t handle +/- values, and then you need to feed those normalized values to an additional Riemann sensor to get kWh and be able to use it in the energy panel
Hi , I would like to create a sensor with the status for example of the fan of my hvca, they would correspond to bits 3,4,5 of register 109, how do you advise me to do?