Hi,
I am a user of the Google and Waze travel time components but not quite happy with them.
The Waze API is flaky and the values returned are not quite accurate and the Google API has to few free requests.
On a Hackathon I met HERE and got to know their API I created a component which does exactly the same as google_travel_time or waze_travel_time but using the here api.
As the workflow to be an official integration seems to take a very long time I decided to release it as a custom component so you guys can start using it and maybe even give me some feedback
To make things easier you can install it as a custom repo using HACS
You can find all the information and the code itself here:
This is great!
I have used Here Maps since the days of Windows Phone and always found it very good.
One of it’s unique(?) features for those on Android Phone is that you can download whole countries to use mapping off line. Very useful when travelling…
Now to try the custom component…
EDIT: After a first look it seems to work perfectly! Thanks.
This is good stuff, and thanks for sharing. Never knew such services existed, and I will definitely try it out. If not for anything, tired of doing many of my stuffs via Google. Though won’t be surprised they also linked to Google .
Anyway I do use Google Travel sensor, and though the request is limited, I was able to manage it to achieve my aim. Which also helps me with some flexibility.
My Google API is used by myself and wife, coupled with the fact I have sensors for all modes for both of us, so that is driving, transit and walking (none of us knows how to ride a bic ).
How I do it, is that the sensors are setup to update every hour, then using automation (AD), I then have it update more frequently when it’s time for me to say leave the house to somewhere. And it will default to a particular mode, depending on what I set it to.
Even if I am out of the home, and my calendar needs me to get to another location, the app reads the location from there, sends it to the sensor and depending on the travel mode I specified in my calendar, updates the required sensor and then it and sends me notifications.
I think managing it became easier, once HA introduced the sensor.google_travel_sensor_update service.
I think i did something wrong but i don’t know what. I downloaded all files in the custom components and added the configuration to my sensor.yaml but when i added it and validate my config. It keeps on hanging in the validating configuration. Which in my opinion is not good.
Does the “YOUR_APP_CODE” needs to be with the quotes?. for example “DASdEjkrk” or is this DASdEjkrk?. Does the same apply to the rest of the codes?
I just tested it exactly as that in my production configuration and it worked.
If you want you can send me a PM with your actual configuration so we can get into it in detail
just wanted to say thanks! I had no issue getting it setup up in HACS or actual sensors up and running. it’s great when i can rely on google for one less thing.
Can I just clarify about how often this makes an api call?
Am I right in thinking that every sensor creates one api call every five minutes? I know it says that in the docs but as they are written there is some room for ambiguity, not much, but enough that I wanted to be sure
And presumably setting a scan_interval will change that as is normal?
Thanks again for this. It seems to be so much more reliable than the Waze sensor. No more errors in the logs and no more waiting for it to update every time I do an HA restart.
You are right, every sensor makes an own API call.
Actually its more often than every 5 minutes. I removed that limit in the code when I figured out I have far more calls available than with google.
I will find out what the default intervall of hass is and get back to you.
scan_interval should work normally, but I have not tested it yet.
Invalid config for [sensor.here_travel_time]: [travel_mode] is an invalid option for [sensor.here_travel_time]. Check: sensor.here_travel_time->travel_mode. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.here_travel_time/