I’ve made custom integration sensor for the KIA e-Niro BEV, How can I create a custom device tracker with the GPS coordinates from the kia e-Niro sensor? I couldn’t find any examples online or in the forum. I’ve tried a dynamic zone but didn’t work either.
I tried the solution but it doesn’t seem to work. No tracker created.
Also, when trying to use the service manually I encounter a host of issues, basically the format for gps doesn’t seem to be valid for device_tracker.see call.
Any input?
This is what I am trying to do:
Sensors for coordinates extracted from MQTT by my Leaf OVMS:
- platform: mqtt
name: leaf position lat
state_topic: "ovms/nissanleaf/xxx/metric/v/p/latitude"
qos: 1
- platform: mqtt
name: leaf position lon
state_topic: "ovms/nissanleaf/xxx/metric/v/p/longitude"
qos: 1
Automation to update the position/create the tracker:
This is actually triggered (I’ve checked) but no tracker is ever created.
I tried triggering the method manually using the developer tools but it complains about the data_template not being a valid keyword or that I am missing dev_id (depending on how I build up the yaml).
I created an automation on my iPhones being triggered when the phone looses the connection with CarPlay.
The automation is based on the decvice_tracker.see service, which has correctly created a new device tracker.
Yesterday the service created the new device tracker with the information (GPS coordinates) provided from my phone, but today I noticed that the new entity lost all the data.
Do you know if there is a way to keep that information in the system?
EDIT: I noticed that the system doesn’t keep the value if I reboot the system.
Any solutions are welcomed
executed via developer tools - services. No error in the log, but no device tracker created. @tamet83 found your issue and commented it. you have the problem of updating, I have the problem of creating.
Where latitude and longiture are variable extracted from my phone GPS info.
I’m still having the problem when i reboot home assistant: i loose entity data provided from the automation
I use the automation directly from my iPhone, it starts each time the phone loose the connection with CarPlay on my car. I use it to save my car parking position.
I think won’t be useful using it when home assistant starts.