jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
64 stars 30 forks source link

Add support for setting a note tag with add_note service #77

Open Cadair opened 2 years ago

Cadair commented 2 years ago

Unless I am missing something it seems that adding tags to notes isn't currently supported? This would be a nice addition. Thanks!

Cadair commented 1 year ago

Something else that I just thought of related to this is that it would be really nice to be able to get the time of the last note with a given tag, i.e. "last note with tag medicine"

jcgoette commented 1 year ago

That would be cool and seems doable based on existing API documentation.

Cadair commented 1 year ago

I found the Octopus Energy custom component used config flow's to have an optional extra setup step to run which adds a new sensor for your energy rates.

We could do something similar to add sensors for notes (or other things) with specific tags?

jcgoette commented 1 year ago

Yea, that is one option.

Another option is to just automatically create sensors for the last x for each tag. Could create them as automatically disabled or otherwise.

Marquo1 commented 1 year ago

Really wish this was in. Would be handy for recording solid foods

ViPeR5000 commented 1 year ago

+1

TygerrZA commented 10 months ago

Is it possible to add tags with the other services (diaper changes, feedings, sleep, etc)? Or is this not possible via the API?

jcgoette commented 10 months ago

Looks possible to me.

TygerrZA commented 10 months ago

Looks possible to me.

Sorry - just to clarify: do you mean it is currently possible to do this (if so, what is the JSON key to use?). Or do you mean it can be added in as a later enhancement?

jcgoette commented 10 months ago

Could be added. https://github.com/jcgoette/baby_buddy_homeassistant/issues/77#issuecomment-1321137742

acmill14 commented 2 months ago

Hi, was there ever support added to add tags in service calls? Specifically the "add diaper change" one. Or if there's an example of how to do this in YAML I'd appreciate it!