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

KeyError: 'current_position' with FSB14 #139

Open
stixif opened this issue Dec 8, 2024 · 0 comments
Open

KeyError: 'current_position' with FSB14 #139

stixif opened this issue Dec 8, 2024 · 0 comments

Comments

@stixif
Copy link

stixif commented Dec 8, 2024

Hi,
i got this error for all Covers...

i use the newest version of HA 2024.12 and V1.5.8 of Eltako

i use FSB14
cover:
- id: 00-00-00-30 # address (HEX)
eep: G5-3F-7F # Supported EEP telegrams: G5-3F-7F (FHEM A5-3F-7F)
name: "Rollo_OG_WC" # optional: display name
sender: # virtual switch in Home Assistant.
id: 02-00-00-30 # every sender needs it's own address which needs to be entered in PCT14 / actuator with function group 31 for FSB14.
eep: H5-3F-7F
device_class: shutter # optional for showing the right icon and panels in Home Assistant
time_closes: 24 # optional: The time it takes until the cover is completely closed (used for position calculation)
time_opens: 18 # optional: The time it takes until the cover is completely opened (used for position calculation)

2024-12-08 10:57:59.560 ERROR (MainThread) [homeassistant.components.cover] Error adding entity cover.eltako_gw1_00_00_00_32 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

1 participant