vas3k / lovelace-berlin-transport-card

Lovelace card for https://github.com/vas3k/home-assistant-berlin-transport
MIT License
10 stars 3 forks source link

The lovelace-card doesn't work #6

Open Svetlinski1985 opened 5 months ago

Svetlinski1985 commented 5 months ago

Unfortunately, the card does not work for me. I have tried to install it both manually and via Hacs. Unfortunately, neither works for me.

Do you have any idea what I'doing wrong?

Webaufnahme_18-1-2024_215217_bozhanov-sh duckdns org

Webaufnahme_18-1-2024_215339_bozhanov-sh duckdns org

Webaufnahme_18-1-2024_21569_bozhanov-sh duckdns org

However, the app works well.

Webaufnahme_18-1-2024_215444_bozhanov-sh duckdns org

JonasPfz commented 4 months ago

same issue for me

TAOGde commented 4 months ago

on my side it works.

update: nur ne Frage, die lovelace habt ihr auch eingebunden oder nur die entitie?

JonasPfz commented 4 months ago

on my side it works.

update: nur ne Frage, die lovelace habt ihr auch eingebunden oder nur die entitie?

Hi TAOGde,

ich habe sowohl die Integration als auch die Lovelace/ Frontend installiert und es auch als Ressource hinzugefügt.

Die Daten sind auch alle da / der Abruf/ Entity funktioniert - nur bei "- type: custom:berlin-transport-card" kriege ich den Fehler "No card type found"

Ich hatte auch nochmal die manuelle Anleitung gecheckt und es ist alles da..

TAOGde commented 4 months ago

Ich habe gestern alles über HACS installiert und musste einmal HA Neustarten. Das mit dem nicht "no card type found" kenne ich nur davon wenn das .js nicht geladen wurde.

JonasPfz commented 4 months ago

Neugestartet habe ich natürlich auch bereits

Die Ressource erkennt er auch bei mir automatisch - der Fehler kommt trotzdem: /hacsfiles/lovelace-berlin-transport-card/berlin-transport-card.js?hacstag=xxxxxxxxx

TAOGde commented 4 months ago

dann fällt mir nur noch ein den cache vom browser einmal löschen damit wirklich alles neu geladen werden muss.

JonasPfz commented 4 months ago

habe ich auch bereits gemacht - das Problem tritt auch geräteübergreifend auf...

JonasPfz commented 4 months ago

Problem gefunden - @Svetlinski1985 entferne mal den Bindestrich vor "type" - dann sollte es gehen.

titanowly commented 1 month ago

Unfortunately, I have the same problem. On several end devices, and restarting HA, clear cache etc. does not change anything. Even removing the "-" before "type" doesn't change anything. I don't think that would conform to yaml either. @vas3k do you have an idea? :)

`- type: custom:berlin-transport-card show_stop_name: true max_entries: 8 entities:

Core 2024.5.5 Supervisor 2024.05.1 Operating System 12.3 Frontend 20240501.1 HACS 1.34.0

Edit: DE -> EN

titanowly commented 1 month ago

Ah, I was able to solve it myself after all. I should take a closer look at YAML and learn it again. The solution was not only to remove the hyphen and the spaces before the "type", but also all the spaces before the other lines.

Tombobln commented 1 week ago

Leider funktioniert es bei mir nicht. @titanowly Würdest du deine Config mal einstellen?

JonasPfz commented 1 week ago

Leider funktioniert es bei mir nicht. @titanowly Würdest du deine Config mal einstellen?

card config should work like this:

type: custom:berlin-transport-card
show_stop_name: true
max_entries: 8
entities:
  - sensor.s_yourstop
show_cancelled: true
show_delay: true
show_absolute_time: true
show_relative_time: true
include_walking_time: true

The sensor itself is working? @Tombobln

Tombobln commented 1 week ago

Leider funktioniert es bei mir nicht.@titanowlyWürdest du deine Config mal einstellen?

Die Kartenkonfiguration sollte folgendermaßen funktionieren:

type: custom:berlin-transport-card
show_stop_name: true
max_entries: 8
entities:
  - sensor.s_yourstop
show_cancelled: true
show_delay: true
show_absolute_time: true
show_relative_time: true
include_walking_time: true

Der Sensor selbst funktioniert?@Tombobln

Hey.

Ja, leider nur nicht die wunderbare Lovelace Anzeige.

Ich probiere mal deine Konfig

Tombobln commented 1 week ago

Leider funktioniert es bei mir nicht. @titanowly Würdest du deine Config mal einstellen?

card config should work like this:

type: custom:berlin-transport-card
show_stop_name: true
max_entries: 8
entities:
  - sensor.s_yourstop
show_cancelled: true
show_delay: true
show_absolute_time: true
show_relative_time: true
include_walking_time: true

The sensor itself is working? @Tombobln

Thanks! Its Works!