Complete list of device #s and node IDs

Sometimes I’ve wanted to have a complete list of device #s and node IDs, but didn’t know if that existed. I just realized where there’s a list in UI5. It’s the Heal Report (Setup/Z-Wave Settings/Repair/View repair report). Of course, you need to have a heal report to look at, but that’s fairly simple. Is there any other place to find a list of device numbers and node IDs?

Have a look at this plugin - it provides the Z-Wave node id info:

http://forum.micasaverde.com/index.php/topic,13477.msg100381.html#msg100381

Easy to make your own…

just pop this code into [tt]Test Luup code (Lua)[/tt] (under UI5 APPS / Develop Apps):

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()

… then run it and go and look at the file it created with a web browser at [tt]http://“your Vera IP address”/devlist.txt[/tt]

Makes a file like this:
[tt]
[DeviceNo / id] device names on Mon May 27 07:49:15 2013
[002 / 1] _Scene Controller
[256 / 178] 4 in 1 (light)
[257 / 177] 4 in 1 (temp)
[258 / 179] 4 in 1 (humidity)
[259 / 34] Garage Door
[260 / 35] Garage Door Trip
[262 / 36] Shed Door
[265 / 37] Studio MiniMote
[/tt]

1 Like

Good info from both of you.

@akbooer,

Any chance of a version that will add the watts/kwh variables to the text file with each device? :slight_smile:

local file = io.open("/www/devlist.txt", "w")
file:write("[DeviceNo / id] device names, W, kWh, on " .. os.date() .. "\n")

local id = "[%03d / %s]"
local info = "%-20s %-32s %8s %8s"
local sid = "urn:micasaverde-com:serviceId:EnergyMetering1"
for deviceNo,d in pairs(luup.devices) do
    if d.id ~= "" then 
        local W   = luup.variable_get (sid, "Watts", deviceNo)
        local kWh = luup.variable_get (sid, "KWH", deviceNo)
        local ids = id: format (deviceNo, d.id)
        file:write (info: format(ids, d.description, W or '', kWh or ''))
    end
end
file:close()
1 Like

You’re awesome, thank you.

Any chance I could get a CR/LF too please, seems to be one very long string? :slight_smile:

[DeviceNo / id] device names, W, kWh, on Wed Aug 31 20:33:52 2016 [769 / 102] Tilt Sensor - Main [002 / 1] _Scene Controller [771 / 104] Philio 4-in-1 [772 / m1] Toilet 2 (Temp) [774 / b10] Toilet 2 (Door) [008 / 2] Theatre Lights 0.000 0.0000[779 / 105] Entry Master Switch 0.000 0.0000[780 / e1] Entryway Lights [781 / e2] Front Door Lights [782 / 106] Hall Master Switch 0.000 0.0270[783 / e1] Hallway Lights [784 / e2] Hallway Spare [786 / 108] Front Door Lock [789 / 109] Dining Table 0.0 56.9200[790 / e1] _Dimmable Light [791 / e2] _Dimmable Light 11 [792 / 110] Dining Room 0.0 37.4400[793 / e1] _Dimmable Light 12 [794 / e2] _Dimmable Light 13 [795 / 111] Deck - Seats 0.0 24.8500[796 / e1] _Dimmable Light 14 0.0 24.8500[797 / e2] _Dimmable Light 15 [798 / 112] Siobhan's Room 0.0 0.0000[799 / e1] _Dimmable Light 16 [800 / e2] _Dimmable Light 17 [801 / 113] Pool Room Lights 0.0 9.0400[805 / 8] Door Alarm - Main [806 / 9] Door Alarm - Single [551 / 33] Room Light [808 / 115] Kegerator Sensor [809 / e1] Kegerator Sensor 1 [810 / e2] Kegerator (Temp) [811 / 58] Home Energy Master 11.242 0.6630[818 / 116] Deck Fairy Lights [819 / 117] Pantry Master [564 / 41] Office Lights [821 / e2] Pantry Spare [566 / e1] _Appliance Module [055 / e1] KitchenSpotloghts [056 / e2] KitchenBench [831 / 1;255] Parking Sensor [832 / 1;1] Parking Status 16385 0[833 / 1;2] Distance Sensor [834 / 35] Bar LED Lights 0.0 49.4900[835 / e1] Brightness [836 / e2] Red [837 / e3] Green [838 / e4] Blue [839 / e5] White [073 / 30] IXLMasterSwitch 0.000 0.0000[074 / 31] HeatLamps 0.000 0.0000[587 / 17] Dishwasher Power 0.539 0.0000[077 / 32] BathroomMasterSwitch 0.000 0.0790[078 / e1] BathLights [591 / m1] Bar (Temp) [592 / m3] Bar (Light) [593 / m5] Bar (Humidity) [852 / 132] Pantry Door [090 / 36] EdisonLights [603 / m1] Bathroom (Temp) [605 / m5] Bathroom (Humidity) [606 / e1] _Bathroom 2 Light [864 / 134] Bar Power Monitor 17.013 0.1920[866 / e1] Home Energy Monitor 53.383 45.7570[867 / e2] Home Energy Monitor 1 81.454 22.2310[868 / e3] Home Energy Monitor 2 9.104 0.0570[869 / 136] Pool Filtration 0.000 0.0000[870 / e1] _Dimmable Light 18 [871 / e2] _Dimmable Light 19 [104 / 39] Bar (Motion) [873 / 11] Fridge Cam [874 / 12] Front Door [875 / b1] _Motion Sensor [876 / b6] _Motion Sensor 1 [877 / b9] _Motion Sensor 2 [878 / 45200275] Serial_Portlist_2142310101 [879 / usb-101c1000.ohci-1] ftdi_sio [880 / 13] Laundry Door Cam [881 / 14] Hardstand Cam [882 / 1] VMotion Child 1 [122 / 42] Bedroom 3 Lights [130 / 44] Bathroom 2 Light [900 / 139] Bath 2 (Motion) [133 / 45] Bathroom 2 Heat [905 / m1] Bath 2 (Temp) [906 / m3] Bath 2 (Light) [907 / m5] Bath 2 (Humidity) [911 / 140] Power 1 (HT) 52.308 0.0800[912 / 141] Power 2 (Lounge) 0.000 0.0000[657 / 47] Laundry Master [658 / e1] Laundry Lights [659 / e2] Laundry Fan [916 / e0] _Generic IO [154 / 11] Bathroom (Motion) 59 [672 / 76] Siren [417 / e1] _Appliance Module 9 [418 / e2] _Bathroom 2 Heat [675 / e1] IXL Light [676 / e2] IXL Fan [767 / e1] WIR (Temp) [766 / 52] WIR (Motion) [680 / 84] Garage Switch Main 0.0 0.0000[681 / e1] Beam Sensor - Main [682 / e2] Door Sensor - Main [683 / 85] Garage Switch Single 0.0 0.2000[684 / e1] Beam Sensor - Single [685 / e2] Door Sensor - Single [686 / 86] Clothes Dryer 0.000 0.0000[687 / 87] Wall Master Switch [688 / e1] Wall Star Lights [689 / e2] Pool Table Lights [768 / e2] WIR (Light) [696 / 65] WIR [054 / 24] KitchenMasterSwitch 44.692 0.0330[440 / hueLamp_1] HueLamp 1: Hue Lamp [441 / hueLamp_2] HueLamp 2: Hue Lamp [442 / hueLamp_3] HueLamp 3: Hue Lamp [081 / 34] ToiletLight [079 / e2] ToiletFan [565 / 43] Toilet 2 Lights [567 / e2] Toilet 2 Fan [775 / b12] Toilet 2 (Motion) [773 / m3] Toilet 2 (Light) [770 / 103] Tilt Sensor - Single [707 / 92] Hardstand Master [029 / 20] Theatre Screen 0.000 0.0000[497 / Weather-Current-Temperature] Temperature [710 / e1] Hardstand Lights [711 / e2] Deck Spare - Seats [712 / 93] Lounge Lamp Switch [756 / 97] Smart Colour Button [499 / Weather-Forecast-HighTemperature] High Temperature [717 / 95] Pool Master Switch 0.000 0.0000[718 / e1] Pool LED Light [719 / e2] Pool Garden Lights [208 / 51] Front (Motion) 32 [915 / 144] Power 5 (Office) 78.605 0.1130[914 / 143] Power 4 (AV Gear) 364.428 0.5320[913 / 142] Power 3 (Fridge) 164.672 0.1250[848 / 128] Pool Water Sensor [858 / 133] Pond Water Sensor [473 / 46] Deck Lights - Dining [820 / e1] Pantry Light [872 / 10] Master Bedroom [498 / Weather-Forecast-LowTemperature] Low Temperature [660 / 48] Lounge Lights [739 / m1] Front (Temp) [740 / m3] Front (Light) [741 / m5] Front (Humidity) [487 / 71] Water Garden [527 / 69] Aircon Switch [538 / 5] Bed Lamps 0.000 0.0000[420 / e2] Bathroom 2 Fan [043 / 23] ExteriorLights 0.000 0.0000[750 / 2] Garage Cam [751 / 3] Foscam PT [752 / 4] Foscam PTZ [753 / 5] Deck Cam [754 / 6] Front Yard Cam [755 / 7] Driveway Cam [500 / Weather-Current-Humidity] Humidity [758 / 98] _Scene Controller 1 [604 / m3] Bathroom (Light) [762 / 100] Door Bell [865 / 135] Bedroom Fairy Lights [765 / 101] Bar Door Sensor

Sorry, my mistake - used ‘print’ in testing which supplies its own. Change this line:

local info = "%-20s %-32s %8s %8s \n"

Someone should create a device that offers this as a shortcut. For example, two buttons. First one, runs the script (or “refreshes the list”) and second button opens the txt file in a new tab/window. That way it’s always there if you need it. Maybe it’s too much, but useful nonetheless. Maybe the author of the “System Monitor” app can add it into their app.

The AltUI plugin already does that… and much more.

Why not just make a scene that generate the list + open it to the browser. You can run the scene manually as needed.

What would be a line to add so that it would open the http to view this file? I want to make a scene to do this and open a tab in my browser.

Why not just make a scene that generate the list + open it to the browser. You can run the scene manually as needed.[/quote]

I got the scene created ok, but how to get it to open in a browser tab??

Vera can’t start a process on a remote(Windows) machine by itself. The remote machine’s security should prevent that possibility.

In order to enable such a capability(a BAD idea) you would have to create a listening (web) service on the remote machine that Vera could send a request to. Then the service could start your browser when it sees the request. Again, this is a bad idea!

You’re much better off creating a shortcut on your desktop or a favorite/bookmark in your browser.

Would there be any way to convert this test code into a scene code so that I can trigger to update the devlist from a scene ?

Thanks for your help !

Just add the code from:
http://forum.micasaverde.com/index.php/topic,15010.msg291964.html#msg291964
As the LUA code for a manually triggered scene (available from the Scene Editor: “Also, execute the following Luup code:”)

Then run the scene … you should be able to access the files from the browser:
http://Your.Vera.IP.Address/devlist.txt

Is there a way to revise the following code such that the device list is sorted on device number?

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
file:write(string.format(’[%03d / %s] %s \n’, deviceNo, d.id, d.description))
end
file:close()

Yes, of course.

local file = io.open("/www/devlist.txt", "w")
file:write("[DeviceNo / id] device names on " .. os.date() .. "\n")
local idx = {}
for deviceNo in pairs(luup.devices) do
    idx[#idx+1] = deviceNo
end
table.sort (idx)
for _,deviceNo in ipairs(idx) do
    d = luup.devices[deviceNo]
    file:write(string.format('[%03d / %s] %s \n', deviceNo, d.id, d.description))
end
file:close()

Top, thanks a lot!

Does anyone have a version that lists the Z-wave node ID? I think it’s altid when you look in the advanced properties.

I’m trying to find the source of some nonce encryption related errors in my luaupnp log, but it’s referring to the Z-wave ID.