Page 1 of 1

Run dzVents script manually

Posted: Sunday 01 March 2020 16:35
by foogy
Is there a way to run dzVEnts scripts manually? Or to force a script to be executed?

If I for example have a script that run every minute
on = {
timer = {
'every minute'
}
},

During development and debugging I don't want to wait one minute for the script to be executed.

Re: Run dzVents script manually

Posted: Sunday 01 March 2020 16:47
by ronaldbro
You can use a dummy switch or another switch.
I have a dedicated Xioami button for debugging and add it to the "on device" list when I work on that script.

Re: Run dzVents script manually  [Solved]

Posted: Sunday 01 March 2020 17:54
by Tjeerd13
I use this for manual activate the switch with device idx 50

Code: Select all

{
    on = 
    {
        timer = 
        {
            'every minute', -- just an example to trigger the request
        },
        
        devices =
        {
            50,              -- Just an on Switch to activated the script manualy for testing.
        },
        httpResponses = 
        {
            scriptVar, -- must match with the callback passed to the openURL command
        },