I’m looking for assistance with the following challenge:
I have integrated several iPhones into Home Assistant using the “Mobile App” (Companion App) integration. Each iPhone exposes multiple entities, including the Geocoded Location sensor (sensor.iphone_geocoded_location
), which provides the phone’s location. This sensor has several attributes like location (longitude & latitude), zones (based on Home Assistant zones), etc.
What I’d like to achieve is displaying a table on a dashboard with the historical data from this sensor, showing a chronological list of the phone’s locations, for example, over the last 10 days. The table should have one row for each location change (i.e., each time the sensor state changes). The first column should show the date and time, the second column the zone (from the zones
attribute), and the third column the location itself. Ideally, the most recent entry would appear at the top, with older entries below. How can I achieve this?
Alternatively, it would be even better to display these locations as points on a map.
It would be particularly helpful if the map could allow for selecting a custom time range, similar to how you can view an entity’s history over a specified period.
I’ve tried searching various forums but haven’t found a solution yet. Can anyone guide me on how to create the table, or better yet, the map?
Thanks in advance for your help!