@TheCrey wrote:
Hello all,
i am seeking help here, as i am not sure where exactly to start.
I want to add a device to the map and work with zones.
I am gettings the GPS information from a Car Dongle.This is the sensors i am creating:
- platform: rest resource: "https://api-production.autoaid.de/cc/v0.1/status/vehicles/VIN5YXXXX" name: "GPS Position Lat - Tesla X " scan_interval: 60 force_update: true value_template: > {% for i in value_json.eventStatusList %} {% if i.eventType == 'POSITION' %} {{ i.eventData.lat }} {% endif %} {% endfor %} headers: Authorization: "XXXXXXX" content-language: "en_US"
- platform: rest resource: "https://api-production.autoaid.de/cc/v0.1/status/vehicles/VIN5YXXXX" name: "GPS Position Lon - Tesla X " scan_interval: 60 force_update: true value_template: > {% for i in value_json.eventStatusList %} {% if i.eventType == 'POSITION' %} {{ i.eventData.lon }} {% endif %} {% endfor %} headers: Authorization: "XXXXXXX" content-language: "en_US"
And here it starts, first i would ne need those two sensors into one sensor, i am not sure how to do that.
Now i need kind of a device tracker, but i do not have anything to track.
With the sensors i get the location every 60 second, how could i then let the position of the car been shown on the mapAlso, i think there is a way to combine those two values into one sensor?
Can someone help here ?
Thanks in advance
Posts: 9
Participants: 2