hasl-sensor / integration

Swedish Public Transport Sensor (HASL). Formerly named HomeAssistant SL Sensor
https://hasl.sorlov.com
Apache License 2.0
36 stars 8 forks source link

direction is not working #52

Open Sadoo-MH opened 1 year ago

Sadoo-MH commented 1 year ago

Hello i am using the resrobot Departure integration with the departures card, the problem that i am facing is wheneven i choose Direction 1 or 2 only the next bus shows and not all the busses, thus the card doesn't show any value image and when adding it to the card it doesn't show anything image but when choose the direction to be 0 then i get all the values, and the card shows perfectly but it shows booth direction, i am only interested in 1 direction where i need to go to Centrallen not the other way around, so do you think this can be fixed ? or is it an error from my side here is my card configuration:

`type: custom:hasl-departure-card
header: true
departures: true
deviations: true
timeleft: false
updated: true
name: Departures
adjust_times: false
hide_departed: false
language: en-EN
entities:
  - sensor.rr_departure_sensor_740017500_busses_test_1`

and here is when i choose the direction to be 0 this is the card: image

and here is the sensor: image

Thank you so much for your help. BTW i am using the last version of the card which is : 2.6.1 and Home assistant 2023.3.1

ubbeus commented 1 year ago

I believe I'm experiencing the same problem.

If I set Attribute in the card to "Departures" I get the following:

If I change Attribute to nothing it shows: 15 min

which is the departure in direction 1, The direction chosen in the integration configuration is 2.