hombach / ioBroker.kostal-piko-ba

ioBroker Adapter to poll Kostal Pico BA inverter data to monitor your PV-system
https://github.com/hombach/ioBroker.kostal-piko-ba
MIT License
10 stars 7 forks source link

Response code 401 #373

Closed freakyfreaky closed 1 year ago

freakyfreaky commented 1 year ago

Describe the bug
I am using a PIKO 5.5 because we our system is now 10 yrs old. After setting up everything I get an error messag

ERROR: Error in calling Kostal Piko API: HTTPError: Response code 401 (Unauthorized)

To Reproduce
Steps to reproduce the behavior:

  1. Set up Instance
  2. Wait for first poll

Versions:

hombach commented 1 year ago

Any logs in debug mode? Or perhaps you send your IP to check in sentry logs...

freakyfreaky commented 1 year ago

DEBUG LOG

2022-10-11 19:20:14.414 - debug: kostal-piko-ba.0 (55105) Redis Objects: Use Redis connection: 127.0.0.1:9001

2022-10-11 19:20:14.493 - debug: kostal-piko-ba.0 (55105) Objects client ready ... initialize now 2022-10-11 19:20:14.500 - debug: kostal-piko-ba.0 (55105) Objects create System PubSub Client 2022-10-11 19:20:14.504 - debug: kostal-piko-ba.0 (55105) Objects create User PubSub Client 2022-10-11 19:20:14.577 - debug: kostal-piko-ba.0 (55105) Objects client initialize lua scripts 2022-10-11 19:20:14.594 - debug: kostal-piko-ba.0 (55105) Objects connected to redis: 127.0.0.1:9001 2022-10-11 19:20:14.646 - debug: kostal-piko-ba.0 (55105) Redis States: Use Redis connection: 127.0.0.1:9000 2022-10-11 19:20:14.665 - debug: kostal-piko-ba.0 (55105) States create System PubSub Client 2022-10-11 19:20:14.670 - debug: kostal-piko-ba.0 (55105) States create User PubSub Client 2022-10-11 19:20:14.736 - debug: kostal-piko-ba.0 (55105) States connected to redis: 127.0.0.1:9000 2022-10-11 19:20:14.813 - debug: kostal-piko-ba.0 (55105) Plugin sentry Initialize Plugin (enabled=true) 2022-10-11 19:20:16.259 - info: kostal-piko-ba.0 (55105) starting. Version 1.5.0 in /opt/iobroker/node_modules/iobroker.kostal-piko-ba, node: v16.17.1, js-controller: 4.0.23 2022-10-11 19:20:16.319 - info: kostal-piko-ba.0 (55105) IP address found in config: 192.168.178.25 2022-10-11 19:20:16.651 - error: kostal-piko-ba.0 (55105) Error in calling Piko API for general info: HTTPError: Response code 401 (Unauthorized) 2022-10-11 19:20:16.654 - error: kostal-piko-ba.0 (55105) Please verify IP address: 192.168.178.25 !! (e0) 2022-10-11 19:20:21.558 - debug: kostal-piko-ba.0 (55105) Initial Read of general info done 2022-10-11 19:20:21.559 - info: kostal-piko-ba.0 (55105) Polltime set to: 10 seconds 2022-10-11 19:20:21.561 - info: kostal-piko-ba.0 (55105) Polltime daily statistics set to: 60 seconds 2022-10-11 19:20:21.562 - info: kostal-piko-ba.0 (55105) Polltime alltime statistics set to: 200 seconds 2022-10-11 19:20:21.585 - debug: kostal-piko-ba.0 (55105) OnReady done 2022-10-11 19:20:21.733 - error: kostal-piko-ba.0 (55105) Error in calling Kostal Piko API for total statistics: HTTPError: Response code 401 (Unauthorized) 2022-10-11 19:20:21.735 - error: kostal-piko-ba.0 (55105) Please verify IP address: 192.168.178.25 !! (e4) 2022-10-11 19:20:24.719 - error: kostal-piko-ba.0 (55105) Error in calling Kostal Piko API: HTTPError: Response code 401 (Unauthorized) 2022-10-11 19:20:24.721 - error: kostal-piko-ba.0 (55105) Please verify IP address: 192.168.178.25 !! (e3) 2022-10-11 19:20:27.706 - debug: kostal-piko-ba.0 (55105) Initial ReadPiko done 2022-10-11 19:20:27.780 - error: kostal-piko-ba.0 (55105) Error in calling Kostal Piko API: HTTPError: Response code 401 (Unauthorized) 2022-10-11 19:20:27.782 - error: kostal-piko-ba.0 (55105) Please verify IP address: 192.168.178.25 !! (e1) 2022-10-11 19:20:27.980 - error: kostal-piko-ba.0 (55105) Error in calling Kostal Piko API: HTTPError: Response code 401 (Unauthorized) 2022-10-11 19:20:27.982 - error: kostal-piko-ba.0 (55105) Please verify IP address: 192.168.178.25 !! (e2)

hombach commented 1 year ago

Hard to tell without direct access to your system, but as far as I understood you'll need an Kostal UI => 6.11. There is an update to Version 6.41 for your inverter on the Kostal Homepage. Perhaps also an FW Update could be usefull. Which version of UI and firmware are you using?

freakyfreaky commented 1 year ago

A very old one. :) It is a Piko 5.5 with version 3.75 According first Google result there is no update option for this old buddy

Don’t worry too much if there is no way arround. I will script something as I did with my old PHP setup. I just wanted to give the adapter a try on a non supported version to test it for you.

freakyfreaky commented 1 year ago

03BBDC98-B43C-4C14-8646-32929B6A6CF4

hombach commented 1 year ago

Are you sure there is no new firmware available? Because of HW version? By a short check in sentry there have been using 14 PIKO 5.5 owners the adapter in the past few days (without error) UI v6.11; v6.20; v6.30 and v6.41

hombach commented 1 year ago

Looks like there has been v4 released in summer 2011... as initial version. Perhaps new hardware at the same date?https://www.kostal-solar-electric.com/de-de/download/archiv/#Solar-Wechselrichter/PIKO%204.2%20-%208.5/Deutschland/Update/