Home Assistant’s REST API documentation shows that you can create an entity and update the state of the entity with just one HTTP POST request to URL POST /api/states/<entity_id>. This works to mostly, but the entities created are lacking “unique id”, which prevents e.g. renaming them from the UI.
I suppose I would need to register the entity somehow, but the REST API documentation does not seem to contain any information on that topic. I would be happy if someone could point me to right direction. Basically, I’m looking a way to create an entity by using the REST API, so that it would be a fully fledged entity. Is that even possible with just REST API?
Did you manage to figure this out at all please? I’m having the same issue. I can’t find out how to delete the “test” entities I made whilst poking around in the API thanks
I see. Options are to use the HA restart to trigger this application to re-send the state; configure the entity manually in HA YAML and just update via the API; or “mirror” it via an automation into an input_number (or whatever helper type is appropriate) which will survive a reboot.