sla89 / hassio-kostal-piko Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Kostal PIKO Inverter Integration
License: MIT License
Home Assistant Kostal PIKO Inverter Integration
License: MIT License
Hello,
since the Core Update I have a lot of problems with the Kostal Entities. I get a lot of errors while updating the sensors. See the log:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.kostal_piko.sensor
Source: custom_components/kostal_piko/sensor.py:89
Integration: kostal_piko (documentation, issues)
First occurred: 17:37:24 (156 occurrences)
Last logged: 17:43:34
Failed updating sensor Kostal PIKO Phase 1 Power: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='192.168.0.92', port=80): Max retries exceeded with url: /api/dxs.json?dxsEntries=67109379 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6e1ceb5960>, 'Connection to 192.168.0.92 timed out. (connect timeout=10)'))"))
Failed updating sensor Kostal PIKO DC Input 3 Power: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='192.168.0.92', port=80): Max retries exceeded with url: /api/dxs.json?dxsEntries=33555715 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6e1d354700>, 'Connection to 192.168.0.92 timed out. (connect timeout=10)'))"))
Failed updating sensor Kostal PIKO Phase 2 Current: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='192.168.0.92', port=80): Max retries exceeded with url: /api/dxs.json?dxsEntries=67109633 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6e1ceb6230>, 'Connection to 192.168.0.92 timed out. (connect timeout=10)'))"))
Failed updating sensor Kostal PIKO Phase 1 Voltage: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='192.168.0.92', port=80): Max retries exceeded with url: /api/dxs.json?dxsEntries=67109378 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6e1ceb5090>, 'Connection to 192.168.0.92 timed out. (connect timeout=10)'))"))
Failed updating sensor Kostal PIKO Phase 3 Current: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='192.168.0.92', port=80): Max retries exceeded with url: /api/dxs.json?dxsEntries=67109889 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6e1ceb7940>, 'Connection to 192.168.0.92 timed out. (connect timeout=10)'))"))
Firmware and Software are the same as before the core update.
Does anyone have an idea how I can solve the problem?
Thanks a lot.
Many regards
Hi.
Could you perhaps describe what kostal piko model/version you have tested with
and if login is required (or if it's using the default) - or if the api isnt protected at all ?
I followed the instructions, but looks like it's unable to fetch the data.
PIKO 5.5
Moin Stefan,
after the core update yesterday evening Home Assistant lost connection to my Piko 20 Inverter. I had following error message in the logs:
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:583
Integration: Sensor (documentation, issues)
First occurred: 10:06:34 (2 occurrences)
Last logged: 10:06:34
Error adding entities for domain sensor with platform kostal_piko
Error while setting up kostal_piko platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 579, in state
numerical_value = int(value)
ValueError: invalid literal for int() with base 10: 'Input (MPP)'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 731, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 846, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 583, in state
raise ValueError(
ValueError: Sensor sensor.kostal_piko_inverter_state has device class None, state class measurement unit None and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: Input (MPP) (<class 'str'>)
After a restart Home Assistant picked only up one updated value and stopped fetching values again.
I changed now the state class of Piko Inverter to None to fix the problem temporarly and it is working again. I now get updated values again, but the values are interuppted. See screenshots.
Do you have any better solution for it?
Brgds
Christopher
Moin Stefan,
Test Issued as requested.
Brgds
Christopher
Hi there,
I need the power information quicker than currently given by this great work.
Is there a way to set an interval for the update?
I would need about 5 seconds interval.
Any ideas?
I getting below error:
Logger: homeassistant.config
Source: config.py:552
First occurred: 22:23:10 (1 occurrences)
Last logged: 22:23:10
Invalid config for 'template' at configuration.yaml, line 50: 'platform' is an invalid option for 'template', check: sensor->0->platform Invalid config for 'template' at configuration.yaml, line 50: required key 'state' not provided Invalid config for 'template' at configuration.yaml, line 51: 'host' is an invalid option for 'template', check: sensor->0->host
Logger: homeassistant.const
Source: helpers/deprecation.py:204
First occurred: 13:18:59 (7 occurrences)
Last logged: 13:18:59
POWER_KILO_WATT was used from kostal_piko, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.KILO_WATT
ELECTRIC_POTENTIAL_VOLT was used from kostal_piko, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT
TIME_HOURS was used from kostal_piko, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.HOURS
ELECTRIC_CURRENT_AMPERE was used from kostal_piko, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE
FREQUENCY_HERTZ was used from kostal_piko, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfFrequency.HERTZ
thanks Adrian
Guys, came to ask here
My Kostal 5.5 DCS was replaced with a new NG model (green bar logo) very recently
What i now notice with the bad weather and quite dark outside in morning/evening, i see a lot of startup / downs of the NG
Seems it wants to start , but gets not enough power, to finally start... do you guys also see this?
testing notifications for me
Hi,
i use your solution with Kostal Piko 5.5
UI 06.41
FW 05.61
HW 0100
PAR 02.74
Everything is working fine!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.