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

Wrong values passed from sensor template to integration

$
0
0

Hi,
I’m trying to integrate two Solar Inverters into the energy tab of Home Assistant.

I have the following code the values of panourisolare_productie_huawai and panourisolare_productie_fronius are correct:

SOLAR Productie Fronius 6kw: 4206.0
SOLAR Productie Huawai 3kw 2241.0


sensor:
  - platform: template
    sensors:
      panourisolare_productie_huawai:
        device_class: power
        friendly_name: "SOLAR Productie Huawai 3kw"
        unit_of_measurement: "W"
        value_template: "{{ states('sensor.sun2000l_3ktl_2101073801hvk7000518') | float }}"
      panourisolare_productie_fronius:
        device_class: power
        friendly_name: "SOLAR Productie Fronius 6kw"
        unit_of_measurement: "W"
        value_template: "{{ states('sensor.power_photovoltaics_fronius_power_flow_0_192_168_1_184') | float }}"
  - platform: integration
    source: sensor.panourisolare_productie_huawai
    name: SOLAR Productie Huawai 3kw
    unit_of_measurement: Wh
    # unit_prefix: k
    round: 2
  - platform: integration
    source: sensor.panourisolare_productie_fronius
    name: SOLAR Productie Fronius 6kw
    unit_of_measurement: Wh
    # unit_prefix: k
    round: 2

However when I use the integrations to Energy, values are very different:

sensor.solar_productie_fronius_6kw: 881.351
sensor.solar_productie_huawai_3kw: 660.364

Any help is appreciated. Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103219

Trending Articles



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