homedash / kankun-json

A CGI script that provides a simple web interface and RESTful JSON API for the Kankun Small K wifi switch.
http://homedash.org
MIT License
34 stars 25 forks source link

Provide unique ID for a socket #18

Open stokito opened 3 years ago

stokito commented 3 years ago

In HomeAssistant I using the Kankun integration and when I opened /config/entities and clicked on the socket I got an error:

This entity ("switch.bedroom_heating") does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.

As far I understood we should provide the ID somehow. We may use mac addr for this or just generate and save UUID.