Skip to content

Deutsche Bahn Binding - error "timetable.things" #16577

@MA74SC

Description

@MA74SC

Example file "timetable.things"
#1 wrong configuration
Parameter "accessToken="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is not part of acutal bridge configuration.
#2 defining "additionalFilter" is not working as parameter is defined by "filter vale" , e.g. departure#line="RE60" alöready includes ""

old "timetable.things"
Bridge deutschebahn:timetable:timetableLehrte "Fahrplan Lehrte" [ accessToken="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", trainFilter="departures", evaNo="8000226" ] {
Thing deutschebahn:train:timetableLehrte:lehrteZug1 "Zug 1" [ position="1" ]
Thing deutschebahn:train:timetableLehrte:lehrteZug2 "Zug 2" [ position="2" ]
}

Possible Solution

Modified as follow and bridge is working
new "timetable.things"
Bridge deutschebahn:timetable:timetableLehrte "Fahrplan Lehrte" [ clientSecret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", clientId="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", trainFilter="departures", evaNo="8000226" ] {
Thing deutschebahn:train:timetableLehrte:lehrteZug1 "Zug 1" [ position="1" ]
Thing deutschebahn:train:timetableLehrte:lehrteZug2 "Zug 2" [ position="2" ]
}

Your Environment

  • Version used: openhab 4.1.2
  • running docker with repository openhab/openhab:latest-debian
  • Operating System UNRAID 6.12.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of an add-on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions