Device tracker data to new sensor

Hi, I’m using Node-Red to access an API for my car and output the data as a device tracker.
It spits out a device_tracker with information about fuel level, odometer, vehicle health and so on.
But obviously I can’t use the odometer or fuel level data as entities in lovelace as I can only choose to have the device_tracker in lovelace telling my whether the car is home or not.

Is it possible to make a new sensor with the fuel level and odometer from the data the device_tracker contains?
With templates perhaps?

Post the nose red flow and what the API returns. Probably a better solution than creating a sensor in HA, given that you have the rest of the “car” in Node red.

Thanks for answering.

I noticed the entity node in Node-Red and it seems to do the trick, I have to create an entity node for each sensor but that’s okay.

Yes. That is the only way if you want to have it as states.
But I believe you can display attributes also on Lovelace.