Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95365

Energy Sensor (kWh) values are accumulated in Utility meter

$
0
0

@ds1707 wrote:

Hello guys,

I have a Solaredge inverter with a modbus meter.
Everything works like a charm with getting values every 5s over the Modbus tcp from the inverter.

Now i have calculated my own consumption:

        self_consumption:
            friendly_name: "Self consumption"
            value_template: "{{ (state_attr('sensor.solaredge_modbus', 'ac_power_output') | round(2)) - (state_attr('sensor.solaredge_modbus_meter_1', 'ac_power_output') | round(2)) }}"
            unit_of_measurement: 'W'
        self_consumption_kwh:
            friendly_name: "Self consumption"
            value_template: "{{ ((states('sensor.self_consumption')| float) / 1000 )  }}"
            unit_of_measurement: 'kWh'

Now i created two utility meters:

    consumption_daily:
      source: sensor.self_consumption_kwh
      cycle: daily
    consumption_monthly:
      source: sensor.self_consumption_kwh
      cycle: monthly

My problem is that those values were accumulated every 5 seconds.
Can anyone help me with this issue?
Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>