If GPS component is declared as in documentation:
uart:
rx_pin: GPIO16
baud_rate: 9600
gps:
latitude:
name: "Latitude"
longitude:
name: "Longitude"
altitude:
name: "Altitude"
then it does not compile and returns error. GPS itself works fine, lat and lon can be seen in log. The error is:
[latitude] is an invalid option for [0]. Please check the indentation.
latitude: [source Documents/blinds-brain-gps.yaml:109]
name: Latitude
[longitude] is an invalid option for [0]. Please check the indentation.
longitude: [source Documents/blinds-brain-gps.yaml:111]
name: Longitude
[altitude] is an invalid option for [0]. Please check the indentation.
altitude: [source Documents/blinds-brain-gps.yaml:113]
name: Altitude
Can someone please advise how to properly declare GPS component and how to use it as location sensor? Thank you very much, Jan