Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kostal_piko_daily_energy vs utility_meter #13

Open
zibous opened this issue Jun 28, 2020 · 4 comments
Open

kostal_piko_daily_energy vs utility_meter #13

zibous opened this issue Jun 28, 2020 · 4 comments

Comments

@zibous
Copy link

zibous commented Jun 28, 2020

Describe the bug
I don't understand why the values of utility_meter (daily) do not match the kostal_piko_daily_energy?
The values of the utility_meter sensor are much higher than those of the kostal_piko_daily_energy?

sensor kWh
sensor.ertrag_photovolatik_tag 24.35
sensor.kostal_piko_daily_energy 15.65

Config yaml

sensor:
  - platform: kostal
    host: !secret kostal_host  # "http://192.168.xx.xx"
    username: !secret kostal_username
    password: !secret kostal_password
    monitored_conditions:
      - current_power
      - total_energy
      - daily_energy
      - string1_voltage
      - string1_current
      - string2_voltage
      - string2_current
      - l1_voltage
      - l1_power
      - l2_voltage
      - l2_power
      - l3_voltage
      - l3_power
      - status

utility_meter:
  ertrag_photovolatik_day:
    source: sensor.kostal_piko_current_power
    cycle: daily
  ertrag_photovolatik_month:
    source: sensor.kostal_piko_current_power
    cycle: monthly
ertrag_photovolatik_year:
    source: sensor.kostal_piko_current_power
    cycle: yearly

Additional context

I am doing something wrong in the configuration.

@gieljnssns
Copy link
Owner

This is apparently normal.

I recommend that you read these forum post
https://community.home-assistant.io/t/utility-meter-configuration-is-this-correct/102322

And this integration
https://www.home-assistant.io/integrations/integration/

@gieljnssns
Copy link
Owner

@zibous
Copy link
Author

zibous commented Jul 4, 2020

@gieljnssns
Thanks for the information. It works with the Integration - Riemann sum integral solution, but only if I calculate and use the value from daily_energy:

curr_energy = daykw - daykw_prev
daykw_prev: 4.88
daykw: 5.13
curr_energy: 0.25

But there are also deviations here. Will try infulxdb + grafana.

https://gitlab.com/clevercrib/energy-dashboard
https://clevercrib.net/visualise-energy-consumption-with-grafana/

@gieljnssns
Copy link
Owner

You should try this custom component https://github.com/rcasula/kostalpiko-homeassistant
My Kostal inverter is broken so I can't test any new versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants