Dozen levitron dimmable switches connected to one hub, furthest switch approx 90ft
Created smartApp with OAuth, and gave that app access to use all 12
ABLE to query from a python script to get all 12 light states …
Problem
Attempting to turn them all on or off at once:
switches.on()
// or this way...
switches.each{ it.on() }
only works for 8 out of 12 of them… and its usually the same 4 that fail. (BUT, for those 4 failed devices the on/off command DOES register in the device log)
What works
Switching each individual light from the SmartThings app 100% of the time
Calling all 12 in a python loop, so that it becomse 12 individual HTTP calls
@SteveWhite - All are zwave.
wierd - delay() gave me an error.
An unexpected error occurred.',
'type': 'groovy.lang.MissingMethodException'}
but i tried this… with same results (20-40% of devices fail)
// wasn't sure if delay option is synchronous or async,
// so just in case, increasing delay
def ms=200
switches.each{
it.on([delay:ms])
ms += 200
}
I guess the best option then is to call each device one by one from HTTP calls,
just seems a little disappointing, something basic like this doesn’t work.