Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download integration in HACS #471

Open
daniel-toth-leeder opened this issue Mar 16, 2024 · 20 comments
Open

Cannot download integration in HACS #471

daniel-toth-leeder opened this issue Mar 16, 2024 · 20 comments
Labels
bug Something isn't working

Comments

@daniel-toth-leeder
Copy link

HA core version

2024.3.1

Intergration version

0.3.22

Device type and model

Cannot provide

Used App

MSmartHome

The description of problem

HACS cannot download the release. It seems that the url is not correct.
I cannot install the custom integration at all.

The logs

Logger: custom_components.hacs
Source: custom_components/hacs/repositories/base.py:986
integration: HACS (documentation, issues)
First occurred: March 15, 2024 at 8:54:24 AM (9 occurrences)
Last logged: 8:26:10 AM

<Integration georgezhao2010/midea_ac_lan> Failed to download https://github.com/georgezhao2010/midea_ac_lan/releases/download/tags/v0.3.22/mieda_ac_lan.zip

@daniel-toth-leeder daniel-toth-leeder added the bug Something isn't working label Mar 16, 2024
@Rezessivo
Copy link

same here

@skysyk
Copy link

skysyk commented Mar 18, 2024

Guessing there's a little typo in hacs.json: mieda_ac_lan.zip? Going to make a pull request.

EDIT: Nevermind, there are like 10 PRs fixing the same typo. Going to ping the repo leads.

@melvinredondotanis
Copy link

I have the same problem

@pedersendrum
Copy link

Same problem here

@dubstomp
Copy link

same issue here

@hardweb-it
Copy link

Same issue for me

@noisay
Copy link

noisay commented Mar 25, 2024

Same problem here

@Smartprimley
Copy link

Same issue for me

@CyrielRct
Copy link

Same issue here !

@willoxxxx
Copy link

same

@drewstopherlee
Copy link

So, since there's 6 duplicate PRs that, if merged, would fix the issue LOL, here's what I did to get it working (note: I am running Home Assistant OS and executed these commands using the Advanced SSH & Web Terminal add-on):

  1. Navigate to the /homeassistant/custom_components directory
    cd /homeassistant/custom_components
  2. Download the midea_ac_lan.zip from the Releases page.
    wget https://github.com/georgezhao2010/midea_ac_lan/releases/download/v0.3.22/midea_ac_lan.zip -O midea_ac_lan.zip
  3. Extract the zip folder
    unzip -d ./midea_ac_lan/ midea_ac_lan.zip
  4. Clean up the downloaded .zip file
    rm midea_ac_lan.zip
  5. Restart Home Assistant!

@hardweb-it
Copy link

So, since there's 6 duplicate PRs that, if merged, would fix the issue LOL, here's what I did to get it working (note: I am running Home Assistant OS and executed these commands using the Advanced SSH & Web Terminal add-on):

  1. Navigate to the /homeassistant/custom_components directory
    cd /homeassistant/custom_components
  2. Download the midea_ac_lan.zip from the Releases page.
    wget https://github.com/georgezhao2010/midea_ac_lan/releases/download/v0.3.22/midea_ac_lan.zip -O midea_ac_lan.zip
  3. Extract the zip folder
    unzip -d ./midea_ac_lan/ midea_ac_lan.zip
  4. Clean up the downloaded .zip file
    rm midea_ac_lan.zip
  5. Restart Home Assistant!

I did almost the same with the "Advanced SSH & Web Terminal" add-on, with SFTP enabled, you can manually upload the package in "/homeassistant/custom_components/midea_ac_lan", using WinSCP.
Then reboot HA and it'll work fine.
I don't know if auto-updates could work with this kind of installation.

@drewstopherlee
Copy link

I did almost the same with the "Advanced SSH & Web Terminal" add-on, with SFTP enabled

That's probably way easier lol, good idea!

I don't know if auto-updates could work with this kind of installation.

It might if what HACS does for auto-updates is pull the latest version of the repo upon release. To be safe though, I'd assume it doesn't and be prepared to update it manually.

@melvinredondotanis
Copy link

So, since there's 6 duplicate PRs that, if merged, would fix the issue LOL, here's what I did to get it working (note: I am running Home Assistant OS and executed these commands using the Advanced SSH & Web Terminal add-on):

  1. Navigate to the /homeassistant/custom_components directory
    cd /homeassistant/custom_components
  2. Download the midea_ac_lan.zip from the Releases page.
    wget https://github.com/georgezhao2010/midea_ac_lan/releases/download/v0.3.22/midea_ac_lan.zip -O midea_ac_lan.zip
  3. Extract the zip folder
    unzip -d ./midea_ac_lan/ midea_ac_lan.zip
  4. Clean up the downloaded .zip file
    rm midea_ac_lan.zip
  5. Restart Home Assistant!

I also did the same thing. however the problem persists: it is not possible to install it via the HACS interface which is problematic.

@CyrielRct
Copy link

@melvinrt when you did download manually and unzip the midea component in the homeassistant/custom_components folder you can now go in integrations configs in home assistant and look for the midea integration to configure it

@melvinredondotanis
Copy link

@melvinrt when you did download manually and unzip the midea component in the homeassistant/custom_components folder you can now go in integrations configs in home assistant and look for the midea integration to configure it

Yes

@MagnusVesper
Copy link

This could also be fixed by adding a file named mieda_ac_lan.zip to the current release that is a copy of midea_ac_lan.zip
If someone has permissions to do that but not accept the merge request, that could be a potential short term fix.

@CyrielRct
Copy link

CyrielRct commented Apr 13, 2024

If it help I just cloned this repo and merged all pending PR fixing issues. This is only during the time the maintainer will merge following PR in this repository :

Waiting this time you can re-install the integration using this repository : https://github.com/CyrielRct/midea_ac_lan

To do that go to HACS - Integration - and add the repository. It will show you version 0.3.24

Don't forget to come back to the official repo when it will be merged in order to get update in the future.

@skysyk
Copy link

skysyk commented Apr 13, 2024

@CyrielRct Thanks! In case @georgezhao2010 doesn't return in the near future, would you want to take over maintenance of this integration?

@CyrielRct
Copy link

CyrielRct commented Apr 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests