afterSec(x)

Easy to use, 100% Lua-based event scripting framework.
dannybloe
Posts: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe » Tuesday 16 January 2018 15:47

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: 32
Joined: Thursday 08 December 2016 21:50
Target OS: Linux
Domoticz version:
Contact:

Re: afterSec(x)

Post by mikkel75 » Tuesday 16 January 2018 15:53

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: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe » Tuesday 16 January 2018 15:57

Yes, that's the educated guess ;-)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

mikkel75
Posts: 32
Joined: Thursday 08 December 2016 21:50
Target OS: Linux
Domoticz version:
Contact:

Re: afterSec(x)

Post by mikkel75 » Tuesday 16 January 2018 16:27

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: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: afterSec(x)

Post by dannybloe » Tuesday 16 January 2018 17:02

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 2 guests