Battery drain with Osram Smart+ Mini Switch / Raspbee II / deconz

Hello there,

I have a question about the “OSRAM AC025XX00NJ SMART+ Switch Mini”: I have in total 3 of those and 2 of those seem to drain the battery quite quickly (in a few days). I have no idea why and how to debug this. I searched for ‘Osram mini switch battery drain’ and could find other people with the same problem but no obvious solution (example)

Somewhere (cannot find it again) I read that the battery level polling interval can be changed and that might affect runtime.

Home Assistant 6.6 installed on raspberrypi4 using the default installation procedure.

I’m using this blueprint to configure the automation: Controller - OSRAM AC025XX00NJ SMART+ Switch Mini | Awesome HA Blueprints

The only difference in terms of configuration is that I use ‘long press’ in the automation on the switch that drains pretty quickly. I guess I can try removing the long press and see if it still drains quickly.

Logs (looks unrelated to me):

2021-12-09 19:18:34 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547485558528] Received invalid command: energy/get_prefs
sistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-12 17:26:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-12 17:57:00 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-12-12 18:32:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 08:02:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 08:02:46 WARNING (SyncWorker_3) [homeassistant.components.mitemp_bt.sensor] Polling error
2021-12-14 08:13:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 09:03:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 09:06:44 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.178.38 data: Unable to connect to the device: 192.168.178.38
2021-12-14 09:30:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 09:36:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 09:36:11 WARNING (SyncWorker_8) [homeassistant.components.mitemp_bt.sensor] Polling error
2021-12-14 09:41:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 12:54:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.mitemp_bt_temperature is taking over 10 seconds
2021-12-14 12:54:20 WARNING (SyncWorker_1) [homeassistant.components.mitemp_bt.sensor] Polling error
2021-12-14 12:54:24 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
2021-12-14 13:00:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of 

Any ideas?