You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running an E3/DC S10E, pye3dc 0.9.2 and e3dc_to_mqtt 0.0.19. Periodically, I get exceptions:
2025-10-05 20:59:16:ERROR: exception in main loop
Traceback (most recent call last):
File "/usr/local/e3dc/e3dc_to_mqtt/e3dc_to_mqtt_base.py", line 164, in run
battery_data = await self.e3dc.get_battery_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/e3dc/e3dc_to_mqtt/e3dc_to_mqtt_base.py", line 299, in get_battery_data
battery_data = self.__e3dc.get_battery_data(batIndex=i)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sh/.venvs/3.11/lib/python3.11/site-packages/e3dc/_e3dc.py", line 1563, in get_battery_data
temperatures.append(temperatures_data[sensor][2])
~~~~~~~~~~~~~~~~~^^^^^^^^
IndexError: list index out of range
The program crashes when sensor becomes 5. I tried printing the temperature_raw and info data:
Activity
bullitt186 commentedon Oct 23, 2025
I ran into the same issue and opened a simple PR to fix this. In my case BAT_DCB_NR_SENSOR returns 35, while i have 5 actual temperature sensors.
#132