Home Assistant’s Swiss public-transport setup can limit a route to selected transport types: train, tram, ship, bus or cableway. This keeps alternatives such as a walk to a nearby bus stop out of a train-only departure sensor.
The chosen modes become part of the connection’s identity, so filtered and unfiltered versions of the same route can coexist. Existing connections keep their unfiltered results.