-
Notifications
You must be signed in to change notification settings - Fork 37
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
Installation on HA 2023.2.4? #11
Comments
Try to restart your Home Assistant first. And then add sensors to your configuration yml again |
Thanks Vasily, still no luck, same error: "Invalid config for [sensor.berlin_transport]: [sensors] is an invalid option for [sensor.berlin_transport]. Check: sensor.berlin_transport->sensors. (See ?, line ?)." since I have a separate sensors.yaml (all sensors I have there work fine), I have addapted your code: what am I doing wrong? Oh, and thanks a lot for creating this, I hope I can make it work! |
It seems that because of this error it prevents Home Assistant from restarting completely, so the sensor remains unloaded. Try removing (or temporarily commenting out) it from sensors.yml altogether, restart HA and add it again. But don't remove the files! Plus, check the logs when restarting. If the sensor loads with an error, there will be some information about it. |
Same problem here by trying to add card to lovelace. |
Hi there, I managed to make the cards work both in the PC browser as well as in the mobile apps. /local/berlin-transport-timetable-card/berlin-transport-timetable-card.js then, in the resources I added the card as follows: /hacs/berlin-transport-timetable-card/berlin-transport-timetable-card.js that did the trick, I read in some forums that sometimes HA expects custom cards to be in "hacs" entry, |
@villalji
|
Of course, I add /hacs/berlin-transport-timetable-card/berlin-transport-timetable-card.js as front end resource. Is there any way to get logging infos to debug the problem. To flying blind is very frustrating. |
HI, what an did is to create a folder and copy the file into it: |
The error could be because youre pasting the config code through the UI instead of using the YAML Config:
try
|
Thanks for your solutions. For me its working with the hacs path of the /hacs/berlin-transport-timetable-card/berlin-transport-timetable-card.js. |
Hi,
I guess I ´m doing something wrong, but I can ´t manage to install it correctly, and I get an error on the configuration when trying to re-start: "Invalid config for [sensor.berlin_transport]: [sensors] is an invalid option for [sensor.berlin_transport]. Check: sensor.berlin_transport->sensors. (See ?, line ?)."
I have copied the berlin_transport folder as per instructions:
and added this to my sensors.yaml:
Berlin Transport
sensors:
departures:
stop_id: 900091203 # actual Stop ID for the API
direction: 900089303 # Tegel Optional stop_id to limit departures for a specific direction (same URL as to find the stop_id)
walking_time: 8 # Optional parameter with value in minutes that hides transport closer than N minutes
stop_id: 900091253
direction: 900089303 # Tegel Optional stop_id to limit departures for a specific direction (same URL as to find the stop_id)
walking_time: 7 # Optional parameter with value in minutes that hide transport closer than N minutes
Finally, I copied the berlin-transport-timetable-card.js file to www folder, and added it to the resources. (but I cannot see the card yet, I guess I have to re-start... which I can't as I get an error in the config.
help please?
The text was updated successfully, but these errors were encountered: