core icon indicating copy to clipboard operation
core copied to clipboard

Kostal Plenticore Solar Inverter could not be used in energy settings

Open misterboe opened this issue 2 years ago • 9 comments

The problem

No entity of the "Kostal Plenticore Solar Inverter " could be used in the energy tab to set as energy consumption

https://www.home-assistant.io/integrations/kostal_plenticore/

https://github.com/home-assistant/core/tree/dev/homeassistant/components/kostal_plenticore

https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

What version of Home Assistant Core has the issue?

2022.10.4

What was the last working version of Home Assistant Core?

2022.10.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Kostal Plenticore Solar Inverter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/kostal_plenticore/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

misterboe avatar Oct 18 '22 04:10 misterboe

Hey there @stegm, mind taking a look at this issue as it has been labeled with an integration (kostal_plenticore) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


kostal_plenticore documentation kostal_plenticore source (message by IssueLinks)

home-assistant[bot] avatar Oct 18 '22 04:10 home-assistant[bot]

Can you download and attach the diagnosis information of the kostal plenticore integration?

stegm avatar Oct 22 '22 12:10 stegm

I have also a similar problem with the integration. Entities Energy Discharge to Grid are showing wrong values comparing to Kostal app. In parallel I am running Iobroker using Kostal adapter, which shows the same values for Energy Discharge to Grid comparing to Kostal app. Please consider.

miwa4711 avatar Nov 04 '22 06:11 miwa4711

Is this the same issue as 66747 ?

seb2020 avatar Nov 04 '22 15:11 seb2020

I have also a similar problem with the integration. Entities Energy Discharge to Grid are showing wrong values comparing to Kostal app. In parallel I am running Iobroker using Kostal adapter, which shows the same values for Energy Discharge to Grid comparing to Kostal app. Please consider.

The HA integration uses the local Web-API, so I don't know what the Kostal app is using and which one is correct (I only use the HA and local Web but not the app). Maybe you can compare the absolute values from all three?

I'm also not sure if "Energy Discharge to Grid" is the right one. As @seb2020 mentioned, take a look at #66747 if you want to get the energy to grid. It needs a template sensor, because the Web-API doesn't provide one.

For example I use this one:

template:
  - sensor:
    - name: "Plenticore Energy PV to Grid Total (Template)"
      unit_of_measurement: "kWh"
      device_class: energy
      state_class: total
      state: >
        {% set yield = states('sensor.scb_energy_yield_total') | float %}
        {% set batteryToHome = states('sensor.scb_home_consumption_from_battery_total') | float %}
        {% set pvToHome = states('sensor.scb_home_consumption_from_pv_total') | float %}
        {{ yield - pvToHome - batteryToHome }}

stegm avatar Nov 05 '22 15:11 stegm

Hi @stegm,

Cab you tell from where is coming sensor.scb_energy_XXX ? Il have enabled the kostal Integration but i haven't this value

seb2020 avatar Nov 05 '22 19:11 seb2020

Hi @stegm,

Cab you tell from where is coming sensor.scb_energy_XXX ? Il have enabled the kostal Integration but i haven't this value

Most of the entities are disabled per default. You have to enable the ones which you want to use in the entity page.

stegm avatar Nov 05 '22 19:11 stegm

In my HA, it's kostal_ instead of scb_. I have updated the template.

seb2020 avatar Nov 05 '22 19:11 seb2020

I have also a similar problem with the integration. Entities Energy Discharge to Grid are showing wrong values comparing to Kostal app. In parallel I am running Iobroker using Kostal adapter, which shows the same values for Energy Discharge to Grid comparing to Kostal app. Please consider.

The HA integration uses the local Web-API, so I don't know what the Kostal app is using and which one is correct (I only use the HA and local Web but not the app). Maybe you can compare the absolute values from all three?

I'm also not sure if "Energy Discharge to Grid" is the right one. As @seb2020 mentioned, take a look at #66747 if you want to get the energy to grid. It needs a template sensor, because the Web-API doesn't provide one.

For example I use this one:

template:
  - sensor:
    - name: "Plenticore Energy PV to Grid Total (Template)"
      unit_of_measurement: "kWh"
      device_class: energy
      state_class: total
      state: >
        {% set yield = states('sensor.scb_energy_yield_total') | float %}
        {% set batteryToHome = states('sensor.scb_home_consumption_from_battery_total') | float %}
        {% set pvToHome = states('sensor.scb_home_consumption_from_pv_total') | float %}
        {{ yield - pvToHome - batteryToHome }}

Yes this seems to be a solution. Nevertheless the above mentioned "Entities Energy Discharge to Grid" values differ comparing modbus values or am I wrong?

miwa4711 avatar Nov 06 '22 17:11 miwa4711

Yes this seems to be a solution. Nevertheless the above mentioned "Entities Energy Discharge to Grid" values differ comparing modbus values or am I wrong?

Actually I don't use this entity because it seems not to be the amount of energy which is goes to the grid from the PV. That's the reason why I use the template sensor. As I don't use modbus I can't say anything about that.

stegm avatar Nov 08 '22 08:11 stegm

All important sensors can be found in the Plenticore entities. Unfortunately, these are not selectable in the energy dashboard. Here are always the .......total linked. But unfortunately not the normal without total

schlenzie77 avatar Dec 14 '22 13:12 schlenzie77

All important sensors can be found in the Plenticore entities. Unfortunately, these are not selectable in the energy dashboard. Here are always the .......total linked. But unfortunately not the normal without total

Please give an example which entity for which part of the dashboard is missing. For my understanding only the total make sense.

stegm avatar Dec 18 '22 15:12 stegm

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.