For those that are trying to duplicate Life 360 presence and want to display locations on a map within a HE dashboard, take a look at the following two posts/threads. For me, this looks to be the final piece of the puzzle.
UPDATE: following the directions in both threads I was able to add a map on a dashboard that shows your location.
It's actually really easy, Load up the Google Maps iFrame driver and create a device with said driver.
Create a rule in RM to update the Google Maps lat and lon whenever a change in the OwnTracks lat (or lon) is detected. Here's my rule, you do need to create a local variable to get the second value into the Google driver. I trigger on a change from the OT driver, update the Google lat with the new value, then I move the lon value into a variable then into the Google driver (it can't go direct)…
Leveraging @mbarone iframe driver code I created a new version of the driver dedicated to displaying Google Maps based on latitude and longitude attributes. With this driver I was able to create a Hubitat Rule that triggers anytime the latitude or longitude attributes changes for my Tesla driver and then updates this new Google Maps Iframe driver with the current map location where my car is located. I'm also using this for other devices I have in HE that also contain Lat/Lon attributes to dis…
3 Likes