Hi,
Not sure why the following isn’t working (get an error):
test = luup.devices[102].device_type
luup.log("Test = " .. test)
Error I get referring to the initial line (Yes, I’ve made sure device 102 is a real device - 'tis a light switch actually):
LuaInterface::StartEngine failed run: 0 [string "test = luup.devices[102].device_type..."]:1: attempt to index field '?' (a nil value)
Am running 1.5.233