Personal attribute for switch?

hello, can I use a personal attribute in a switch or other device?
That I try to mind is that I want to have for example a priority attribute to assign to my switch, or light or another device. can you help me?