Hi,
It works great. I didn't think about not using forXXX().
Thanks!!!
Search found 4 matches
- Sunday 25 August 2019 10:56
- Forum: dzVents
- Topic: Won't switch off script [Solved]
- Replies: 18
- Views: 4650
- Thursday 22 August 2019 20:18
- Forum: dzVents
- Topic: Won't switch off script [Solved]
- Replies: 18
- Views: 4650
Re: Won't switch off script [Solved]
I'm using this topic for a similar issue I have.
I want to schedule devices in a series with following loop
@benitoDomo, sorry but I am still confused what you want to achieve.
If you want the device to switchOn for some time and switchOff after that then use
for i, deviceName in pairs ...
- Thursday 22 August 2019 14:04
- Forum: dzVents
- Topic: Won't switch off script [Solved]
- Replies: 18
- Views: 4650
Re: Won't switch off script [Solved]
Hello everyone,
I'm using this topic for a similar issue I have.
I want to schedule devices in a series with following loop
Any idea ? Thanks !
Please add a log statement to show i. I cannot see from this snippet what the value of i is.
Hello Waaren,
Here follows Domoticz log:
2019-08 ...
- Thursday 22 August 2019 11:20
- Forum: dzVents
- Topic: Won't switch off script [Solved]
- Replies: 18
- Views: 4650
Re: Won't switch off script [Solved]
Hello everyone,
I'm using this topic for a similar issue I have.
I want to schedule devices in a series with following loop
for i, deviceName in pairs(devicesToControl) do
local device = domoticz.devices(deviceName)
local delayTimeMinute = (i-1)*TIME_DURATION
-- reset device commands --
device ...
I'm using this topic for a similar issue I have.
I want to schedule devices in a series with following loop
for i, deviceName in pairs(devicesToControl) do
local device = domoticz.devices(deviceName)
local delayTimeMinute = (i-1)*TIME_DURATION
-- reset device commands --
device ...