sam43434 / remootio

remootio
18 stars 29 forks source link

door being open/closed gets out of sync with reality #19

Open jhaar opened 11 months ago

jhaar commented 11 months ago

Hi there

I've been using this custom addon for about a year, and am the sort of person who continually updates HA with the official releases. I run it via docker. Several months ago (after working fine until then) I noticed the garage door state would get out of sync with reality. Door tagged as "open" when it's "closed" kinda thing. Usually restarting HA would fix that. But as the monthly releases continued, it's got less and less reliable - these days even restarting HA doesn't seem to fix it. Once it's out of sync - it stays like that - until it gets out of sync again - and so ends up working again!

BTW I do have the official Remootio app on my Android and it's always worked - so this isn't anything to do with the hardware/magnet/etc. We also still use the "real" door opener successfully - and maybe it's the reason this gets out of whack? i.e. HA closes the garage, real remote opens it and HA only knows it's last command state? I dunno - just guessing.

I know there's not much to go on there - I am happy to generate diagnostics if anyone can help - and tell me what to do?

Thanks

Jason

alpha520098 commented 11 months ago

have you tried a fresh install?

jhaar commented 11 months ago

Good idea. I downloaded it via "git clone https://github.com/sam43434/remootio.git" and diff'ed it against the running version. No changes (not quite true, I just added the https://github.com/sam43434/remootio/commit/0f1b0c1e639639a9801f6d0d5c859de55e9e1d56 changes last week as it had entirely broken - so those changes are expected).

So that doesn't appear to be the problem.

alpha520098 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.

theres is a thread with 54 comments - i can assure you it works even with the latest update

jhaar commented 11 months ago

I didn't say it didn't work? You need that patch to make remootio work at all. I'm saying my problem with the up/down confusion predates that drama and is the reason my HA remootio directory is slightly different from the git repo

osterman commented 10 months ago

I have also encountered this lately and also noticed rebooting HA seems to resolve itself, for a while. I applied the manual patches and to get it working on the latest HA, but it doesn't address the issue with it getting out of sync.