What is the device? Does it have a way to communicate withHA? Is there an existing integration for this device that could help? I suspect we are going to need more information.
Assume you have an entity which has these attributes - “longitude” & “latitude”.
Then this entity may be placed inside a Map card - then you will be able to see a track for a selected period.
Check if your device provides such an entity.
If it only provides separately “latitude” & “longitude” entities - then you will have to create a template sensor with required “longitude” & “latitude” attributes (values taken from those separate entities).
Thanks!
A couple of questions.
How can I create a device with those attributes?
It must be some kind of special device? Some specific class?
It must be in the Yaml Config or somewhere else?
Thanks again!
According to info you provided, the device creates separate sensors for Lng & Lat (values kept as states), also a “combined” sensor “Location” with a state “Lat, Lng” .
What you need is a sensor with attributes “latitude” & “longitude”.
This may be done as a template sensor. Check docs how to create template sensors.