Is there a way to query all the devices and id?

Everytime I remove a device and readd it, it gets added with a higher device ID #. My system is now adding devices at over 230 while I have maybe 20 devices only. I want to clean this up a little bit perhaps it’s been the source of all the issues with my VL lately.

This is from a post I used a while back:

Full Device ID List
In the VERA UI go to the APPS tab
Click the Develop Apps tab
Then click ‘Test LUUP code (LUA)’ in the left-hand menu
Copy the LUA code (below) and paste it into the Code window
Click the blue ‘GO’ button to make the code run
View your device list at - http://yourveraipaddress/devlist.txt

local file = io.open(“/www/devlist.txt”, “w”)

file:write("[DeviceNo / id] device names on " … os.date() … “\n”)

for deviceNo,d in pairs(luup.devices) do

if d.id ~= “” then

file:write(string.format(‘[%03d / %s] %s \n’, deviceNo, d.id, d.description))

end

end

file:close()

That’s awesome. As you can see here, I have about 35 devices including plugin devices. Any suggestions on how to clean things up?

the last device I added was labeled device #227

[DeviceNo / id] device names on Thu Oct 29 15:27:14 2015 [193 / 31] Smoke sensor Spare [002 / 1] _Scene Controller [197 / 32] Gate Sensor [006 / 3] Front Table Lamp [009 / 4] Gate [010 / 6] Garage [207 / 34] Kitchen lights [208 / e2] Kitchen accent light [209 / e1] _Appliance Module [018 / Weather-Forecast-HighTemperature] High Temperature [147 / e2] Home Energy Monitor 2 [024 / 11] Sofa Lights [025 / 12] Foward Lights [218 / e0] _Generic IO 1 [027 / 14] Fan Lights [029 / 15] Entry door [159 / blueiris_157_sensor] Family Room Bi Motion Sensor [227 / 37] Stairway lights [217 / TCC_627895] Thermostat [039 / 18] Front Side Lights [040 / 19] Front Center Lights [016 / Weather-Current-Temperature] Temperature [155 / blueiris_154_sensor] Swimming Pool BI Motion Sensor [023 / 10] Side Lights [031 / 16] Pool Lights [017 / Weather-Forecast-LowTemperature] Low Temperature [049 / 21] Breakfast Nook [210 / 35] Kitchen island light [019 / Weather-Current-Humidity] Humidity [183 / e9] _Generic IO [146 / e1] Home Energy Monitor 1 [145 / 26] Home Energy Monitor [158 / blueiris_156_sensor] Garage Door Bi Motion Sensor [189 / blueiris_188_sensor] Entry Door BI Motion Sensor [190 / 30] Kitchen Smoke sensor

I read in many posts you can’t change the id numbers. There’s probably posts in the forum to delete devices that aren’t part of your system or remnants of something else.

The only way to reset the ID numbers is to completely reset Vera and your ZWave network (Factory Reset), then start completely over again. (You cannot restore a backup, since that would also restore the old IDs).

If you do decide to do this, all of your devices will need to be excluded, then re-included to the new network.