When returning the configuration for an AccessControlPlugin I found that there is a conflict if the ID is not unique when returning a list of ACElements even if the type of the ACUnit is different.

The error message says that there is already an ACElement with the same id.

Is it not possible to have the same ID but different type when returning ACElements?

For example my controller might have an ID of 1, but so does the first door on that controller. but the type I’m passing in is a door not a controller, so why is it conflicting?

Hi Omar,

Since every element on an ACP configuration is an ACElement their IDs should always be different, regardless of the ACUnit.

As we can see on its documentation on this link and in this screenshot:

Besides, it is encouraged to use GUIDs as identifiers so a uniqueness identification is more likely to happen.

Let me know your thoughts!

Kind regards,

Fer Guzman