Well, that's a revelation!
...however, I do note that after doing so, the luup.devices structure is NOT updated, and, of course, any running plugins which scan this for device numbers will be completely screwed up. A reload would certainly be desirable...
...also, if using AltUI, you can simply implement this by directly editing the device attribute "id".