-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Adding SurePet Feeders information into HA for consumption and refilling. #93003
Comments
Hey there @benleb, @Danielhiversen, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) surepetcare documentation |
+1 from me Would be really good to be able to work out last time pet was fed (i.e. bowl was opened/closed manually) so that notifications could be set up if pet not fed by a certain time thank you |
+1 as well, would be great |
+1 from me. |
It's been 2 months. Is this still active? |
@benleb would you mind looking into this? |
sorry, missed this! will look into it at the weekend or earlier ✌️ |
Appreciate it. Fyi I have 4 feeders and 4 cats, if you need testers. |
I managed to get this working using an elaborate set of sensors and the SureHA custom integration (installed through HACS). Can post my code if others would like it |
SummaryThis code takes the detailed attributes from the SureHA bowl entities to track daily consumption for the cat and also set up some notifications. IntegrationsSure Petcare has the following entities exposed. I don't think I use any of these in the code below, but they are in the lovelace frontend code below so including them for completion
SureHA integration (installed through HACS) SureHA entities
Config entry:
Sensors & varsSet up the following sensors sensors.yaml
Set up the following 'var'. I have variables+history added in HACS - i think this is using this. var.yaml
Optional - use utility meter to view consumption over time:
Also make sure you're including the above sensor and var entities in your recorder. Some input helpersSorry not sure how to show these in Yaml as i set them up in the UI
Automations and scriptsThis is triggered when the weight of the bowls change. It works out if it is added to (fed) or subtracted from (ate). I've included this as one automation as previously I had them separately and both were changing similar variables so ended up both running. When the cat eats, it adds the recent feed to the daily consumption variables and sets the time of the feed
This next one resets the dinner and breakfast flags at 2am.
This next one notifies me if Nik hasn't been fed breakfast by 8.30am, and again at 10am and 11am
This one does the same but for dinner - 7.30pm etc.
This one tells me if its after 6pm, nik hasn't been fed dinner, and he has come in and tried to eat (usually if i'm nearby i won't feed him until he comes in, to make it as fresh as possible
Same for breakfast
This one lets me know if either the dry or wet bowl has dipped below 15g
This one resets the Nik food counter at 2am
LovelaceThis not very tidy, and lots of extra stuff in here you don't need to show but I had there as i was debugging. And there's something funny going on in my apex-cards at the crossover from June to July - the flatline data there shows up properly on my mobile app but not on web desktop for some reason. Note: I have a few custom lovelace frontends installed through HACs - e.g. apexcharts
|
Curious how you have all those sensors for the feeder? I have two. One for battery level and for connectivity. |
Using the SureHA integration (through HACS) |
TIL there is the HACS version and Integration Version. I'm going to have to dig into this. Thanks for the direction. |
No worries! Note I've edited the code above - improved the automation as I noticed today that last_fed and last_ate were both running at the same time. That's fixed by combining them into one automation. |
would be great if alot of what you did with sensors and such were implemented into either this version or the SureHA version. Is there a reason that these two are not merged together? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Not seeing the feeders consumption or usage from when the pets eat or they are filled. The surepy seems to contain the feeders information, is there anyway to get the feeders to show in HA?
What version of Home Assistant Core has the issue?
2023.5.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
surepetcare
Link to integration documentation on our website
https://www.home-assistant.io/integrations/surepetcare
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: