How to combine number and button entities into one?

Hi all,

I’m working on being able to dispense a set amount of food for the Petlibro custom integration. Is there a way to combine a number and button entities and how would I go about doing that? I’ve been trying to find information regarding something like that and reading the documentation, but I’m still very new to the HA architecture.

I could be going the wrong way about this as well. Maybe if I just provide a separate number entity which can set and store the value for the amount of food to be dispensed, would the users be able to create a custom card that could allow to both see and set the amount to be dispensed and to dispense it using both the number and the button entities of the feeders?

Thanks in advance!