-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Last feeding entity time rather than amount #45
Comments
I am thinking the best solution is to create new sensors for |
I feel so dumb. I spent over an hour trying to figure out why the Last Feeding and Last Sleep always show "unknown" but Last Diaper Change is working. I was going in circles trying to figure out why one sensor was working and the others were not. Now I see that if you don't enter a feeding amount or a sleep time, it won't show any data. Since I still can't get the sleep timer to work in HA, and I'm not logging feeding amounts right now (breast feeding), having HA show the time when these events were logged would be ideal. If there is ANY way to get that working, please let me know!! |
I mean to come back here and post my update a while ago but we're preparing for baby arrival so you know how it goes. I finally have this working the way I wanted, with the last feeding times, as well as last feeding how long ago. For anyone else wanting these sensors, here's the working code from my config. Screenshot of Sensors
|
@five2seven I'll leave this comment up because maybe it will help someone else. But, this is using the REST integration and not baby_buddy_homeassistant integration. |
@jcgoette our new baby arrived 2 days ago and I wanted to let you know how great having this integration is. Thank you so much for sharing your work with the community. We're using it to populate a dashboard and it's a big hit with the wife. Helps us keep on top of things. Adding my 2 cents that I was also confused about the sensors initially, the template sensors listed above were closer to what I was expecting and I'll be adding them in. Thanks for leaving the comment up! |
I just wanted to drop in to +1 this request. HA makes you jump through hoops to avoid this, and since we're breastfeeding (and thus not tracking amounts) we see that unknown constantly, haha. |
Minor detail, but the attributes for the |
|
I'm dropping in to give a +1 to this. When we were in the hospital I was entering feedings through HA (I didn't expose Baby Buddy to the internet for reasons) and since we were solely breast feeding (not tracking amounts, only time) the "last feeding" was only displaying as unknown and was very frustrating. I ended up just writing it all down with the intention to come home and try to fix it and add the feedings into Baby Buddy manually as I assumed the feedings weren't actually getting added. Had I known this was going to be an issue I would have considered trying to create a PR for this myself but the baby is definitely taking up a lot of time. |
FYI, just found all this and posted in a different topic, but you can use this integration to pull this data out using the same templating shown above because each entity that's pulled in by the integration has a bunch of attributes you can access. So no need to add the rest integration
|
It would make more sense to see the time from the last feed rather than the amount on the last feeding entity. Now the entity shows the feeding amount. One could make a template sensor, take the last feeding end time attribute and calculate the time from the last feed but via the integration would be easier and cleaner to show in HA.
The text was updated successfully, but these errors were encountered: