sensors:
- platform: deutsche_bahn
from: Taborstr., Berlin
to: Berlin-Adlershof
- platform: deutsche_bahn
from: Taborstr., Berlin
to: Bethaniendamm, Berlin
I have this, however the second one never gets created. I checked with schiene and there it works.
And with the latest update it’s not working anymore. But this time the other sensor is not working. Maybe the scraping of the webpage is just unreliable…
sensor:
- platform: deutsche_bahn
from: Taborstr., Berlin
to: Berlin-Adlershof
- platform: deutsche_bahn
from: Taborstr., Berlin
to: Bethaniendamm, Berlin
however it only works sometimes. I have to restart multiple times to get it working. I suspect during the initialisation sometimes a time-out occurs and then that’s it…
I think it is connected with this:
"
Note: if you do not need live information (delays etc.) you can use the new official Fahrplan API from Deutsche Bahn. Also, the Bahn.de HTML code is a steaming pile of shit that can cause this library to break at any time. Do not use for any critical stuff.
" https://github.com/kennell/schiene