Thanks for the efforts.
To be clearer, it’s in relation to this thread here:
Summary
[RELEASE] DriveTime - Powered by Google Traffic - Custom Drivers - Hubitat
JustinL developed something quite basic, but pretty fantastic. Here’s a pic of the device screen:
Summary
This means that you can use webcore to set the start location / destination and use google api to plan a route between the two. Expanding on this, this makes it currently possible to use a bit of trickery to pull the lat/long details from owntracks to instantly plan a route between your own current location and the current location of say, your child’s owntracks device location.
Accessing the device direct through hubitat’s ‘devices’ menu shows the screen above. Justin helpfully tweaked it to include a clickable link…
… which, when used on a mobile, directly opens and starts google navigation. How cool is that??!!
However, I wished to be able to use that link easily from a dashboard button instead of needing to remote admin, access devices, browse for it, and click the link. Not something which is reasonably doable. A button on a sharptools dash to click, allowing you to instantly navigate to your child’s current location? Amazing.
Hence the request for this.
I did try to pull the values from the device and store in another basic string attribute device. See below, where there’s a temporary sharptools hero attribute tile just for ‘debugging’…
Summary
This successfully shows the actual link that’s required, which for now, I’ve managed to automatically populate to a sharptools variable through sharptools rules, passing to the custom tile you created above, i.e.
Summary
Unfortunately, although the link looks fine (there’s no additional wrapping, to me, it looks perfect, I’m probably completely barking up the wrong tree as the custom tile just fails when clicked.
Here’s the result on a desktop:
Summary
Fully aware this is a long way around and could definitely be better. The long story short comes down to How do I create a button in sharptools which allows me to duplicate the actions of clicking the variable link from the hubitat device circled below?
Hope this makes sense.