@creakyshrimp@petro: I am experiencing the same issue. Two or three times a day it takes a route which is not the fastest, It would be great if the component could be configured which route to take (i.e. fastest or shortest).
The waze app is giving that back. So it happens to be the shortest route at that time. The way the api works is that it returns a list of routes that are sorted by shortest duration. This duration can change depending on traffic, at least I’ve noticed that. I can verify that it uses the shortest at all times. That means there is a slowdown on the other routes for some reason. It is possible that the waze api doesn’t work, but that is out of our hands because the updates would need to happen waze side (not ha side).
Since the Google Maps API asks for some fee, it makes sense to make a better Waze component. I would like to use the device_tracker from gps component and the zone to estimate the time travel. This time could be used as input for some automation, like turning on the heating or AC. At the moment, I tried it and I got a HA not not fully responsive It doesn’t show up in the dashboard and my hass.io on raspberry is very slow now. Removing the component seems not to solve the issue completly. I am investigating…
I run hass.io and I use it. Literally just place the file inside the location specified in that comment and it will use that over the official release.
I am sorry I didn’t reply anymore, I didn’t have much time to investigate on it. So, I tried again today, Hass.io 0.74
I would like to have a travel to home time, so I created an origin with a device_tracker (the one from google maps) and destination zone.home
It says that it cannot find the device_tracker. I tried with some random latitude and longitude as origin and the calculation was done and correct.
What is the problem with the device_tracker? Should I still replace some file into hass.io ?
did you have a typo? I exclusively use this with device tracker. Check your known_devices and make sure you are using the correct name with the domain ‘device_tracker’
EDIT: Also, everything before this is out of date. You no longer have to make a custom component, the PR went through and waze travel time now supports entity id’s
the component requests the entity_id from home assistant. If it returns nothing, that means home assistant couldn’t find it. So there is a disconnect there. Can you post your ‘list’ and your yaml please?
EDIT: and the error in the logs.
Sounds like the platform isn’t setup during startup so when waze searches for it, the entity doesn’t exist. Try placing waze lower in your config or the google device tracker higher.
Honestly, I don’t know how the startup process works, but i did try to make waze_travel_time component load last. Only problem I can see is if another app tries the same thing, who wins?
yeah, that could be the problem. At least we found out that it tries again to find the device_tracker and calculate the ETA. It is not important if it doesn’t work immediately after a reboot, it will do eventually and that is the only important thing.
Thank you again petro, the component is great! Now I can write my automation for heating and cooling while leaving/arriving at home!