sam43434 / remootio

remootio
18 stars 23 forks source link

Remootio after latest update on HA (22-07-23) #12

Open alpha520098 opened 1 year ago

alpha520098 commented 1 year ago

Logger: homeassistant.util.package Source: util/package.py:107 First occurred: 7:57:57 AM (3 occurrences) Last logged: 7:58:20 AM

Unable to install package aioremootio @ git+https://github.com/sam43434/aioremootio.git: ERROR: Cannot install aioremootio==1.0.0.dev0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts [notice] A new release of pip is available: 23.1.2 -> 23.2 [notice] To update, run: pip install --upgrade pip

alpha520098 commented 1 year ago

So this intergation through HACS isnt working, I've the delete and reinstall to no avail,

It would great if you guys could take a look at this, we do appericate the time and effort that mus go into these projects

alpha520098 commented 1 year ago

Logger: homeassistant.setup Source: setup.py:209 First occurred: 1:51:34 PM (1 occurrences) Last logged: 1:51:34 PM

Setup failed for custom integration remootio: Requirements for remootio not found: ['aioremootio @ git+https://github.com/sam43434/aioremootio.git'].

yarafie commented 1 year ago

home assistant is now using aiohttp version 3.8.5 which is why ur getting the error. remootio integration depends on aioremootio (3rd Party library) which is still using 3.8.4.

@sam43434 needs to update his version of aioremootio or you can for your own version.

I explained how to do that in one of the closed issues here look for it,

alpha520098 commented 1 year ago

Thanks so much for clarifying it - however I’ve looked for those instructions, and I’m having some issues finding it

yarafie commented 1 year ago

Instructions below to fix remootio to work with HA 7.3

1. Go to github and fork the aioremootio repo https://github.com/ivgg-me/aioremootio

2. edit the requirements.txt file in your own aioremootio fork and change to below versions aiohttp==3.8.5 pycryptodome==3.17 async-class==0.5.0 voluptuous==0.13.1

3. Go to your HA /config/custom_components/remootio/

edit manifest.json file and change the line with requirements to look like the below "requirements": ["aioremootio @ git+https://github.com/GITHUBUSERID/aioremootio.git"], but change GITHUBUSERID to yours

4. Don't redownload remootio HACS Otherwise you will overwrite your changes done in step 3

Restart HA and you should be good to go.

alpha520098 commented 1 year ago

Mate I gave it a red hot go! But no avail! It more likely me than you.

However I appreciate the time you took out your day to help, and you might always get the thanks you deserve. But thank you

yarafie commented 1 year ago

Glad to help i know it works ass i just did it myself

alpha520098 commented 1 year ago

@yarafie so i've tried this time and time again, and this isn't working - would it be more of the case that @sam43434 just need to update the repo and everything goes back to normal?

yarafie commented 1 year ago

You could wait i did a pull request for him to update

KNA-BBJ commented 1 year ago

Instructions below to fix remootio to work with HA 7.3

Go to github and fork the aioremootio repo https://github.com/ivgg-me/aioremootio

edit the requirements.txt file in your own aioremootio fork and change to below versions aiohttp==3.8.5 pycryptodome==3.17 async-class==0.5.0 voluptuous==0.13.1

Go to your HA /config/custom_components/remootio/

edit manifest.json file and change the line with requirements to look like the below "requirements": ["aioremootio @ git+https://github.com/GITHUBUSERID/aioremootio.git"], but change GITHUBUSERID to yours

Don't redownload remootio HACS Otherwise you will overwrite your changes done in step 3

Restart HA and you should be good to go.

Thanks for your help, worked a treat

nivek1612 commented 1 year ago

@yarafie fixed it for me thanks

gh69 commented 1 year ago

tried this fix as well and it worked for me

alpha520098 commented 11 months ago

@sam43434 any news when this will be fixed?

arisderm commented 11 months ago

fix worked!!

thank you

ant415 commented 11 months ago

Thankyou, worked for me!

arisderm commented 11 months ago

just updated to Home Assistant 2023.8.4 and remotion stopped working again.

checked setting in my fork and in the manifest.json in my HA and everything is correct.

any ideas anyone?

alpha520098 commented 11 months ago

I’ve written to remootio and they’ve said that they aren’t going to help.

I don’t know if @sam43434 is getting these but it maybe the case of changing to a different product- this is simply disappointing

nivek1612 commented 11 months ago

I upgraded to 2023.8.4 without any issues using my fork per the instructions above.

arisderm commented 11 months ago

I upgraded to 2023.8.4 without any issues using my fork per the instructions above.

hm... this means that propably there is something wrong with my setup..

Thanks for the reply, i ll check rest of the setting and come back

retreatinstyle commented 11 months ago

Instructions below to fix remootio to work with HA 7.3

Go to github and fork the aioremootio repo https://github.com/ivgg-me/aioremootio

edit the requirements.txt file in your own aioremootio fork and change to below versions aiohttp==3.8.5 pycryptodome==3.17 async-class==0.5.0 voluptuous==0.13.1

Go to your HA /config/custom_components/remootio/

edit manifest.json file and change the line with requirements to look like the below "requirements": ["aioremootio @ git+https://github.com/GITHUBUSERID/aioremootio.git"], but change GITHUBUSERID to yours

Don't redownload remootio HACS Otherwise you will overwrite your changes done in step 3

Restart HA and you should be good to go.

Thank you! This worked perfectly 👍🙂 Even done the latest update today and all still working as expected 👍🙂

jlrosssc commented 11 months ago

Is there a guide to install this from scratch? I'm not seeing Remootio in HACS to download? It seems that the default download has to be modified but i can't find the integration to download.

yarafie commented 11 months ago

Is there a guide to install this from scratch? I'm not seeing Remootio in HACS to download? It seems that the default download has to be modified but i can't find the integration to download.

You need to add it as a custom repository.

alpha520098 commented 11 months ago

yeah i've downloaded from scratch and i get " Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble" error

jlrosssc commented 11 months ago

But am I downloading aioremootio to custom_config or remootio? I see aioremootio and have downloaded to custom_config but don't see remootio to even download and add to custom_config

perimore commented 10 months ago

I've forked the @sam43434 and aioremootio repo to https://github.com/perimore/remootio if anyone wants to install this as the HACS component directly.

alpha520098 commented 10 months ago

does this require a fresh install? does this also require the removal of any previous installations?

retreatinstyle commented 10 months ago

Broken again after the last updates. Not sure if it's HA or MQTT upgrade that had broken it though 🤔 I had it working after creating a fork as per above instructions but after updates I'm not getting a error but if I go into devices it says it's unavailable.

alpha520098 commented 10 months ago

@retreatinstyle im having the exact same thing, I can get the intergation to see the entity but not being about to control it - it maybe a HA issue but we are the the mercy of @perimore or @sam43434 to see what the issue is.

perimore commented 10 months ago

I’ll try and have a good look at it next week.

On Wed, 6 Sep 2023 at 23:52, alpha520098 @.***> wrote:

@retreatinstyle https://github.com/retreatinstyle im having the exact same thing, i cant get the intergation to see the entity but not being about to control it - it maybe a HA issue but we are the the mercy of @perimore https://github.com/perimore or @sam43434 https://github.com/sam43434 to see what the issue is.

— Reply to this email directly, view it on GitHub https://github.com/sam43434/remootio/issues/12#issuecomment-1709227865, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZTW7NGTCTLTTIXNXYY7XTXZD5CHANCNFSM6AAAAAA2TRJZYA . You are receiving this because you were mentioned.Message ID: @.***>

perimore commented 10 months ago

I've asked if we can get this fixed in the dependancy:

https://github.com/ivgg-me/aioremootio/issues/11

alpha520098 commented 10 months ago

Thank you @perimore - I appericate it

Is this simply the case of updating thier end?

yarafie commented 10 months ago

@perimore take a look at my fork "cover.py" fixed it for latest HA 2023.9.0

nivek1612 commented 10 months ago

so update my fork by adding just these two lines at the points shown in cover.py

_attr_name = None

identifiers={(DOMAIN, self._attr_unique_id)},

then restart HA

The only challenge is in my fork there is no cover.py

nivek1612 commented 10 months ago

@yarafie see my update there is no cover.py in my fork for some reason what did I miss?

yarafie commented 10 months ago

@nivek1612 This time its actually remootio that needs to be updated not aioremootio

nivek1612 commented 10 months ago

confirmed working for me again with the changes to cover.py

alpha520098 commented 10 months ago

so how did you do that?

nivek1612 commented 10 months ago

so how did you do that?

edit this file /config/custom_components/remootio/cover.py to make the suggested changes

as shown here https://github.com/sam43434/remootio/pull/18/commits/0f1b0c1e639639a9801f6d0d5c859de55e9e1d56

alpha520098 commented 10 months ago

so that i can get it, did you just add them any where in the code? sorry for sounding like a noob

nivek1612 commented 10 months ago

as shown in this pull request

https://github.com/sam43434/remootio/commit/0f1b0c1e639639a9801f6d0d5c859de55e9e1d56

alpha520098 commented 10 months ago

yes!!! feel like Tom Hanks in Castaway, so lines 54 and 73 cut and paste!! thank you @yarafie and @nivek1612

nivek1612 commented 10 months ago

54 and 74 :-)

alpha520098 commented 10 months ago

I think its broken again after the latest update (core)

alpha520098 commented 10 months ago

Setup failed for custom integration remootio: Requirements for remootio not found: ['aioremootio @ git+https://github.com/sam43434/aioremootio.git']. 3:23:56 PM – (ERROR) setup.py Unable to install package aioremootio @ git+https://github.com/sam43434/aioremootio.git: ERROR: Cannot install aioremootio==1.0.0.dev0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts [notice] A new release of pip is available: 23.1.2 -> 23.2.1 [notice] To update, run: pip install --upgrade pip 3:23:56 PM – (ERROR) util/package.py - message first occurred at 3:23:29 PM and shows up 3 times

nivek1612 commented 10 months ago

Looks like the update has overwritten the Remootio directory as it’s trying to use the sam43434 fork

alpha520098 commented 10 months ago

so does that mean we have to re do the fork thing? it was suggesting something wrong "A new release of pip is available: 23.1.2 -> 23.2.1 [notice] To update, run: pip install --upgrade pip"

nivek1612 commented 10 months ago

try doing this, effectively putting the same changes back in as before

Go to your HA /config/custom_components/remootio/

edit manifest.json file and change the line with requirements to look like the below "requirements": ["aioremootio @ git+https://github.com/GITHUBUSERID/aioremootio.git"], but change GITHUBUSERID to yours

edit this file /config/custom_components/remootio/cover.py to make the suggested changes

as shown here https://github.com/sam43434/remootio/commit/0f1b0c1e639639a9801f6d0d5c859de55e9e1d56

restart HA and see if that works. Other than that will need someone with more skills than me

alpha520098 commented 10 months ago

I can confirm that doing what @nivek1612 says does work with the latest update as of 09/09/2023

once again thank you @nivek1612 - outstanding!

nivek1612 commented 10 months ago

@alpha520098

I just upgraded and my changes survived. No need to re-edit remootio.

Did you re-download remootio from HACS, as that would destroy the changes.

alpha520098 commented 10 months ago

So I re-download the fork and make the changes as per the instructions in terms of the cover.

But to answer your question I did not start with a fresh download