#Sum of DC ports to add them to the energy dashboard

1 messages · Page 1 of 1 (latest)

frigid grail
#

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)

full jetty
#

Your platform seems wrong to say ateast but generally if sensors don't show up check the dev tools to make sure the config changes have been applied and that the statistics are being properly recorded

#

You can use a template helper entity instead, that way you don't need to touch yaml at all

frigid grail
#

Have not yet hearded about that template helper..do you have a link for me ? A quick search i have not found it

toxic mountain
#

Or the last one (although that might end up negative i guess)

full jetty
brittle yacht
#

Your various ports are not defined in any way either