NMBS Sensor


The nmbs platform will create sensors for monitoring travel time and information between 2 stations.

Configuration

To enable this sensor, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: nmbs
    station_from: "STATION_1"
    station_to: "STATION_2"
    station_live: "STATION_1"

The stations can only be provided by their standard names and not ids. The list of stations can be checked on the NMBS/SCNB website but for most accurate results check them on the iRail API page which this component uses internally.

Configuration Variables

station_from

(string)(Required)The station where the connection departs.

station_to

(string)(Required)The station where the connection arrives.

station_live

(string)(Optional)Setting this will create another sensor to monitor the liveboard in a station.

name

(string)(Optional)Name to use in the frontend.

Default value: NMBS, NMBS Live for the liveboard sensor when set.