Have a look at this one, that one saves a lot of time/work to get entities into home assistant:
Link to the API-guide is broken and I can’t find it, at least not public, but in short;
Main menu → tool (lower right corner) → household → hub settings → local API