junalmeida / homeassistant-torque

Torque Logger integration for Home Assistant with persistent Sensors
MIT License
14 stars 4 forks source link

How to install? #28

Closed jmalm closed 4 weeks ago

jmalm commented 2 months ago

How do I install this integration?

I'm running Home Assistant 2024.3.1 in a docker container, with HACS 1.34.0.

I've done the following:

  1. In HACS, added https://github.com/junalmeida/homeassistant-torque as a custom repository
  2. In HACS > Custom repositories, clicked on Torque Logger
  3. On the Torque Logger page, clicked Download

I get the following logs in home assistant:

homeassistant  | 2024-07-27 15:14:34.678 INFO (MainThread) [custom_components.hacs] <Integration junalmeida/homeassistant-torque> Running pre installation steps
homeassistant  | 2024-07-27 15:14:34.679 INFO (MainThread) [custom_components.hacs] <Integration junalmeida/homeassistant-torque> Pre installation steps completed
homeassistant  | 2024-07-27 15:14:34.679 INFO (MainThread) [custom_components.hacs] <Integration junalmeida/homeassistant-torque> Running installation steps
homeassistant  | 2024-07-27 15:14:36.465 ERROR (MainThread) [custom_components.hacs] Download failed - Got status code 404 when trying to download https://github.com/junalmeida/homeassistant-torque/releases/download/main/torque_logger.zip
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/config/custom_components/hacs/base.py", line 730, in async_download_file
homeassistant  |     raise HacsException(
homeassistant  | custom_components.hacs.exceptions.HacsException: Got status code 404 when trying to download https://github.com/junalmeida/homeassistant-torque/releases/download/main/torque_logger.zip
homeassistant  | 2024-07-27 15:14:36.467 ERROR (MainThread) [custom_components.hacs] <Integration junalmeida/homeassistant-torque> Failed to download https://github.com/junalmeida/homeassistant-torque/releases/download/main/torque_logger.zip
homeassistant  | 2024-07-27 15:14:36.467 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [134938234596928] Error handling message: Unknown error (unknown_error) admin from 193.150.201.23 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
homeassistant  |     await func(hass, connection, msg)
homeassistant  |   File "/config/custom_components/hacs/websocket/repository.py", line 234, in hacs_repository_download
homeassistant  |     await repository.async_install()
homeassistant  |   File "/config/custom_components/hacs/repositories/base.py", line 893, in async_install
homeassistant  |     await self.async_install_repository(version=version)
homeassistant  |   File "/config/custom_components/hacs/repositories/base.py", line 990, in async_install_repository
homeassistant  |     raise HacsException("Could not download, see log for details")
homeassistant  | custom_components.hacs.exceptions.HacsException: Could not download, see log for details

Is HACS not able to add a repo that doesn't have any releases? How do I install it manually?

The instructions say "Click install", but I can't find anywhere to click install.

jmalm commented 2 months ago

I managed to install it using instructions at https://community.home-assistant.io/t/how-to-make-default-torque-integration-work-in-home-assistant/528970/49.

But in the home assistant logs I get the following error:

homeassistant  | 2024-07-29 06:01:02.773 ERROR (MainThread) [custom_components.torque_logger] Missing profile name from torque data.

In Torque Pro, my profile is called "Kia e-Niro". Is there some config in Torque Pro that I'm missing? I don't see any configuration that can be done in Torque logger.

JOHLC commented 2 months ago

I managed to install it using instructions at https://community.home-assistant.io/t/how-to-make-default-torque-integration-work-in-home-assistant/528970/49.

But in the home assistant logs I get the following error:

homeassistant  | 2024-07-29 06:01:02.773 ERROR (MainThread) [custom_components.torque_logger] Missing profile name from torque data.

In Torque Pro, my profile is called "Kia e-Niro". Is there some config in Torque Pro that I'm missing? I don't see any configuration that can be done in Torque logger.

Force close and reopen Torque on your phone when you see this, and it usually fixes that message for me

nikito7 commented 2 months ago

Code needs updates

TurnrDev commented 2 months ago

Have you considered making this HACs compatible?

JOHLC commented 2 months ago

Have you considered making this HACs compatible?

This is HACS compatible. You just have to add it as a custom repo: image image

nikito7 commented 2 months ago

Have you considered making this HACs compatible?

This is HACS compatible. You just have to add it as a custom repo: image image

Install fails. Code needs update

TurnrDev commented 2 months ago

Installation via HACs fails it it's trying to download the latest release but you have none

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

TurnrDev commented 1 month ago

Not stale you silly bot

TurnrDev commented 4 weeks ago

It's not stale, it still needs fixing.