I’ve seen that owntracks is sending the value of battery to the mqtt broker of HA. But this value isn’t listed at the corresponding device sensor.
So, is it possible to append or customize any sensor to add custom values to it?
Here’s a page in the docs that explains how to turn those attributes into sensors.
I’m using the solar_angle example on my own server as it’s easier to use the sensor value than it is to use the template in my automation configurations.
Ok the template sensor makes sense for the battery status, but I would like to go one step further.
Let me explain a little bit more:
I got a device tracking sensor which displays some data, such as coordinates and so on. Now I want to append to this existing sensor another data, such as the battery status or something else new.