Closed dextouu closed 2 years ago
Same issue on some bus line. The "any" direction does not seems to work well. If I change the bus stop, it seems to be ok. Here after the logs : ` 2022-04-16 14:13:42 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session 2022-04-16 14:13:42 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.idfm 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.idfm 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.idfm entity: sensor.idfm_mairie_sceaux_any_0 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.idfm entity: sensor.idfm_mairie_sceaux_any_1 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.idfm entity: sensor.idfm_mairie_sceaux_any_2 2022-04-16 14:13:42 ERROR (MainThread) [idfm_api] Error while fetching information from https://api-iv.iledefrance-mobilites.fr/lines/line:IDFM:C01213/stops/stop_area:IDFM:70010 /realTime - None 2022-04-16 14:13:42 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.idfm entity: binary_sensor.idfm_192_ratp_mairie_sceaux
`
Here what is shown on dashboard
NB : if you go on other bus stop , the integration works. Addition to "ANY" there are direction values. The issue is linked to this ?
My guess in error value, you have realTime - None
If the guess is ok, perhaps, can you add an attribute saying that realTime is not provided for this station
@dextouu Cela devrait etre corrigé dans la nouvelle version (1.1.3), pouvez-vous tester ?
@jugla It seems like the bus stop "Mairie - Sceaux" doesn't provide any realtime information (see here) , while the others bus stops does (like this one).
I don't really see the point of adding an attribute just to say that the data is not avaialable as this is already reported by home assistant with the state "Inconnu".
For unknown state, I understand what you said. No real time --> unknown. It's more if you want to report error to the user , it's easier if you have a dedicated attribute (let's say on the binary sensor)
I think that an attribute would be more suited for a value that changes, here the "no real time" is probably something that will not change, so I think that's fine to just reaport it as an error in the logs.
attribute will be fine ;-)
Bonjour, j'ai essayé la ligne D et la R ne fonctionnent pas quand on sélectionne certaines gares. ( ligne D: Melun, ligne R: Fontainebleau)