Sure:
- Code: Select all
dev = indigo.devices[LUMDEVICEID]
dev.sensorValue # this returns a float that's the luminance value
An easy way to get the part after the equal sign in the first line is to right-click the device in the device list and select "Copy Python Reference". This will put something like this on the clipboard and you can just paste it into a script/terminal window:
- Code: Select all
indigo.devices[1560643748] # "024 - Luminance"
The name of the device is in quotes as the comment (after the # sign).