scheidtdav / homeassistant-kostal-piko

Home Assistant integration for Kostal Piko inverters
MIT License
14 stars 3 forks source link

Short description #2

Closed tunguskar closed 2 years ago

tunguskar commented 2 years ago

Hi,

First of all thanks for your work!

I wanted to add the folder to the custom_components. Can you give a short example how to add this component to the configuration.yaml?

Kind Regards

scheidtdav commented 2 years ago

Hey,

thanks for your interest in the project. I've recently started to refactor this project to eventually have it in Home Assistant Core. Not sure how long that will still take, so I cannot promise anything. I am posting updates here.

In the meantime, if you want to use this as a custom component (which I am currently doing myself as well), I have just created a tag called prototype, which marks an earlier version of this repository. That version also contains a README file with an example for a configuration.yaml entry. You can download and use that if you like.

Hope that helps, cheers :raised_hands:

tunguskar commented 2 years ago

Thanks for the answer. I tried to add the folder to cusomt_components. did a complete reboot of home assistant. When I now add the configuration to configuration.yaml. it says, that the kosal_piko component is not available. Do you know this problem?

scheidtdav commented 2 years ago

Hi,

I wasn't super sure about how it worked again, so I checked my current configuration: image

Inside the configuration.yaml, the sensor is configured as shown in the README of the tag. Here is a minimal example:

sensor:
  - platform: kostal_piko
    host: !secret kostal_host
    monitored_conditions:
      - battery_charge

Did you create the kostal_piko folder inside the custom_components folder? If so, it should work.. At least I cannot think of anything else that requires configuration.

tunguskar commented 2 years ago

Strange behavior. Im getting always this message: Platform error sensor.kostal_piko - Integration 'kostal_piko' not found.

image

Nevertheless, thanks for the support. Maybe I have to google a little bit arround

scheidtdav commented 2 years ago

Sure thing, sorry I can't help much further. Best of luck finding the issue!