Use input_boolean in a integration

I wrote my own integration to control my water heating through mypv device.

I like to extend it with device-settings like manual mode. For this, i want to integrate the input_boolean and input_number helpers/components in my integration. I found only documentation on how to configure it using the UI or yaml and automation, but i couldn’t figure out, how i can create my own input_boolean “entity” for my device.

Does someone can give mit a advise / documentation on how to create/use a input_boolean within a integration?
Does someone know any project, using one of those components? Which one?

Thank you.