Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Sensor Status is Unknown #56

Open
ASMediaDev opened this issue Oct 24, 2024 · 2 comments
Open

Sensor Status is Unknown #56

ASMediaDev opened this issue Oct 24, 2024 · 2 comments
Labels
dependency Issue within schiene python module, not the HA integration wontfix This will not be worked on

Comments

@ASMediaDev
Copy link

The problem

Since mid of october, the integration is not working for me anymore.
I get this error in the logs:

This error originated from a custom integration.

Logger: custom_components.deutschebahn.sensor
Source: custom_components/deutschebahn/sensor.py:154
integration: Deutsche Bahn (documentation, issues)
First occurred: October 23, 2024 at 10:21:54 (6556 occurrences)
Last logged: 09:09:58

Requested 2 connections, but only 1 are available.

This morning I also noticed this error:


This error originated from a custom integration.

Logger: custom_components.deutschebahn.sensor
Source: custom_components/deutschebahn/sensor.py:139
integration: Deutsche Bahn (documentation, issues)
First occurred: 08:49:58 (2 occurrences)
Last logged: 08:49:58

Cannot retrieve data for direction: 'Roth' 'Schwabach' - Most likely it is a temporary API issue from DB and will stop working after a HA restart/some time.
Cannot retrieve data for direction: 'Roth' 'Nuremberg' - Most likely it is a temporary API issue from DB and will stop working after a HA restart/some time.
Traceback (most recent call last):
  File "/config/custom_components/deutschebahn/sensor.py", line 143, in async_update
    self.connections = await hass.async_add_executor_job(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/deutschebahn/sensor.py", line 139, in async_update
    with async_timeout.timeout(30):
  File "/usr/local/lib/python3.12/site-packages/async_timeout/__init__.py", line 128, in __exit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.12/site-packages/async_timeout/__init__.py", line 228, in _do_exit
    raise asyncio.TimeoutError
TimeoutError

What version of Home Assistant Core has the issue?

2024.10.3

What version of DeutscheBahn Integration has the issue?

3.0.3

What type of installation are you running?

Home Assistant OS

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@tolu-001
Copy link

tolu-001 commented Nov 7, 2024

Same problem here - anyone working on it?

@FaserF
Copy link
Owner

FaserF commented Nov 7, 2024

Unfortunatly there wont be worked on, since this is no issue with the integration, the dependency is not that reliable and temporary interruptions will be normal, as written in the log: "Cannot retrieve data for direction: 'Roth' 'Schwabach' - Most likely it is a temporary API issue from DB and will stop working after a HA restart/some time."

@FaserF FaserF added dependency Issue within schiene python module, not the HA integration wontfix This will not be worked on labels Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency Issue within schiene python module, not the HA integration wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants