Author Topic: Complete list of device #s and node IDs  (Read 7119 times)

Offline kkl

  • Sr. Member
  • ****
  • Posts: 340
  • Karma: +1/-1
Complete list of device #s and node IDs
« on: May 26, 2013, 08:42:44 pm »
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?
« Last Edit: May 26, 2013, 08:45:29 pm by kkl »

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 760
  • Karma: +42/-7
Re: Complete list of device #s and node IDs
« Reply #1 on: May 26, 2013, 10:39:39 pm »
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

Offline akbooer

  • Master Member
  • *******
  • Posts: 5287
  • Karma: +229/-67
  • "Less is more"
Re: Complete list of device #s and node IDs
« Reply #2 on: May 27, 2013, 02:46:32 am »
Easy to make your own...

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

Code: [Select]
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 http://"your Vera IP address"/devlist.txt

Makes a file like this:

[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


« Last Edit: May 27, 2013, 02:51:26 am by akbooer »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline kkl

  • Sr. Member
  • ****
  • Posts: 340
  • Karma: +1/-1
Re: Complete list of device #s and node IDs
« Reply #3 on: May 27, 2013, 10:08:36 am »
Good info from both of you.

Offline Spanners

  • Full Member
  • ***
  • Posts: 230
  • Karma: +12/-5
    • https://www.livehouseautomation.com.au
Re: Complete list of device #s and node IDs
« Reply #4 on: August 31, 2016, 07:23:54 am »
@akbooer,

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


Offline akbooer

  • Master Member
  • *******
  • Posts: 5287
  • Karma: +229/-67
  • "Less is more"
Re: Complete list of device #s and node IDs
« Reply #5 on: August 31, 2016, 08:16:05 am »
Any chance of a version that will add the watts/kwh variables to the text file with each device?

Code: [Select]
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()
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline Spanners

  • Full Member
  • ***
  • Posts: 230
  • Karma: +12/-5
    • https://www.livehouseautomation.com.au
Re: Complete list of device #s and node IDs
« Reply #6 on: August 31, 2016, 08:36:52 am »
You're awesome, thank you.

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

Code: [Select]
[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                                   
« Last Edit: August 31, 2016, 08:38:43 am by Spanners »

Offline akbooer

  • Master Member
  • *******
  • Posts: 5287
  • Karma: +229/-67
  • "Less is more"
Re: Complete list of device #s and node IDs
« Reply #7 on: August 31, 2016, 08:46:05 am »
Any chance I could get a CR/LF too please, seems to be one very long string? :)

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

Code: [Select]
local info = "%-20s %-32s %8s %8s \n"
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline TheSaint

  • Full Member
  • ***
  • Posts: 112
  • Karma: +0/-1
  • I am me, and me is I!
Re: Complete list of device #s and node IDs
« Reply #8 on: February 26, 2017, 02:32:59 am »
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.
This is my signature :)

Offline akbooer

  • Master Member
  • *******
  • Posts: 5287
  • Karma: +229/-67
  • "Less is more"
Re: Complete list of device #s and node IDs
« Reply #9 on: February 26, 2017, 03:27:04 am »
The AltUI plugin already does that... and much more.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline markoe

  • Full Member
  • ***
  • Posts: 125
  • Karma: +3/-3
Re: Complete list of device #s and node IDs
« Reply #10 on: February 26, 2017, 10:10:58 am »
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.

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

Offline bucko

  • Hero Member
  • *****
  • Posts: 597
  • Karma: +26/-6
    • Travel and Living in China
Re: Complete list of device #s and node IDs
« Reply #11 on: March 01, 2017, 11:41:09 pm »
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.

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

I got the scene created ok, but how to get it to open in a browser tab??
Vera 3, 40+ Fibaro relays & dimmers, IPUX cams, Elk M1 Gold, M1XEP, M1SP, XVOR, M1RB, Elk124, Monoprice HDMI matrix & 6 zone amp, Denon AVR, Panasonic A8000, BI DV,On Controls

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4431
  • Karma: +247/-120
Re: Complete list of device #s and node IDs
« Reply #12 on: March 02, 2017, 08:11:27 am »
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.

Offline Tlex

  • Sr. Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Complete list of device #s and node IDs
« Reply #13 on: March 20, 2017, 09:44:23 am »
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 !

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 9825
  • Karma: +742/-136
    • RTS Services Plugins
Re: Complete list of device #s and node IDs
« Reply #14 on: March 20, 2017, 09:59:34 am »
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