I bumped into the ovapi sensor some time ago. I noticed that ovapi is not so accurate for my stop. After some googling I came across the 9292Ov Api spec. I decided to combine the both of them into a new sensor.
Great integration!
Is it possible, if yes how, to enter multiple destinations in the sensor configuration?
In my case I want to add a Metro, there are 3 lines which are passing my stop.
I tried these configs but it doesnât work. I get error messages when checking the config in HA
when writing the destinations underneath eachother:
" Invalid config for [sensor.dutch_public_transport_api]: value should be a string for dictionary value @ data[âdestinationâ]. Got [âNesselandeâ, âDe Terpâ, âBinnenhofâ]. (See ?, line ?). "
when writing the destinations between quotes:
Error loading /config/configuration.yaml: while parsing a block mapping
in â/config/includes/sensors.yamlâ, line 18, column 3
expected , but found ââ
in â/config/includes/sensors.yamlâ, line 21, column 29
- platform: dutch_public_transport_api
name: Metro naar De Tochten
station: !secret METROHALTE
destination: 'Nesselande' 'De Terp' 'Binnenhof'
show_future_departures: 1
- platform: dutch_public_transport_api
name: Metro naar De Tochten
station: !secret METROHALTE
destination:
- Nesselande
- De Terp
- Binnenhof
show_future_departures: 1