Skip to content

Add 'Reset Desiccant' and desiccant frequency number input to Granary Smart Camera Feeder - #201

Merged
jjjonesjr33 merged 14 commits into
jjjonesjr33:devfrom
zendil:dev
Mar 27, 2026
Merged

Add 'Reset Desiccant' and desiccant frequency number input to Granary Smart Camera Feeder#201
jjjonesjr33 merged 14 commits into
jjjonesjr33:devfrom
zendil:dev

Conversation

@zendil

@zendil zendil commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

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:

  • New device.
  • Bug fix (non-breaking change which fixes an issue).
  • New feature or enhancement (non-breaking change which adds functionality).
  • Documentation only.
  • Other (please explain).

Checklist:

  • If applicable, I have added corresponding documentation changes.
  • If applicable, I have reviewed the feature / enhancement guidlines before submitting my request.
  • If applicable, I have tested my code for new features & regressions on the latest version of Home Assistant.

Additional notes:

I did not modify base methods in the API, but of note a post request with data of None may be returned as None or {} depending on whether of not a token resync was performed. This is accounted for in set_desiccant_reset() and opened #200

I 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 the set_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.

@C4-Dimitri

C4-Dimitri commented Feb 9, 2026

Copy link
Copy Markdown
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 jjjonesjr33 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor correction

Comment thread custom_components/petlibro/number.py Outdated
@github-project-automation github-project-automation Bot moved this from To triage to Pending in Petlibro Mar 13, 2026
@zendil
zendil requested a review from jjjonesjr33 March 23, 2026 04:39

@jjjonesjr33 jjjonesjr33 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give it a go

@github-project-automation github-project-automation Bot moved this from Pending to In review in Petlibro Mar 27, 2026
@jjjonesjr33
jjjonesjr33 merged commit 9600c14 into jjjonesjr33:dev Mar 27, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Petlibro Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Completed Completed tasks Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: request may return None or {} based on token refresh [Feature Request]: PLAF203 'Reset Desiccant' Action

3 participants