dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Multiple groups with the same uniqueID #7760

Closed Zehir closed 2 months ago

Zehir commented 4 months ago

Does the issue really belong here?

Is there already an existing issue for this?

Describe the bug

Using the endpoint POST /api/:apiKey/groups I was able to create multiple groups with the same UUID. On the other side I can't create a sensor with the same unique id;

[
    {
        "error": {
            "address": "/sensors",
            "description": "sensor with uniqueid, 00:1f:ee:00:12:00:08:bb-01-1000, already exists",
            "type": 100
        }
    }
]

Is there any reason I don't know about group unique id not unique ?

Steps to reproduce the behavior

Send a POST /api/:apiKey/groups With;

{
    "name": "New group",
    "type": "Room",
    "class": "Living room",
    "uniqueid": "AA:BB:CC:DD"
}

Expected behavior

All groups are created but only one should be success and the rest should return an error.

Screenshots

No response

Environment

deCONZ Logs

No response

Additional context

No response

github-actions[bot] commented 3 months ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 3 months ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 2 months ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.