-
Notifications
You must be signed in to change notification settings - Fork 13
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
"no response" after installing homebridge 1.3.0 #15
Comments
Same here... hoping the dev is still maintaining this, else will have to pin to an older version of Homebridge until someone can fix it |
|
Same issue here. |
It seems to be working again with the update to Homebridge 1.3.1, likely due to this change: - Automatically correct bad characteristic values provided by plugins in more cases, this should fix the vast majority of problems users were facing after upgrading to v1.3.0. However, there are still messages in the log telling that the Rachio plugin is generating warnings around the InUse and Active characteristics "expected a number and received object". So, it would still be nice if @kcharwood could update the code to be fully compliant. |
I may have spoke too soon... in less than an hour I used up my 1700 API calls on the Rachio service, so I'm guessing these warnings are causing the plugin to make more requests than normal/necessary. Can anyone else confirm similar behavior? |
I put it this in a disabled block In my config.json for now. |
Library could use a bit of cleanup/modernization, but this patch should resolve the immediate problem. ☝️ |
@leehendricks this is great... is there a branch we can use in the interim until @kcharwood can approve the PR? Any tips on how to do that in homebridge would be helpful |
Yes, I forked the original: https://github.com/leehendricks/homebridge-rachio-platform My master branch has the above fixes. |
@leehendricks i just installed your fork. |
@pponce Good catch. Needed to wait on promises to resolve to determine if zones are running. Give it another shot. The plugin is making a lot of unnecessary Rachio API calls. Feels like a solid refactor would cache the active zone for a given device rather than querying every time. |
@leehendricks yes I often hit my limit of 1700/day from Rachio's API Forgive me, but what is the process to configure Homebridge to use your branch? I am running HB on a Pi using the HB_Pi distro. |
@stevehoek Not familiar with running homebridge on a Pi, but you may need to do a little surgery to replace the original On my mac, it's here:
If the original author doesn't respond to the PR, I'll figure out how to register a new homebridge plugin. |
Maybe there's an easy way to tell homebridge to pull from https://github.com/leehendricks/homebridge-rachio-platform vs. https://github.com/kcharwood/homebridge-rachio-platform/ ? |
@leehendricks thanks for the help... It worked for me to do this from my node_modules folder
|
@stevehoek Ah, nice! Wasn't sure how homebridge would handle the conflict with multiple plugins with the same name. Did you have to remove the original? |
@leehendricks nope! if you have any time to put even a quick and dirty cache in to reduce API calls, I think that would let us get alot more mileage out of this plugin if the original author is no longer involved... |
Already working on a refactor branch. Shhh...don't tell my Day Job Boss, LOL. |
testing now and will report back on the "running" issue. |
@leehendricks so i re-installed but had the same "running" issue. |
scratch that. |
works well. thanks for working on this for the community! |
@stevehoek Quick and dirty cache: npm install -g leehendricks/homebridge-rachio-platform#cacheActiveZones |
Sorry, I must be a total dolt. Do I need to remove the old plugin when trying to install this branch? I'm getting the following error: pi@RaspberryPi:~ $ sudo npm install -g leehendricks/homebridge-rachio-platform#cacheActiveZones npm ERR! A complete log of this run can be found in: |
@swamplynx You could try it fully qualified like @stevehoek did:
|
@leehendricks that is great, thank you for taking time for this away from the day gig :) I notice you say it caches "active" zones... does that mean ones that are enabled in HomeKit, or active meaning actively watering? Because if it is the latter it probably won't help me... |
"Active zones" is a bit of misnomer. Really only applies if you have more than one Rachio tied to your API key. For 99% of folks, there will be one zone active. Previously the plugin was making API calls to Rachio every time homekit wanted to know the state of all zones. (2 calls for each zone.) Now I determine the active zone upon initialization, cache it, and update the cache whenever the active zone changes. |
I bet homekit periodically asks for the state of your devices if you have a tab (or the Home app) open all the time. Let's say you have 10 enabled zones. That would be 20 API calls. Total calls for the day dependent on how often homekit asks for state. |
@stevehoek how do you check on how many api calls you have used? |
@pponce I received an error message in the Homebridge console stating that I had surpassed my daily API limit of 1700, but I know of no other way to check how man API calls my token was used for in any given period of time. Most web service providers would have a way to do this, but I'm doubtful Rachio offers such insight.
|
@leehendricks your branch for caching Active Zones seems to work well for my API call problem. Been running for 36 hours with no issue. Thanks again! I do see these messages. I've seen them in the past, so I think they are unrelated to your changes. Do any of you guys see this kind of message from time to time?
|
@stevehoek Glad to hear it. Looking at my logs with debug turned on, the state of each zone (watering or not) is queried many times per hour. Cache is way to go here for something that rarely changes. Didn't touch the webhook logic, but it could probably use another look. |
Rachio retains all the webhooks you've ever registered for a given device (i.e., Rachio controller), unless you explicitly delete them. So if you've made any changes to your config (specifically, the Feels like the solution would be to delete any previous webhooks, but what if you're using them for some other non-Homekit purpose? Maybe that could be a flag in the options ( |
@leehendricks that is good info. I'm not sure I ever renamed my Rachio platform, but for sure it has some orphaned hooks by the behavior I'm seeing. An option like that would be useful for sure. |
@stevehoek Yes, it was attempting to reuse webhooks with the same name, so I'm not sure why the cruft was building up. New npm install https://github.com/leehendricks/homebridge-rachio-platform.git#cleanupWebhooks |
@leehendricks thank you so much for picking this up and getting it working again! |
I installed it this morning and set the new flag... will monitor and report back if I notice anything irregular. Thanks again @leehendricks ! |
Haven't managed to install this fix on my pi homebridge installation. SSH from Mac. Any tips for the less savvy? Best would be to update via homebridge UI for us dummies. Thanks for the great plugin btw, much appreciated. |
@GeezusChrotch Solid GitHub handle. 💯 Registered my forked version of the plugin with npm, so now you should be able to install/update via the normal home bridge channels (Homebridge Config UI X, etc.) |
@leehendricks thanks again for the work you did on this. I've been running your fork for awhile now with no issues. |
Thank you for all the work you put into this. I was able to configure this - however I am seeing a duplicate of the controller and zones (for a total of 16 zones and 2 controllers). I tried clearing the homebridge cached devices in case it was a remnant of the previous attempt at installing the older plug in but the zones reappear. Not sure what I may have done incorrectly :/ |
Nevermind
Well nevermind - I realized it's not a duplicate...but it's a second unit I have on my account that I plan on installing at my parents' house. Is there a way to ignore it? Eventually I plan on turning it over to them account-wise. But I was hoping to maintain shared access...unless it messes with my Homebridge! |
All zones showing "no response" after install of homebridge 1.3.0
The text was updated successfully, but these errors were encountered: