I am trying HERE for the first time and have setup this first sensor. Does anyone know how I can setup the mode with input_select entity just like destination_entity_id?
I have tried adding like this, but it gives error saying expecting:
bicycle, car, pedestrian, publicTransport, publicTransportTimeTable or truck
So since its not possible to dynamically update the scan_interval, I am also going to assume you cant dynamically update the destination_entity_id or the origin_entity_id either?
Edit:
The api key had expired within 60 mins of making it because i had to confirm my email.
All works now.
Thanks.
Edit:
Well it has gone past the 60mins and the api key has expired again which it shouldn’t.
so not sure how to use this if its keeps expiring the api key.
Edit: Well I created a new api key after I confirmed my email and it’s still working after 2 hours.
Does this happen a lot? If not it could be that your device_tracker is unavailable or something like this.
You can also enable debug logging to see which exact location the integration is trying to get a route for:
I’ve never got a sensor to work from the start. Always with this error. I have tried to created 3 different sensors with 3 different device_tracker devices. All same error. I am thinking my location isn’t supported (Japan)? The same device_tracker I am using with Waze and that works, but it’s flakey at times.
Hi there, total newbie to HA here, but for the life of me i can’t figure out how to get this to work. I’ve tried installing this as a custom repository thru hacs with the URL https://github.com/eifinger/here_travel_time but nothing happens. i took the manual route as well and copied all the docs into custom components directory but still cant get the sensor to turn up. Error logs from restarting:
Logger: homeassistant.components.sensor
Source: components/here_travel_time/sensor.py:202
Integration: Sensor (documentation, issues)
First occurred: 3:13:44 AM (1 occurrences)
Last logged: 3:13:44 AM
Error while setting up here_travel_time platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/here_travel_time/sensor.py", line 154, in async_setup_platform
if not await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/here_travel_time/sensor.py", line 202, in _are_valid_client_credentials
here_client.public_transport_timetable(
File "/usr/local/lib/python3.9/site-packages/herepy/routing_api.py", line 241, in public_transport_timetable
return self._route(waypoint_a, waypoint_b, modes, departure, arrival)
File "/usr/local/lib/python3.9/site-packages/herepy/routing_api.py", line 67, in _route
response = self.__get(self.URL_CALCULATE_ROUTE, data, RoutingResponse)
File "/usr/local/lib/python3.9/site-packages/herepy/routing_api.py", line 40, in __get
raise error_from_routing_service_error(json_data)
herepy.error.HEREError: Error occured on __get
can some kind soul please help point me in the right direction?
Hi @ANGELUS728 here_travel_time is a standard integration. You shouldn’t use the deprecated custom_component. That being said the error you are encountering seems to occur a lot during the last days. I am on it
I keep getting this error. Not even a single time HA managed to load here sensor.
2022-04-19 23:07:06 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up here_travel_time platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform
await asyncio.shield(task)
File “/usr/src/homeassistant/homeassistant/components/here_travel_time/sensor.py”, line 156, in async_setup_platform
if not await hass.async_add_executor_job(
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/here_travel_time/sensor.py”, line 211, in _are_valid_client_credentials
here_client.public_transport_timetable(
File “/usr/local/lib/python3.9/site-packages/herepy/routing_api.py”, line 241, in public_transport_timetable
return self._route(waypoint_a, waypoint_b, modes, departure, arrival)
File “/usr/local/lib/python3.9/site-packages/herepy/routing_api.py”, line 67, in _route
response = self.__get(self.URL_CALCULATE_ROUTE, data, RoutingResponse)
File “/usr/local/lib/python3.9/site-packages/herepy/routing_api.py”, line 40, in __get
raise error_from_routing_service_error(json_data)
herepy.error.HEREError: Error occured on __get