Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NaN in Avgång #23

Closed
fatuuse opened this issue Jan 14, 2023 · 5 comments
Closed

NaN in Avgång #23

fatuuse opened this issue Jan 14, 2023 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fatuuse
Copy link

fatuuse commented Jan 14, 2023

In the departure box I get NaN for leaving in x minutes
Screenshot_20230114-102610

attributes in sensor for station:

unit_of_measurement: min
api_result: Ok
scan_interval: 300
refresh_enabled: false
attribution: Stockholms Lokaltrafik
departures:
  - line: '474'
    direction: 1
    departure: 6 min
    destination: Hemmesta
    time: 6
    expected: '2023-01-14T10:22:00'
    type: Buses
    groupofline: blåbuss
    icon: mdi:bus
deviations: []
last_refresh: '2023-01-14 10:15:24'
next_departure_minutes: 0
next_departure_time: '10:30:18'
deviation_count: 0
icon: mdi:train
friendly_name: Slussen

Departure card: 2.6.0
Swedish Public Transport Sensor (HASL): 3.1.0
HASS: 2023.1.4

@DSorlov DSorlov added bug Something isn't working help wanted Extra attention is needed labels Feb 3, 2023
@morlic
Copy link
Contributor

morlic commented Feb 14, 2023

what's your card configuration?

@fatuuse
Copy link
Author

fatuuse commented Feb 15, 2023

type: custom:hasl-departure-card
adjust_times: true
departures: true
deviations: true
header: true
hide_departed: false
language: sv-SV
timeleft: true
compact: true
max_departures: 5
entities:
  - sensor.sl_departure_sensor_9192_slussen

@fatuuse
Copy link
Author

fatuuse commented Feb 15, 2023

I removed timeleft: true and now it shows the time when it leaves. And that's works. But not how many minutes it's left.

@fatuuse fatuuse closed this as completed Feb 15, 2023
@fatuuse fatuuse reopened this Feb 15, 2023
@fatuuse
Copy link
Author

fatuuse commented Feb 18, 2023

It's the adjust_times: true that's makes it fail.
With adjust_times: false it's working.

@Svardsten53
Copy link

It would be nice if both timeleft: and adjust_time: could be set to true. It worked perfect earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants