Create helper entity from custom component

Is there a reliable way to create a helper entity (input_*) from a custom component through python code? The EntityComponent objects of those domains are not available in hass.data and creating a custom EntityComponent for those domains seems like a bad idea (and doesn’t work anyway as the entities are not properly added).
I also tried using the websocket API but I ran into all kinds of problems there.
Any pointers would be appreciated.

I would also like to know the answer to this…

Maybe have a look at this conversation, where I go into detail how I got it to work; it’s quite old though. In the meantime I have abandoned this approach as I realized, that it was always easier and made more sense to put these values into attributes of my entities and change them via services.

1 Like