Page 3 of 3

Re: dzVents 2.4.0 merged into Beta v3.8837+

Posted: Wednesday 07 March 2018 19:10
by Charley
@sweetpants I had typed 127.0.0.* changed it to 127.0.0.1 now it works thanks.

Re: dzVents 2.4.0 merged into Beta v3.8837+

Posted: Wednesday 04 April 2018 13:01
by MiWa4711
Hi,

in //www.domoticz.com/wiki/DzVents:_next_gen ... _scripting there is a description how to ..... but it does not really work. Please advice....

That's just how it works and you will have to deal with it in your script. So, instead of simply re-issuing switchOn().forMin(5) you have to check the switch's state first:

if (light.active) then
light.switchOff().afterMin(5)
else
light.switchOn().forMin(5)
end
or issue these two commands both as they are mutually exclusive:

light.switchOff().checkFirst().afterMin(5)
light.switchOn().checkFirst().forMin(5)

Re: dzVents 2.4.0 merged into Beta v3.8837+

Posted: Wednesday 04 April 2018 16:27
by dannybloe
MiWa4711 wrote: Wednesday 04 April 2018 13:01 Hi,

in //www.domoticz.com/wiki/DzVents:_next_gen ... _scripting there is a description how to ..... but it does not really work. Please advice....

That's just how it works and you will have to deal with it in your script. So, instead of simply re-issuing switchOn().forMin(5) you have to check the switch's state first:

if (light.active) then
light.switchOff().afterMin(5)
else
light.switchOn().forMin(5)
end
or issue these two commands both as they are mutually exclusive:

light.switchOff().checkFirst().afterMin(5)
light.switchOn().checkFirst().forMin(5)
Can you create a new topic for this?