You could probably set up a rule that triggers when you leave your “work” zone that stores “now” into a var. Then another rule that triggers when you enter “home” and subtract the var from “now” to see how much time has passed.
Though personally I’ve found that Waze is way better at doing this than I could ever do on my own.
Waze’s API is pretty limited. However, if you have an Android you could use Tasker and perhaps AutoInput you could easily post updates to openHAB’s REST API based on what is on the Waze screen. I have an AutoInput Tasker task that scrapes the ETA from the Waze app screen and sends an SMS to my wife to tell her when I should be expected home.
I don’t really use this any more. At a high level:
Requirements
Tasker
AutoInput
Waze
Task
IIRC I had a task that does the following:
open Waze and start navigation to home using an intent.
sleep for enough time for Waze to do it’s thing
use AutoInput to scrape the screen for the ETA element. Check the docs for AutoInput for details.
use Tasker’s SMS task to send the text message.
I Italy set this up using a tutorial on the AutoInput site. I’m sure it is something like it is still there.
I don’t use it any more because Waze now had this feature built in. I imagine you could have AutoInput simulate the screen taps to use the built in function instead.