@Maaarc Can you please check the logs at setzings → settings → logs?
@bastian first my repo does not support HACS yet. Can you try copying the files manually as described? I guess you have also reported this issue at guthub, right?
Currently I have no clue why the IDs should not be unique.
Do you see the kostal_piko entities twice?
thanks and apologies - I am pretty new to all of this and am trying to get up to spead - I thought pasting the link into customary depositories in HACS would have been copying, but will read through the description and give it another go in the next days and update you thereafter.
I have not reported the issue anywhere else until now - if it helps happy to do so.
I do not see any entities twice.
Again thanks so much for all your efforts and help!
Best
Bastian
Logger: custom_components.kostal_piko.sensor
Source: custom_components/kostal_piko/sensor.py:87
Integration: kostal_piko
First occurred: June 26, 2022 at 10:34:52 PM (93509 occurrences)
Last logged: 6:19:02 PM
Failed updating sensor Kostal PIKO Home Consumption Battery: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Grid: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 1: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 2: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 3: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
@bastian you are welcome. Let me know if it works for you or if you need further instructions.
@Maaarc okay, there is a decoding issue. The message received from the inverter has a different format than expected or maybe the API has changed and nothing fits anymore… or simply the authentication does not work
I will add some additional log output so we can debug this. Is that okay for you? It can be a little bit cumbersome from now on… just that I have mentioned it… Are you willing to go that path? Just asking before I put additional effort in it.
I deleted everythign from HASC and simply copy pasted it plus adjusted the configuration.yaml. However I still get the same issue that when I look in the entities it says sensor.kostal_xxx has no unique ID so it can’t be managed via the UI. Additionally I get the following error in the log file:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.kostal_piko.sensor
Source: custom_components/kostal_piko/sensor.py:87
Integration: kostal_piko (documentation, issues)
First occurred: 09:56:11 (6560 occurrences)
Last logged: 11:18:00
Failed updating sensor Kostal PIKO Home Consumption Battery: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Grid: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 1: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 2: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Failed updating sensor Kostal PIKO Home Consumption Phase 3: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)
Any idea what I am doing wrong here? Thanks a lot for your help - truely appreciated.
-Inverter Type: PIKO 4.2.
-firmware version: ver 3.74
Also, maybe you could easier find the problem, when you’re troubleshooting on my PC, via AnyDesk, TeamViewer or Discord…
Because it’s probably hard to figure out what doesn’t work if you don’t have it yourself.
I don’t have much idea how to go about solving such a problem, but maybe that would help you.
I also saw that you addressed a German user forum about this Integration on GitHub.
I had again a look at your video and I am afraid that your inverter does not support exposing any data via API…
It should have looked something like that:
Do you know, by any chance, how to set this up because I could not find instructions?
I did the same steps as with your integration, and it did not work.
I didn’t try it out but I guess it works the same as with my integration. Copy the files from the custom_components folder from github to your HA instance.
Then add to you configuration.yaml just one line:
kostal:
Its not a sensor so it must be on root level.
the rest should work out of the box and you should be able to configure the integration from the integrations view.
want to confirm that the integration is working with a Piko 20 / FW 6.17 / UI 06.53.
Since I do not have the KSEM due to availability I am using the EDL21 Integration with a optical sensor on my main power meter (Norax 3D) to record current power (W) and total positive / negative energy (Wh).
I will use the above mentioned calculation to create a template/sensor with my Home Consumption for Grafana. Just want to say thank you for the great work / the integration.
Since above calculations wont work for me here what I used now and added it to the configuration.yaml. Name of second sensor is a bit misleading. Actually I have calculated my current home power usage and not only the PV-Power usage.
Had to divide the Power Meter reading by 1000 since it is handed over in Wh / W and the piko 20 is handing over in kWh / kW.
WIth this template sensor I was now able to create a graph for Home Consumption (green) in relation to PV-Output (yellow). Autoarchy was not too good today evening ;).