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