Hi. i have myuplink connected to my F750 and get 3 sensors
sensor.f750_korinten_current_be1
sensor.f750_korinten_current_be2
sensor.f750_korinten_current_be3
tracking usage in ampere
I want to combine these sensors and get it in the energy dashboard.
I used chatgpt and came up with this.
- sensor:
- name: "F750 Förbrukning"
unit_of_measurement: "kW"
state: >
{% set u = 230 %}
{% set i1 = states('sensor.f750_korinten_current_be1') | float(0) %}
{% set i2 = states('sensor.f750_korinten_current_be2') | float(0) %}
{% set i3 = states('sensor.f750_korinten_current_be3') | float(0) %}
{% set total_current = i1 + i2 + i3 %}
{{ (u * total_current * sqrt(3) / 1000) | round(2) }}
availability: >
{{ states('sensor.f750_korinten_current_be1') not in ['unknown', 'unavailable'] and
states('sensor.f750_korinten_current_be2') not in ['unknown', 'unavailable'] and
states('sensor.f750_korinten_current_be3') not in ['unknown', 'unavailable'] }}
Then used the riemann helper
and at the end a template sensor to convert it to kWh
- sensor:
- name: "F750 Totalförbrukning (Energy Dashboard)"
state: "{{ states('sensor.f750_total_forbrukning') }}"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
It all works and i can use it in the energydashboard BUT the total KWH used by my F750 is almost double the whole house kwh so it dosnt add up.
is this even possible to use it this way and get a realistic result?
The myuplink sensors seems to update every 5 mins.
Anyone done something similiar and got a reliable result?