How do I log all the attributes of an entity? Specifically a device tracker. A life360 device tracker. Wanna make an automation that logs where I walk when I leave my house so I can see how far and stuff. And if I speeding. My motorcycle speedometer doesn’t work anymore and somehow they keep passing it for inspection. Just slightly curious how fast I’m going.
the only way to do that is to create a template sensor to extract the attributes you want from the entity.
so something like this for speed:
sensor:
- platform: template
sensors:
life360_tracker_speed:
friendly_name: Life360 Speed
value_template: "{{ state_attr('device_tracker.life360_you', 'speed') }}"
and then create another one for another attribute.
1 Like
Is there any way to log all attributes at once?
Or to automatically create template sensors for all attributes?
No, there is no way that I know of.
I just made a bunch of entities with templating like that. Idk that’s all u can really do.
I just made a bunch of entities with templating like that.
Yea, I effectively settled on that too;
Would be nice if you could re-export an entities properties as a device with entities
1 Like