dzVents 2.4.0 merged into Beta v3.8837+

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Charley
Posts: 24
Joined: Tuesday 06 March 2018 12:20
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.9030
Location: Netherlands
Contact:

Re: dzVents 2.4.0 merged into Beta v3.8837+

Post by Charley »

@sweetpants I had typed 127.0.0.* changed it to 127.0.0.1 now it works thanks.
MiWa4711
Posts: 7
Joined: Tuesday 28 November 2017 18:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dzVents 2.4.0 merged into Beta v3.8837+

Post 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)
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents 2.4.0 merged into Beta v3.8837+

Post 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?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest