Add 'Reset Desiccant' and desiccant frequency number input to Granary Smart Camera Feeder - #201
Merged
Conversation
…post() vice a resp object
# Conflicts: # custom_components/petlibro/api.py
…session.post() vice a resp object
…ul response codes
Contributor
|
@zendil , the "DESICCANT" key is used when the desiccant cycle being adjusted, you can also use the key "FILTER_ELEMENT" to the same endpoint to for example adjust the filter cycle for a fountain instead. All go to the same endpoint in the API but with a key: /device/device/maintenanceFrequencySetting |
jjjonesjr33
self-requested a review
February 9, 2026 21:43
jjjonesjr33
requested changes
Mar 13, 2026
8 tasks
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change:
Adds functionality for a 'Reset Desiccant' button to the Granary Smart Camera Feeder. Largely copied from the non-camera feeder but with some bug fixes.
'Desiccant Frequency' number input also added to the camera feeder and bugfixed.
Closes #143
Type of change:
Checklist:
Additional notes:
I did not modify base methods in the API, but of note a post request with data of
Nonemay be returned asNoneor{}depending on whether of not a token resync was performed. This is accounted for inset_desiccant_reset()and opened #200I also did not change too much of what was already present in the api
set_desiccant_reset()method but I am unsure when/where the response would be parsed and returned as an int - that block may be redundant. Other fragments in that method seemed to do json parsing that is now handled in the request method itself.I did not poke around with the api itself at all, using a key parameter of
"DESICCANT"for theset_desiccant_cycle()request seemed to produce desired results so I stopped there - not sure if there is an knowledge floating around somewhere of what that value is/does.