Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

high processor load (100%) after activating the device #138

Open
stixif opened this issue Dec 5, 2024 · 4 comments
Open

high processor load (100%) after activating the device #138

stixif opened this issue Dec 5, 2024 · 4 comments

Comments

@stixif
Copy link

stixif commented Dec 5, 2024

after activating the device, the CPU load increases to 100%

it is connected via an FGB14-USB

I have 165 devices in use
and therefore also some entities

is it possible to improve performance here?

what would be the best approach to get something out of this

@stixif
Copy link
Author

stixif commented Dec 6, 2024

HomeAssistent Core: 2024.12.0
home-Assistant-eltako: 1.5.8

i reduced to 5 devices in the config for eltako
now the cpu load is on 37% and i can work...

is this my problem?

Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:608
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 15:47:21 (1 Vorkommnisse)
Zuletzt protokolliert: 15:47:21

Error adding entity sensor.eltako_gw1_00_00_00_15_received_messages_per_session for domain sensor with platform eltako
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 840, in _async_add_entity
unit_of_measurement=entity.unit_of_measurement,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 523, in unit_of_measurement
if self._is_valid_suggested_unit(suggested_unit_of_measurement):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 385, in _is_valid_suggested_unit
raise ValueError(
...<2 lines>...
)
ValueError: Entity <class 'custom_components.eltako.sensor.GatewayReceivedMessagesInActiveSession'> suggest an incorrect unit of measurement: Messages.

@grimmpp
Copy link
Owner

grimmpp commented Dec 6, 2024

There should be actually only load on the system if you send really many telegram constantly. I've made the experience that Eltako Bus is much slower than my HA device.
I experienced more difficulties with some HA updates which had background processes causing load. Are you running the integration for longer?

@stixif
Copy link
Author

stixif commented Dec 7, 2024

no.. is a new installation of HA!
all works well.. (3-4% CPU Load)
but if i activate the Eltako integration with all devices (100% CPU Load)
with only 5 Devices it works with (30% CPU Load)

i make an update to the newest HA Verison today!

i have this error in the Log
`
Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:608
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 13:31:31 (1 Vorkommnisse)
Zuletzt protokolliert: 13:31:31

Error adding entity sensor.eltako_gw1_00_00_00_15_received_messages_per_session for domain sensor with platform eltako
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 840, in _async_add_entity
unit_of_measurement=entity.unit_of_measurement,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 523, in unit_of_measurement
if self._is_valid_suggested_unit(suggested_unit_of_measurement):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 385, in _is_valid_suggested_unit
raise ValueError(
...<2 lines>...
)
ValueError: Entity <class 'custom_components.eltako.sensor.GatewayReceivedMessagesInActiveSession'> suggest an incorrect unit of measurement: Messages.
`

@stixif
Copy link
Author

stixif commented Dec 8, 2024

here a few errors, i got all the time...

2024-12-08 10:57:59.536 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.eltako_gw1_00_00_00_15_received_messages_per_session for domain sensor with platform eltako
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 840, in _async_add_entity
unit_of_measurement=entity.unit_of_measurement,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 523, in unit_of_measurement
if self._is_valid_suggested_unit(suggested_unit_of_measurement):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 385, in _is_valid_suggested_unit
raise ValueError(
...<2 lines>...
)
ValueError: Entity <class 'custom_components.eltako.sensor.GatewayReceivedMessagesInActiveSession'> suggest an incorrect unit of measurement: Messages.

2024-12-08 10:57:59.555 ERROR (MainThread) [homeassistant.components.cover] Error adding entity cover.eltako_gw1_00_00_00_31 for domain cover with platform eltako
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 927, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1383, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/eltako/device.py", line 102, in async_added_to_hass
self.load_value_initially(latest_state)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/config/custom_components/eltako/cover.py", line 120, in load_value_initially
raise e
File "/config/custom_components/eltako/cover.py", line 88, in load_value_initially
self._attr_current_cover_position = latest_state.attributes['current_position']
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'current_position'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants