Page 2 of 2

Re: afterSec(x)

Posted: Tuesday 16 January 2018 14:47
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.

Re: afterSec(x)

Posted: Tuesday 16 January 2018 14:53
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

Re: afterSec(x)

Posted: Tuesday 16 January 2018 14:57
by dannybloe
Yes, that's the educated guess ;-)

Re: afterSec(x)

Posted: Tuesday 16 January 2018 15:27
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

Re: afterSec(x)

Posted: Tuesday 16 January 2018 16:02
by dannybloe
Ah, yeah, uf curse. Just checking if you were paying attention here :-p