Page 1 of 1
Switch on every 15min for 1min
Posted: Friday 29 March 2019 5:02
by Jubbes
Hello,
i have one Question to all, maybe possible in dzVents?
I want to run a water pump for my pool just 1min every 15min, also just 4 minutes in a hour.
Also, if my Dummy switch x is on, then the switch y should be go on every 15min for 1min.
If the dummy switch x is off then no action.
Can anyone help me here? i`m a beginner, domoticz is the best soft.
Greetings,
Jubbes
Re: Switch on every 15min for 1min
Posted: Friday 29 March 2019 8:39
by waaren
Jubbes wrote: Friday 29 March 2019 5:02
I want to run a water pump for my pool just 1min every 15min, also just 4 minutes in a hour.
Also, if my Dummy switch x is on, then the switch y should be go on every 15min for 1min.
If the dummy switch x is off then no action.
If you are not yet familiar with dzvents then please look at the 10 lines
using dzVents with Domoticz for an intro to dzVents and howto get this script active in domoticz.
script could look like
Code: Select all
return { on = {
timer = { 'every 15 minutes' },
},
logging = {
level = domoticz.LOG_DEBUG, -- switch to LOG_ERROR when OK
marker = 'Pool pump'
},
execute = function(dz)
pump = dz.devices('Pool pump') -- change to real name
controlSwitch = dz.devices('x') -- change to real name
realSwitch = dz.devices('y') -- change to real name
pump.switchOn()
pump.switchOff().afterSec(60)
if controlSwitch.state == 'On' then
realSwitch.switchOn()
realSwitch.switchOff().afterSec(60)
end
end
}
Re: Switch on every 15min for 1min
Posted: Friday 29 March 2019 17:01
by Jubbes
Hello, thanks. that does not look so hard. i think i would step by step change from blockly to dzVents
Viele Grüße,
Jubbes