Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105921

How can I set a unique ID for entities created via the REST API?

$
0
0

I am creating some entities via the REST API, by setting its state, via

POST /api/states/sensor.my_entity
{
    "state": "oh yeah"
}

The entity is created (return code 201) and its state is correct.

It cannot be edited via the UI, though, because it lacks a unique ID.

How can I provide one? (either via an explicit creation or by adding something to the call).

Or, in other words: how can I create entities via the API, that would be editable through the UI?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105921

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>