afterSec(x)

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

Moderator: leecollings

dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe »

you can try domoticz.variables('SoundSiren').set(domoticz.variables('SoundSiren'))
I think that the queued items are cleared when you set a new value.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
mikkel75
Posts: 39
Joined: Thursday 08 December 2016 20:50
Target OS: Linux
Domoticz version:
Contact:

Re: afterSec(x)

Post by mikkel75 »

Sorry for being stupid here, but are you suggesting that setting the variable to its own value will cancel the queued items?

/M
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe »

Yes, that's the educated guess ;-)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
mikkel75
Posts: 39
Joined: Thursday 08 December 2016 20:50
Target OS: Linux
Domoticz version:
Contact:

Re: afterSec(x)

Post by mikkel75 »

Hi,

Are you sure it shouldn't be:
domoticz.variables('SoundSiren').set(domoticz.variables('SoundSiren').value)

With you suggestion I get a value like:
Handling variable-events for: "SoundSiren", value: "table: 0x7f2c800b7ef0"

BR,
M
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe »

Ah, yeah, uf curse. Just checking if you were paying attention here :-p
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest