HA.core REST API POST unique_id for entities?

This work for me. Put it in configuration.yaml or where appropriated.

template:
  - sensor:
    - name: your_sensor_name
      unique_id: your_sensor_name
      state: ''

Then the REST API POST will update state as usual. And you can customize this entity through UI.

6 Likes