rcasula / kostalpiko-homeassistant

19 stars 14 forks source link

Cant get Kostal Piko work with home assistant #9

Closed olaein closed 2 years ago

olaein commented 2 years ago

Hi

My name Ola Einarsson, ola@angsvik.net I have Kostal Piko 7.0 sins 2012 and its It would be fun if my Kostal could be integrated with home assistant Grateful for ideas how I can make this work

  1. I have install kostal piko from hacs with https://github.com/rcasula/kostalpiko-homeassistant core-2022.2.3 supervisor-2022.01.1 Home Assistant OS 7.2
  2. restart home assistant
  3. In hacs make an integration for kostalpiko
  4. edit /config/configuration.yaml kostal: host: http://192.168.0.150 username: xxxxxx password: xxxxxx monitored_conditions:
    • current_power
    • total_energy
    • daily_energy
    • status
  5. Validate config and get Invalid config with this: Invalid config for [kostal]: required key not provided @ data['kostal']['host']. Got None required key not provided @ data['kostal']['monitored_conditions']. Got None required key not provided @ data['kostal']['password']. Got None required key not provided @ data['kostal']['username']. Got None. (See ?, line ?). Integration error: host - Integration 'host' not found. Integration error: username - Integration 'username' not found. Integration error: monitored_conditions - Integration 'monitored_conditions' not found. Integration error: password - Integration 'password' not found.

Logg: Logger: homeassistant.setup Source: setup.py:154 First occurred: 11:21:20 (5 occurrences) Last logged: 11:22:12

Setup failed for username: Integration not found. Setup failed for password: Integration not found. Setup failed for host: Integration not found. Setup failed for monitored_conditions: Integration not found. Setup failed for kostal: Invalid config.

and

Logger: homeassistant.config Source: config.py:454 First occurred: 11:22:12 (1 occurrences) Last logged: 11:22:12

Invalid config for [kostal]: required key not provided @ data['kostal']['host']. Got None required key not provided @ data['kostal']['monitored_conditions']. Got None required key not provided @ data['kostal']['password']. Got None required key not provided @ data['kostal']['username']. Got None. (See ?, line ?). Please check the docs at https://github.com/rcasula/kostalpiko-homeassistant

rcasula commented 2 years ago

Hi, seems that the config has not the right indentation. Could you please share the full configuration.yaml between the code tag between three backticks like

```yaml
<code here>
```‎

Meanwhile try with this:

kostal:
  host: http://192.168.0.150/
  username: xxxxxx
  password: xxxxxx
  monitored_conditions:
    - current_power
    - total_energy
    - daily_energy
    - status
pergolafabio commented 2 years ago

?? i defined mine with config flow, no yaml

working fine

olaein commented 2 years ago

Hi

I can se you have config flow but nothing happened and I have only a empty box for this integration in hacs no config appairs and no errors…

/ Ola

Från: pergolafabio @.> Skickat: den 8 februari 2022 18:41 Till: rcasula/kostalpiko-homeassistant @.> Kopia: olaein @.>; Author @.> Ämne: Re: [rcasula/kostalpiko-homeassistant] Cant get Kostal Piko work with home assistant (Issue #9)

?? i defined mine with config flow, no yaml

working fine

— Reply to this email directly, view it on GitHub https://github.com/rcasula/kostalpiko-homeassistant/issues/9#issuecomment-1032885146 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWXDWWHKMOMORJFN3R5XFGDU2FISXANCNFSM5NXDDVYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AWXDWWECZ7N2KCYXQVYGCCTU2FISXA5CNFSM5NXDDVY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHWIJHGQ.gif Message ID: @. @.> >

pergolafabio commented 2 years ago

Hmm, when I add the integration, I can specify the sensors I want, then it just works

Op di 8 feb. 2022 20:00 schreef olaein @.***>:

Hi

I can se you have config flow but nothing happened and I have only a empty box for this integration in hacs no config appairs and no errors…

/ Ola

Från: pergolafabio @.> Skickat: den 8 februari 2022 18:41 Till: rcasula/kostalpiko-homeassistant @.> Kopia: olaein @.>; Author @.> Ämne: Re: [rcasula/kostalpiko-homeassistant] Cant get Kostal Piko work with home assistant (Issue #9)

?? i defined mine with config flow, no yaml

working fine

— Reply to this email directly, view it on GitHub < https://github.com/rcasula/kostalpiko-homeassistant/issues/9#issuecomment-1032885146> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AWXDWWHKMOMORJFN3R5XFGDU2FISXANCNFSM5NXDDVYQ> . Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . You are receiving this because you authored the thread. < https://github.com/notifications/beacon/AWXDWWECZ7N2KCYXQVYGCCTU2FISXA5CNFSM5NXDDVY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHWIJHGQ.gif> Message ID: @. @.> >

— Reply to this email directly, view it on GitHub https://github.com/rcasula/kostalpiko-homeassistant/issues/9#issuecomment-1032956721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJ7LQC4KUSPPFP5ODGVEQLU2FR6XANCNFSM5NXDDVYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

pergolafabio commented 2 years ago

Like below:

image

rcasula commented 2 years ago

I'm closing due to lack of activity. Feel free to reopen this if you have more informations.