- Code: Select all
tell application "IndigoServer" to return name of every device where supports on off is true and display in remote ui is true
How can one get the same list in python (python code fragments combined from forum searches)?
- Code: Select all
devList = [dev for dev in indigo.devices.iter() if 'onOffState' in dev.states and 'displayState' in dev.states]
returns more devices than the applescript version.
What would be the correct keys (if that is the correct term) to use?