python-dlipower icon indicating copy to clipboard operation
python-dlipower copied to clipboard

Speed issue

Open ghost opened this issue 7 years ago • 0 comments

I am running below script. First of all, I did not find how to turn on all outputs from PowerSwitch object so that is why I am iterating through all outputs. The issue is that when I run the script, I see about 3 second delay between each output turning on... I think it is processing time because I tried to change the sequency delay configuration on the DIN Relay unit to 0 seconds and still I got same results. So I wanted to ask if you have any suggestions?

import dlipower
rl1 = dlipower.PowerSwitch(hostname='192.168.0.100',password='1234')
for rl in rl1:
	rl.state='ON'

ghost avatar May 11 '17 19:05 ghost