Custom Component: here_travel_time

@pathia The feature I implemented for you is currently being blocked for integration into homeassistant core. If you or anyone else wants to get into the discussion here is the PR:

https://github.com/home-assistant/home-assistant/pull/27237

I would be very interested in all your opinions on this.

Iā€™m sorry to hear that. Unfortunately I am not that deep into this project. I think you pointed out the actual use case perfectly. I think it isnā€™t much use if I come and repeat your story. I think we should wait for a second reviewer and wait for the outcome. Thank you so far :+1:

1 Like

If you could write that as a comment to the PR it would show that I am not a single developer trying to get his way.

I do see Martinā€™s strong points I just think they donā€™t outweigh the use of this feature.

Done. :white_check_mark:

1 Like

First I love this component, thank you. However I keep running into a terminal issue. When I first set it up, it tracks time from A to B without any issue, but after X time (hours). It stops updating time on the front end. On reboot of HASS I get the following error:

Invalid credentials. This error is returned if the specified token was invalid or no contract could be found for this token.

I tried everything but could not clear the error. I decided to delete the Here app, create a new one to get a new ID and Code. Same thing, worked for an hour or so then the same error came back. Any suggestions?

Running HASS 0.100.1

My config looks like this:

  app_id: "MY_ID"
  app_code: "MY_CODE"
  name: Mhairi to Home
  traffic_mode: true
  origin_entity_id: device_tracker.life360_mhairi
  destination_entity_id: zone.home

Thanks.

You can set the log level to debug and send me the log files via direct message. When debug is activated we can see the actual request and response payload and dig deeper from there.

To enable debug log level you can put the following into your configuration.yaml:

logger:
  default: error
  logs:
    homeassistant.components.here_travel_time: debug

@eifinger tonight I upgraded my hass io from 0.99.2 to 0.100.2 and now I have this weird sentence in my logfile.
Iā€™ve copy-pasted it one on one. Are they trying to say it is blacklisted ? Although they specify not blacklisted they to suggest to remove it.

2019-10-15 20:51:08 ERROR (MainThread) [hacs] You have eifinger/here_travel_time installed with HACS, this repositroy have not been blacklisted, please consider removing it.

Edit: I tried to remove the component (again using HACS) and now I canā€™t find it back in the HACS store. I think HACS was trying to tell me that the component was blacklisted?

Hi @pathia. Starting with version 0.100 the component officially integrated into home-assistant. Thatā€™s why I blacklisted it in HACS.
I forgot to post an official message here.

Okay, so now the discussion on github makes more sense to me also.
Ok Iā€™m gonna enable the sensor again. Thanks a lot!

here_travel_time officially integrated into Homeassistant

Starting with version 0.100 here_travel_time is offically integrated into Homeassistant.

You can find the documentation under https://www.home-assistant.io/integrations/here_travel_time/

The new feature introduced with v2.1.0 of the custom component are not yet integrated into the official version. The PR which tries to do so can be found under https://github.com/home-assistant/home-assistant/pull/27237

If you need this feature please keep the component installed and do not upgrade to 0.100 or later.

The component got blacklisted in HACS and cannot be installed with it anymore. Furthermore the github repository got archived. If you have any questions or issues please open an issue in the official homeassistant repo: https://github.com/home-assistant/home-assistant/issues/new?template=Bug_report.md

1 Like

Thank you for the clarification. I have manually restored the version from Github to custom_components and now it works like it did before. Letā€™s see how the PR with the fix works out.

1 Like

Hi,

when I read about this component in the release news of HA 0.100 I registered an account on here.com (17 days ago).

However since then I wasnā€™t able to create an App ID/Code:

I was wondering if someone else was successful in doing so.

In Most cases the Twitter team was really helpful.

Iā€™ve checked the PR but unfortunately Iā€™m unable to understand the current status. Is the PR with ā€˜myā€™ fix now merged with master?

Hi @pathia. The PR ist not merged. I am waiting for Hacktoberfest to blow over before asking again for an update.

Thatā€™s just fine. Iā€™ll just stick with the ā€˜oldā€™ version. Which I absolutely love. It is great to have a fast look at the current traffic. Thanks for the update!

Facing bothersome performance issues and unavailabilities with travel info of ā€œDeutsche Bahnā€ I remember that you thought about providing route calculation with public transport. Is that idea still relevant?

It is still on my to do list. Maybe I get some free time over the holidays :wink:

That sounds really great. I would be the first to test that out.:beers:

1 Like

I was wondering if anyone had created a sensor that used input_text as the origin/destination entity ID. I was thinking I could maybe have an input text where I could enter addresses.