When integrating your NEXUS-NERO with third party platforms such as Push Controls or Crestron you will need to know the IDs of your devices and scenes. You can quickly fetch all of this information quickly by running a Lua script on the gateway.
1. Go to My Apps
2. Select Develop Apps
3. Select Test Luup Code (Lua) and in the text box that appears
4. A text box will appear, paste the code below into the box
5. Click Go
CODE:
local file = io.open("/www/idlist.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 \n', deviceNo, d.description))
end
end
file:write("\n\n")
file:write("[SceneNo] scene names on " .. os.date() .. "\n")
for sceneNo,s in pairs(luup.scenes) do
if s.id ~= "" then
file:write(string.format('[%03d] %s \n', sceneNo, s.description))
end
end
file:close()
Once it has run, go to http://<NERO IP>/idlist.txt in your browser for a list that looks like the below:
[DeviceNo / id] device names on Wed Feb 1 15:44:18 2017 [064] JLO Lux [065] JLO Humidity [066] JLO UV [072] EO Door [073] CR Door [010] Mesh SR [011] ESR Door [076] COR Back Stairs Door [077] JRO Door [081] CR Landing Door [082] JLO Door [SceneNo] scene names on Wed Feb 1 15:44:18 2017 [001] Corridor lights