Run dzVents script manually  [Solved]

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

Moderator: leecollings

Post Reply
foogy
Posts: 6
Joined: Thursday 03 November 2016 20:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Run dzVents script manually

Post 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.
ronaldbro
Posts: 327
Joined: Thursday 15 November 2018 21:38
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

Re: Run dzVents script manually

Post 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.
Tjeerd13
Posts: 34
Joined: Thursday 07 May 2015 16:57
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Assen
Contact:

Re: Run dzVents script manually  [Solved]

Post 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
        },
Pi3, Pi4, Pi4 for Testing, Dashticz, RFXtrx433, Nest: "Thermostat V2, V3, Hello". Honywell Lyric T6R, RFXCom, KaKu, HUE, P1, Open Zwave USB,
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest