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

All Tradfri Battery sensors are not available anymore #868

Closed
felixmueller opened this issue May 13, 2024 · 1 comment
Closed

All Tradfri Battery sensors are not available anymore #868

felixmueller opened this issue May 13, 2024 · 1 comment

Comments

@felixmueller
Copy link

Where are you using pytradfri (eg stand-alone, Home Assistant etc)

Home Assistant

Version of pytradfri

Version included in HA Core 2024.5.3
Version of Tradfri Gateway: 1.21.31

Backend used (aiocoap, libcoap)

What type of environment are you in, eg Dockerized, Raspberry PI, VirtualBox, WiFi network (give as much details as possible)

HA OS Supervised

Expected behaviour

All Tradfri Battery sensors are available as before.

Actual behaviour

All Tradfri Battery sensors are not available anymore.

Error in the log pointing to this lib (firmware version):

Error while setting up tradfri platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 162, in async_setup_entry
TradfriSensor(
File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 186, in init
super().init(
File "/usr/src/homeassistant/homeassistant/components/tradfri/base_class.py", line 65, in init
sw_version=info.firmware_version,
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytradfri/device/init.py", line 177, in firmware_version
return self.raw[ATTR_DEVICE_FIRMWARE_VERSION]

KeyError: '3'
@felixmueller
Copy link
Author

Update: today all battery sensors suddenly came back to life without altering anything ¯\_(ツ)_/¯
tradfri-batteries

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