c’est quoi le valuer de input_select.direction_bus? Essaie avec | int aussi
En fait…c’est pas vraiment qqc de gtfs mais plutôt templating, je te conseille d’apprendre ça.
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_select.direction_bus
- type: markdown
content: >-
<table> {% set next =
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')%}
{% for i in range(0, next | count, 1) %} {%- if
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')[i].direction_id
== states("input_select.direction_bus") | int -%}
<tr> <td>{{
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')[i].route
}}</td> <td>{{
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')[i].departure
}}</td> <td>{{
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')[i].stop_name
}}</td> <td>{{
state_attr('sensor.llglamb3_local_stop_zone_place_st_lambert','next_departures_lines')[i].direction_id
}}</td> {% endif %} {% endfor %}
card_mod:
style:
.: |
ha-card ha-markdown {
padding:0px
border-top: 1px groove var(--divider-color);
overflow-y: scroll;
height: 300px;
}
ha-card ha-markdown.no-header {
padding:0px
}
$: |
h1.card-header {
background-color:rgb(100, 100, 100);
padding: 0px 0px 0px 12px !important;
color: white !important;
font-weight: normal;
font-size: 1.5em !important;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
height: 100%;
}
ha-markdown $: |
h1 {
font-weight: normal;
font-size: 24px;
}
table{
border-collapse: collapse;
font-size: 0.9em;
font-family: Roboto;
width: 100%;
outline: 0px solid #393c3d;
margin-top: 10px;
}
td {
padding: 5px 5px 5px 5px;
text-align: left;
border-bottom: 0px solid #1c2020;
}
tr:nth-of-type(even) {
background-color: rgb(54, 54, 54, 0.3);
}
Avec -int, cela fonctionne ![]()
merci
Hello,
J’ai un soucis avec GTFS2 et HA 2026.3, depuis les mises à jours mon HA reboot toutes les quelques heures.
Au début j’ai cherché dans les logs longtemps sans trouver l’origine du problème. Je me suis donc mis à désactiver toutes les intégrations HACS. Après réactivation successive, j’ai retrouvé le symptôme en réactivant GTFS2 ce matin.
J’ai donc supprimé la base sqlite pour réimporter mes données. le problème continue.
Voici un extrait des logs :
2026-03-16 18:22:06.269 DEBUG (MainThread) [custom_components.gtfs2.coordinator] Previous data: …
2026-03-16 18:22:06.270 DEBUG (MainThread) [custom_components.gtfs2.gtfs_helper] Getting gtfs with data: …
2026-03-16 18:22:06.270 DEBUG (MainThread) [custom_components.gtfs2.gtfs_helper] Checking if extracting: Divia
2026-03-16 18:22:06.276 DEBUG (MainThread) [custom_components.gtfs2.gtfs_helper] Checking if extracting: Divia
2026-03-16 18:22:06.277 DEBUG (MainThread) [custom_components.gtfs2.coordinator] Run static refresh: sensor without gtfs data OR refresh for name: 34 - Diebolt
2026-03-16 18:22:06.277 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] Check datasource index for file: Divia
2026-03-16 18:22:06.277 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] Checking if extracting: Divia
2026-03-16 18:22:06.279 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] IDX result1: {'checkidx': 1}
2026-03-16 18:22:06.281 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] IDX result2: {'checkidx': 1}
2026-03-16 18:22:06.282 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] IDX result3: {'checkidx': 1}
2026-03-16 18:22:06.283 DEBUG (SyncWorker_5) [custom_components.gtfs2.gtfs_helper] IDX result4: {'checkidx': 1}
2026-03-16 18:22:06.284 ERROR (MainThread) [custom_components.gtfs2.coordinator] Unexpected error fetching 01JRYZNNJV65TKTVH18RECYPJC data
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 3297, in raw_connection
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 449, in connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 1264, in _checkout
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 713, in checkout
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/util/langhelpers.py", line 224, in __exit__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 675, in __init__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 901, in __connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/util/langhelpers.py", line 224, in __exit__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 897, in __connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/create.py", line 646, in connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/default.py", line 625, in connect
sqlite3.OperationalError: unable to open database file
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 426, in _async_refresh
File "/config/custom_components/gtfs2/coordinator.py", line 104, in _async_update_data
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
File "/config/custom_components/gtfs2/gtfs_helper.py", line 821, in check_datasource_index
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 3273, in connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 147, in __init__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2436, in _handle_dbapi_exception_noconnection
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 3297, in raw_connection
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 449, in connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 1264, in _checkout
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 713, in checkout
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/util/langhelpers.py", line 224, in __exit__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 675, in __init__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 901, in __connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/util/langhelpers.py", line 224, in __exit__
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/pool/base.py", line 897, in __connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/create.py", line 646, in connect
File "/usr/local/lib/python3.14/site-packages/sqlalchemy/engine/default.py", line 625, in connect
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
(Background on this error at: https://sqlalche.me/e/20/e3q8)
…
2026-03-16 18:23:56.525 ERROR (MainThread) [homeassistant] Fatal error '[Errno 24] No file descriptors available' raised in event loop, shutting it down
2026-03-16 18:23:56.525 ERROR (MainThread) [asyncio] Unhandled error in exception handler
context: {'message': 'socket.accept() out of system resource', 'exception': OSError(24, 'No file descriptors available'), 'socket': <asyncio.TransportSocket fd=13, family=2, type=1, proto=6, laddr=('0.0.0.0', 8123)>}
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 178, in _accept_connection
File "/usr/local/lib/python3.14/socket.py", line 298, in accept
OSError: [Errno 24] No file descriptors available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1929, in call_exception_handler
File "/usr/src/homeassistant/homeassistant/runner.py", line 251, in _async_loop_exception_handler
File "/usr/local/lib/python3.14/asyncio/unix_events.py", line 70, in close
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 101, in close
RuntimeError: Cannot close a running event loop
2026-03-16 18:23:56.526 ERROR (MainThread) [homeassistant] Error doing job: socket.accept() out of system resource (task: None)
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 178, in _accept_connection
File "/usr/local/lib/python3.14/socket.py", line 298, in accept
OSError: [Errno 24] No file descriptors available
2026-03-16 18:23:56.527 ERROR (MainThread) [homeassistant] Fatal error '[Errno 24] No file descriptors available' raised in event loop, shutting it down
2026-03-16 18:23:56.527 ERROR (MainThread) [asyncio] Unhandled error in exception handler
context: {'message': 'socket.accept() out of system resource', 'exception': OSError(24, 'No file descriptors available'), 'socket': <asyncio.TransportSocket fd=13, family=2, type=1, proto=6, laddr=('0.0.0.0', 8123)>}
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 178, in _accept_connection
File "/usr/local/lib/python3.14/socket.py", line 298, in accept
OSError: [Errno 24] No file descriptors available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1929, in call_exception_handler
File "/usr/src/homeassistant/homeassistant/runner.py", line 251, in _async_loop_exception_handler
File "/usr/local/lib/python3.14/asyncio/unix_events.py", line 70, in close
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 101, in close
RuntimeError: Cannot close a running event loop
…
2026-03-16 18:23:56.794 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 229, in <module>
sys.exit(main())
~~~~^^
File "/usr/src/homeassistant/homeassistant/__main__.py", line 215, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 289, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 717, in run_until_complete
raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.
2026-03-16 18:23:56.828 WARNING (bellows.thread_0) [bellows.thread] Attempted to use a closed event loop
[x88]
2026-03-16 18:24:06.663 WARNING (bellows.thread_0) [bellows.thread] Attempted to use a closed event loop
[17:24:13] INFO: Home Assistant Core finish process exit code 1
[17:24:13] INFO: Home Assistant Core service shutdown
// Restart of HA
Si jamais quelqu’un a une idée d’où continuer mes recherches.
Merci à tous,
Installer la dernière version 0.5.8.1
Si ça ne change rien, stp ouvrir un issue ici
Bonjour,
Après une semaine depuis la mise à jour sur cette version je n’ai plus de soucis. Merci