Retrieve bus arrival timings in Singapore with LTA Datamall

i cant find it in the store as well.

You can add the custom component manually in HACS by using the github repo url.
Unfortunately I can’t update it at the moment as my HA setup poofed :frowning:

1 Like

I got this error recently.
Platform error ‘sensor’ from integration ‘lta’ - cannot import name ‘TIME_MINUTES’ from ‘homeassistant.const’ (/usr/src/homeassistant/homeassistant/const.py)
Does anyone know what needs to be done?

Happened to me before.
Basically, it boiled down to your sensor.py not being the latest version 0.30 (even though it may say so).
I had to copy and paste the latest code manually from github to the actual sensor.py file and reboot. All was good after that.

A few folks have raised same issue and close them. Issues ¡ Codestian/ha-lta ¡ GitHub

1 Like

Hello, this sounds like an extremely useful integration. I tried to add it to my HA but have encountered an error - hope I can get some help.

What I did:

  1. Manual installation and configuration as per github page (can’t find on HACS), restarted HA
  2. Went to “integrations”, noted that there was no ha-lta integration
  3. Clicked on “add integration”, able to search for integration called “lta”
  4. Received error message: “Config flow could not be loaded: {“message”:“Invalid handler specified”}”

Any advice would be appreciated, thank you!

it is not added via “integrations”.
you have to add it manually in “configuration.yaml”

also, do note that there’s an issue with the “sensor.py” file that you got from v0.3.0.
you will have to download the “sensor.py” from github (not zipped) and apply to \custom_components\ha-lta

Just to update - able to find it on HACS now, and had a seamless installation. Thank you so much, this was exactly what I was looking for!

For anyone still following this project, @Codestian added me as a maintainer and ill be continuing his work (with him reviewing my PRs and stuff)

Within the upcoming months I plan to get the code updated for the LTA’s V3 API and fixing the map.

Other features that people can expect is:

  • Config Flow (Basically adding a GUI instead of having to use yml)
  • MRT Data (Downtime/Delays)