Where are the API docs about how to create sensor entities?

Yes, the original problem is solved here: Send a bunch of data from node-red to home-assistant, what is the best way - #4 by danielo515