Open Fr35h-RS opened 8 months ago
Anbei weitere Protokolldetails:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant
Quelle: custom_components/speedport/device_tracker.py:75
Integration: Speedport (Dokumentation, Probleme)
Erstmals aufgetreten: 08:30:46 (373 Vorkommnisse)
Zuletzt protokolliert: 17:01:58
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 414, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/config/custom_components/speedport/device_tracker.py", line 117, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1080, in __async_calculate_state
shadowed_attr[ATTR_ICON] = self.icon
^^^^^^^^^
File "/config/custom_components/speedport/device_tracker.py", line 85, in icon
if self.is_connected:
^^^^^^^^^^^^^^^^^
File "/config/custom_components/speedport/device_tracker.py", line 75, in is_connected
return self._device.connected
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'connected'
I have the same problem, additionally I have noticed, that I can't access the speedport homepage (in my case 192.168.2.1) not anymore
Hallo,
auch ich finde die Integration klasse... Leider gibt es auch bei mir seit einem HA Update von Ende März das Problem, dass die Device Tracker für alle mobilen Geräte immer Home anzeigt.
got the same problem. the device_tracker was never changed, even though the device was connected/disconnected to the router.
here's the log:
2024-05-21 21:24:30.116 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 414, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/config/custom_components/speedport/device_tracker.py", line 117, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1093, in __async_calculate_state
shadowed_attr[ATTR_ICON] = self.icon
^^^^^^^^^
File "/config/custom_components/speedport/device_tracker.py", line 85, in icon
if self.is_connected:
^^^^^^^^^^^^^^^^^
File "/config/custom_components/speedport/device_tracker.py", line 75, in is_connected
return self._device.connected
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'connected'
The HA version:
2024.5.4
2024.05.1
12.3
20240501.1
@Tra2x I got this error as well a couple days ago when I tried this. I think the Speedport interface (web server) was killed and crashed because it couldn't handle the request. Eventhough the web server interface crashed and killed, the router still works normally. Restarting the router will also restart the web server for the interface.
I created a PR to fix this issue. I think the problem is in the latest SpeedPort. when the device is disconnected, it gets removed.
Unless my PR gets merged and the new version is released, you can fix it by yourself.
/config/custom_components/speedport/device_tracker.py
.device_tracker.py
and save it.@matriphe Thank you, with the file you provided the device tracker works again as expected.
Hallo,
vielen Dank für die tolle Integration! Aktuell scheint es leider Probleme zu geben, vielleicht ist ein Update schuld. Ich verwende einen Speedport Smart 4 Plus und aktuell scheint der device_tracker nicht mehr zu funktionieren. Ich konnte das Problem eingrenzen, es scheint seit ca. 26.03.24 aufzutreten. Woran kann das liegen?
Folgendes konnte ich per Debug-Protokollierung aufzeichnen: