Skip to content
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

[Feature Request]: PLAF109 / Polar Wet Food Feeder | Requesting additional controls/sensors #41

Open
1 task done
lucromano opened this issue Dec 9, 2024 · 11 comments
Assignees
Labels
Enhancement New feature or request Help wanted Extra attention is needed

Comments

@lucromano
Copy link

Device model name

Polar Wet Feeder

Device model number

AF05013841......

Device type

Feeder

What state, statistic or control do you want to be reported in the integration ?

entities

  • tray-rotate-position (degrees)
  • door-open-percentage
  • internal-temp
  • eating-is-detected
  • weight

Available to help integrate the new device

  • I agree to help with the integration of the new device by providing the necessary information that will be requested
@jjjonesjr33
Copy link
Owner

@lucromano the Polar Wet Feeder is already implemented. Is yours not showing up? Or are you wanting an feature request/enhancement of the device?

@jjjonesjr33 jjjonesjr33 added Question Further information is requested Pending Pending labels Dec 9, 2024
@github-project-automation github-project-automation bot moved this to To triage in Petlibro Dec 9, 2024
@lucromano
Copy link
Author

oh yes, but didn't seem to have any 'actions' ie. opening/closing lid, rotating food etc.

@lucromano
Copy link
Author

@lucromano the Polar Wet Feeder is already implemented. Is yours not showing up? Or are you wanting an feature request/enhancement of the device?

There's no option to actually action anything? Maybe I'm configuring it wrong.

In any case, ideal features would be:

P0

  • open/close lid
  • rotate lid

p1

  • set schedule (maybe blueprint?)
  • schedule on/off

p2

  • set and monitor value of
    -- temperature
    -- rotation of tray in degrees (instead of location)
    -- % lid open (to ensure only partially open)
  • update schedule to incorporate

p3

  • control of loudspeaker
  • detection of motion (i think there's a sensor?)
  • fan speed

happy to assist in dev :)

@jjjonesjr33 jjjonesjr33 changed the title [Device]: PETLIBRO Polar [Feature Request]: PLAF109 / Polar Wet Food Feeder | Requesting additional controls/sensors Dec 21, 2024
@jjjonesjr33 jjjonesjr33 added Enhancement New feature or request Deferred put off (an action or event) to a later time; postpone Help wanted Extra attention is needed and removed Question Further information is requested Pending Pending labels Dec 21, 2024
@jjjonesjr33
Copy link
Owner

I understand that a few of us have been looking into this and exploring what can be added, @lucromano. Since this is a relatively new device, not all API information has been made available yet. We appreciate your patience as we work through the details and determine what is fully accessible.

@jjjonesjr33 jjjonesjr33 moved this from To triage to Deferred in Petlibro Dec 21, 2024
@lucromano
Copy link
Author

I am available for this, if someone can bring me up to speed.

@jjjonesjr33
Copy link
Owner

@lucromano, here is what I know so far.

  • Key things to note that I know that don't pull via the API is temperature.
  • Also the last I looked at the API for this I wasn't able to see a way for us to control open/close/rotate the lid this would probably need to be investigated further.
  • rotation of tray in degrees this could be doable, but may need to be looked/reworked vs the plate position. With the device I don't know if there is a way, at just looking at it, to tell if the rotation/position matters vs saying "Dispensed meal 1 of 3" or something of that nature.
  • % lid open (to ensure only partially open) this is covered under the barn door @property which is listed as "Lid Status"
  • detection of motion need to be investigated
  • fan speed need to be investigated

Also right now, it looks like @peterjeschke was working on some of it in #47 Just glancing at some of their code it looks like they were implementing the feeding plan/control for the device that may be viable to use for

  • set schedule (maybe blueprint?)
  • schedule on/off

We have API information for sound that might apply to this device here - #27 that we may be able to help.

Hopefully that helps, let me know if you need any more info or anything else 😄

@jjjonesjr33 jjjonesjr33 removed the Deferred put off (an action or event) to a later time; postpone label Dec 21, 2024
@jjjonesjr33 jjjonesjr33 moved this from Deferred to Pending in Petlibro Dec 21, 2024
@peterjeschke
Copy link
Contributor

Yes, I have plans to implement more stuff for this device :) My next plan is to control schedules, but I'm not sure yet how to properly expose them to Home Assistant because they're dynamic. My initial thought was to create entities for each schedule, but that could clutter things up if you create and delete schedules often

@C4-Dimitri
Copy link
Contributor

Yes, I have plans to implement more stuff for this device :) My next plan is to control schedules, but I'm not sure yet how to properly expose them to Home Assistant because they're dynamic. My initial thought was to create entities for each schedule, but that could clutter things up if you create and delete schedules often

i have been thinking about it too.

from what i have thought about, i think the best would be to have a sensor with some data - probably just if the schedule is active. but have all of the scheduled feedings in the attributes of the sensor. then have service calls that can add, delete, enable, or disable specific scheduled feeds based on the name or id of the scheduled feed in the attributes? then if service call is made, wait a min and call a refresh of the data to pull into attributes. in this way people could make automations to turn or off the next scheduled feed automatically by reading the attributes to find the next feed and use that name/id in the service call.

you could have 1 sensor for todays schedule, and 1 sensor for all schedules.

i really cant think of a better way to maintain the info.

@jjjonesjr33
Copy link
Owner

jjjonesjr33 commented Dec 31, 2024

It seems we have another. @kevinpoitra has also been working on some enhancements in pull request #50 for this device.

@kevinpoitra
Copy link
Contributor

Hi! I received a PLAF109 for Christmas, however I'm displeased at the inability to add multiple feeding schedules for the same day through the official app - my cat eats twice a day, so I want to be able to open the food door once in the morning and once in the evening. As such, I started extracting API information from the app and implementing its controls into this integration. #50 adds the manual 'Feed now', 'Rotate food bowl', and 'Ring bell' controls available when no feeding schedules are set. My next PR will involve implementing the ability to set feeding schedules through this integration.

@jjjonesjr33
Copy link
Owner

@lucromano P0 has been completed in pull request #50 and has been pushed on release v1.0.17 thanks to @kevinpoitra

P1 should now be feasible in Home Assistant, as we can control the opening and closing of the lid independently, rather than relying solely on scheduling through the Petlibro app. This can serve as a temporary solution until we gain full control over scheduling via the API for more manual management.

  • However, the drawback is that if Home Assistant goes offline or cannot access the API, it will be unable to operate the lid.

I would prefer to focus on finding a way to finalize a method for controlling the scheduling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Help wanted Extra attention is needed
Projects
Status: Pending
Development

No branches or pull requests

5 participants