Hi, i have made this config in configuration.yaml. As i have no AC Data for the hoymiles HMT, i would like to use this workaround to just add the DC values of each port to a sum. (maybe multiply by 95% to get AC approx data. But i fail to see this sensor in the energy dashboard config. What do i miss ?
`default_config: # Loads default set of integrations. Do not remove.
frontend: # Load frontend themes from the themes folder
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include template.yaml
sensor:
- platform: energy
hoymiles_gartenhaus_total_daily_energy:
friendly_name: "Hoymiles Gartenhaus Total Daily Energy"
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
value_template: >
{% set total_energy = (port1 + port2 + port3 + port4 + port5 + port6) | round(2) %}
{% if total_energy > 0 %}
{{ total_energy }}
{% else %}
{% endif %}`
(and yet again..i can´t find and remember how i post a yaml with correct formatting in here ..ahrg)