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

Happy new year JAN 2025 broken it seems #27

Open
alpha520098 opened this issue Jan 4, 2025 · 34 comments
Open

Happy new year JAN 2025 broken it seems #27

alpha520098 opened this issue Jan 4, 2025 · 34 comments

Comments

@alpha520098
Copy link

@yarafie

Hello Remootio Community,

If you have updated to the latest version of HA and its not working perhaps this is where you need to be :

aiohttp>=3.11.11,<4.0.0
pycryptodome>=3.21.0,<3.22.0
async-class>=0.5.0,<1.0.0
voluptuous>=0.15.2,<0.16.0

this is my requirements can i've updated my end but its still not working

@yarafie
Copy link
Contributor

yarafie commented Jan 4, 2025

Can you post the error logs

@alpha520098
Copy link
Author

Happy new year, and it doesnt seem to show the error

@alpha520098
Copy link
Author

sorry, it does say fail to load the integration

@alpha520098
Copy link
Author

@yarafie So i updated HA to the latest version and It didnt seem to work, so i checked the latest aiohttp and changed that in my fork and restarted and nothing.

@yarafie
Copy link
Contributor

yarafie commented Jan 4, 2025

@yarafie So i updated HA to the latest version and It didnt seem to work, so i checked the latest aiohttp and changed that in my fork and restarted and nothing.

Unfortuantly wont be able to check now.

@alpha520098
Copy link
Author

yeah ok, did yours work?

@yarafie
Copy link
Contributor

yarafie commented Jan 4, 2025

Haven't updated. I tend to wait a few days and only upgrade when I have a full free day ahead of me :)

@alpha520098
Copy link
Author

Fair enough, Ill be back in Australia in a few days so hopefully this sorts itself out, So that you know updating was fine but the remootio didn't display and log issues, simply didnt work

@alpha520098
Copy link
Author

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 6:30:06 PM (1 occurrences)
Last logged: 6:30:06 PM

Error setting up entry Gates for remootio
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/remootio/cover.py", line 51, in
class RemootioCover(cover.CoverEntity):
...<67 lines>...
await self._remootio_client.trigger_close()
File "/config/custom_components/remootio/cover.py", line 58, in RemootioCover
_attr_supported_features = cover.SUPPORT_OPEN | cover.SUPPORT_CLOSE
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/deprecation.py", line 303, in check_if_deprecated_constant
raise AttributeError(f"Module {module_name!r} has no attribute {name!r}")
AttributeError: Module 'homeassistant.components.cover' has no attribute 'SUPPORT_OPEN'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/remootio/init.py", line 45, in async_setup_entry
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1203, in async_get_platforms
platforms[platform_name] = await future
^^^^^^^^^^^^
ImportError: Exception importing custom_components.remootio.cover

@yarafie hey mate these are the log faults

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

What does your manifest.json look like?

@alpha520098
Copy link
Author

{
"domain": "remootio",
"name": "Remootio",
"integration_type": "device",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/remootio",
"version": "1.4",
"requirements": ["aioremootio @ git+https://github.com/alpha520098/aioremootio.git"],
"ssdp": [],
"homekit": {},
"dependencies": [],
"codeowners": ["@ivgg-me"],
"iot_class": "local_push"
}

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

When was the last time you updated aioremootio.git in your fork?
That may be the problem.

"requirements": ["aioremootio @ git+https://github.com/alpha520098/aioremootio.git"],

@alpha520098
Copy link
Author

oh maybe, standby

@alpha520098
Copy link
Author

ok go to update it and i get this The version 839e575 for this integration can not be used with HACS.

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

Try changing

"requirements": ["aioremootio @ git+https://github.com/alpha520098/aioremootio.git"],

to

"requirements": ["aioremootio @ git+https://github.com/ivgg-me/aioremootio.git"],

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

BTW: I update to latest HA 2025.1 and it is working for me

@alpha520098
Copy link
Author

just to be clear, make these change in home assistant or in my fork?

@alpha520098
Copy link
Author

{
"domain": "remootio",
"name": "Remootio",
"integration_type": "device",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/remootio",
"version": "1.4",
"requirements": ["aioremootio @ git+https://github.com/ivgg-me/aioremootio.git"],
"ssdp": [],
"homekit": {},
"dependencies": [],
"codeowners": ["@ivgg-me"],
"iot_class": "local_push"
}

still no joy!

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

You have a few choices

You currently have 2 forks:
1 for remootio
1 for aioremootio (This needs to be forked from imgg-me not from sam43434 his is broken)

To make it easier in your remootio fork do the change I mentioned above and then go to HACS in home assistant redownload remootio from your fork an restart HA.

@alpha520098
Copy link
Author

Screenshot 2025-01-06 192227

@alpha520098
Copy link
Author

ok so when i try that i get this error message

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

Not sure what is happening.
I would suggest starting from scrach if you are up to it.

  1. Delete the remootio integration from devices (You will need to set it up again later same way you did the first time)
  2. Delete the Custom Repostiory remootio in HACS
  3. Restart Home Assistant just to be sure everything is ckeated up
  4. Delete your forks in github for both aioremootio and remootio
  5. fork aioremootio from ivgg-me/aioremootio to your own
  6. fork remootio from yarafie/remootio to your own
  7. make the changes in manifest.json in remootio to your own repository of aioremootio
  8. go back to HA and in hacs custom repository add your fork of remootio and download it in HACS
  9. Add remootio as an integration and set it up again

Good Luck

@alpha520098
Copy link
Author

Ill give it a red hot go and mate thank you sincerely its extermely hard to give information to those that just kinda get it but i will follow you step by step, I have also made that facebook group if you so wished to contact me

@alpha520098
Copy link
Author

mate thank you!! all is right in the world! worked great

@jwinston100
Copy link

@yarafie Thank you for all your help. I followed your instructions above and reforked both, updated manifest.json, requirements, etc., added my own fork as as a custom repository, but when I tried to download Remootio in HA, it says "The version f9cc7bd for this integration can not be used with HACS.". Any ideas what is wrong? Logs:

Logger: custom_components.hacs
Source: custom_components/hacs/websocket/repository.py:242
integration: HACS (documentation, issues)
First occurred: 6:53:14 AM (1 occurrences)
Last logged: 6:53:14 AM

<Integration jwinston100/remootio> The version f9cc7bd for this integration can not be used with HACS.

@yarafie
Copy link
Contributor

yarafie commented Jan 6, 2025

@jwinston100 If you followed exactly the steps it should work @alpha520098 had same problem.
@alpha520098 did u do anything differently;

@jwinston100
Copy link

@yarafie Yes, I followed all the steps you gave above including reforking both forks, etc.

@alpha520098
Copy link
Author

@jwinston100 and @yarafie

Morning gentlemen.

I followed the steps as per yarafies instructions.

So it's was simply the case of removing all integrations and repos and reinstalling them

@Metalon666
Copy link

Metalon666 commented Jan 8, 2025

I was using your folk @jwinston100 and I’m struggling to get it to work. Followed your instructions and getting

the version a0a12cc for this integration can not be used with HACS

Edit - scrap that, managed it. Just deleted everything and reinstalled from @yarafie folk, did the job 👍🏻

@jwinston100
Copy link

@Metalon666 Did you fork @yarafie 's remootio or airemootio or both? My remootio is forked from him, but my airemootio is forked from ivgg-me. I'll do whatever you did that works. Thanks

@jwinston100
Copy link

@Metalon666 and @yarafie I removed everything including my forks and reforked, both from @yarafie, and I still get this error:

image

and logs:

Log details (ERROR)
This error originated from a custom integration.
Logger: custom_components.hacs
Source: custom_components/hacs/websocket/repository.py:242
integration: HACS (documentation, issues)
First occurred: 2:28:13 PM (2 occurrences)
Last logged: 2:30:24 PM

<Integration jwinston100/remootio> The version 884a5d5 for this integration can not be used with HACS.

Is there any more information I can provide to help to debug this? Thanks.

@Metalon666
Copy link

@jwinston100
This is what I did.
Delete Remootio from HACS and the repository, deleted the integration and folder off the Pi. Restarted Home assistant and checked that the integration was gone (see if I could add it or not) then go back to HACS, add custom repository using this link
https://github.com/yarafie/remootio.git

Restart Home Assistant and add the integration as usual. Didn’t need to fork anything 👍🏻

hope this helps

@jwinston100
Copy link

@Metalon666 I was adding my own fork from github as a custom repository as @yarafie said to do this above "8. go back to HA and in hacs custom repository add your fork of remootio and download it in HACS", but now I just did as you did and instead added his fork (https://github.com/yarafie/remootio) as a custom repository, and it worked. I am just not sure why that should be the case, especially since I just forked his fork, so it should be the same.

@Metalon666
Copy link

Metalon666 commented Jan 8, 2025

@jwinston100 Yea I know what you mean, it was a last ditch attempt for me as I’d created a work around by adding Remootio to my SmartThings app and accessed through that integration but thought I’d give it one last attempt and it worked this way; why, who knows but as long as it’s working for now I’m happy 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants