Issue to ON / OFF /DIM a switch w dzVents

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

Moderator: leecollings

hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

Hi
I have several z-wave switched managed by a script, but 2 of them don't change their state when updated by a dzVents script.
I could switch and dim with the GUI, so I guess they are functional (to be sure, I've removed the devices, deleted ozwcache, restarted domoticz and refreshed the nodes...).

the script

Code: Select all

local SWITCHS = {1010, 1003, 205} -- 1010 and 1003, z-wave, 205 dummy to check
local TRIGGER = 202 -- dummy to trigger the script
local DOMAIN = 'SwitchToggle' 
return {
    active = true,
    logging = {
	level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
	marker = DOMAIN
	},
	on = {
        devices = {TRIGGER},
        },

	execute = function(dz, the_device, triggerInfo)
	local LOG_LEVEL = dz.LOG_FORCE -- LOG_INFO, LOG_DEBUG, LOG_ERROR, LOG_FORCE
	local switchDevice
    dz.log('*** start ' .. triggerInfo.type , dz.LOG_LEVEL)
    
    for i1, l1 in ipairs(SWITCHS) do
        switchDevice = dz.devices(l1)
        dz.log(i1 .. ' Device '.. switchDevice.name .. " (" .. switchDevice.id .. ") " .. switchDevice.state , dz.LOG_DEBUG)
    end
    
    dz.log(' -------- ', dz.LOG_DEBUG)
    
    for i1, l1 in ipairs(SWITCHS) do
        switchDevice = dz.devices(l1)
        
        if switchDevice.switchType == 'Dimmer' then
            if the_device.active then
                switchDevice.switchOn().afterSec(i1)
                switchDevice.dimTo(100).afterSec(i1)
                dz.log(i1 .. ' Device '.. switchDevice.name .. " (" .. switchDevice.id .. ") " .. switchDevice.state .. " to 100" , dz.LOG_DEBUG)
            else
                switchDevice.dimTo(0).afterSec(i1)
                switchDevice.switchOff().afterSec(i1)
                dz.log(i1 .. ' Device '.. switchDevice.name .. " (" .. switchDevice.id .. ") " .. switchDevice.state .. " to 0" , dz.LOG_DEBUG)
            end
        else
            if the_device.active then
                dz.log(i1 .. ' Device '.. switchDevice.name .. " (" .. switchDevice.id .. ") " .. switchDevice.state .. " to ON" , dz.LOG_DEBUG)
                switchDevice.switchOn().afterSec(i1)
            else
                dz.log(i1 .. ' Device '.. switchDevice.name .. " (" .. switchDevice.id .. ") " .. switchDevice.state .. " to OFF" , dz.LOG_DEBUG)
                switchDevice.switchOff().afterSec(i1)
            end
        end
        
    end
    
end
}
The log
Spoiler: show
2020-01-01 23:58:26.752 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchToggle: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-01 23:58:26.752 Status: dzVents: Info: SwitchToggle: *** start device
2020-01-01 23:58:26.754 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-01 23:58:26.754 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off
2020-01-01 23:58:26.755 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-01 23:58:26.755 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: --------
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to ON
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-01 23:58:26.756 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 1 SECONDS
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to ON
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 2 SECONDS
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off to ON
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-01 23:58:26.757 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 3 SECONDS
2020-01-01 23:58:26.757 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchToggle
2020-01-01 23:58:26.759 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-01 23:58:37.749 Status: User: xxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-01 23:58:37.901 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchToggle: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-01 23:58:37.901 Status: dzVents: Info: SwitchToggle: *** start device
2020-01-01 23:58:37.902 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-01 23:58:37.902 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off
2020-01-01 23:58:37.903 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-01 23:58:37.904 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) On
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: --------
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to OFF
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 1 SECONDS
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to OFF
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 2 SECONDS
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) On to OFF
2020-01-01 23:58:37.905 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-01 23:58:37.906 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 3 SECONDS
2020-01-01 23:58:37.906 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchToggle
2020-01-01 23:58:37.908 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
I did a Blockly to check and it works fine.

Where am I wrong ?

Version: 4.11563
Build Hash: d5e8a14bf
Compile Date: 2019-12-09 20:21:24
dzVents Version: 2.5.2
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 0:05 I have several z-wave switched managed by a script, but 2 of them don't change their state when updated by a dzVents script.
The level of dimmers do not change when they are switched off using the switchOff method. dimTo(0) is seen by domoticz as an implicit switchOff command so they then also retain the old level. You have to use a kind of trick to accomplish what you want.

Code: Select all

local SWITCHES = {1010, 1003, 205 } -- 1010 and 1003, z-wave, 205 dummy to check
local TRIGGER =202 -- dummy to trigger the script
local DOMAIN = 'SwitchToggle' 

return 
{
    active = true,

	on = 
    {
        devices = 
        {
            TRIGGER
        },
    },

    logging = 
    {
        level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
        marker = DOMAIN
	},
    
	execute = function(dz, item)

        for key, id in ipairs(SWITCHES) do
            local switchDevice = dz.devices(id)
            
            dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. "); type " .. switchDevice.switchType .. '; state: '.. switchDevice.state , dz.LOG_DEBUG)
            
            if switchDevice.switchType == 'Dimmer' then
                if item.active then
                    switchDevice.dimTo(100).afterSec(key) -- implicit On
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 100" , dz.LOG_DEBUG)
                else
                    switchDevice.dimTo(1).afterSec(key) -- 
                    switchDevice.dimTo(0).afterSec(key + 0.1) -- implicit Off
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 0 (or is it 1 ? )" , dz.LOG_DEBUG)
                end
            else
                if item.active then
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to ON" , dz.LOG_DEBUG)
                    switchDevice.switchOn().afterSec(key)
                else
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to OFF" , dz.LOG_DEBUG)
                    switchDevice.switchOff().afterSec(key)
                end
            end
        end
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

waaren wrote: Thursday 02 January 2020 3:22 The level of dimmers do not change when they are switched off using the switchOff method. dimTo(0) is seen by domoticz as an implicit switchOff command so they then also retain the old level. You have to use a kind of trick to accomplish what you want.
Thanks for the trick regarding the Dimmer, I'll need it for other purpose.
My script has a part with Dimmer because I tried also to change the Switch to a Dimmer in order to try to solve the issue. But a the case of the log the devices are not Dimmer but simple On/Off, see the log with your script
Spoiler: show
2020-01-02 09:30:44.424 Status: User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02 09:30:44.526 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchDim: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 09:30:44.528 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 09:30:44.528 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010); type On/Off; state: Off
2020-01-02 09:30:44.528 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to ON
2020-01-02 09:30:44.528 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 09:30:44.528 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 1 SECONDS
2020-01-02 09:30:44.529 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 09:30:44.530 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003); type On/Off; state: Off
2020-01-02 09:30:44.530 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to ON
2020-01-02 09:30:44.530 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 09:30:44.530 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 2 SECONDS
2020-01-02 09:30:44.531 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 09:30:44.531 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205); type On/Off; state: Off
2020-01-02 09:30:44.531 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off to ON
2020-01-02 09:30:44.531 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 09:30:44.531 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 3 SECONDS
2020-01-02 09:30:44.532 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchDim

...

2020-01-02 09:31:12.957 Status: User: xxxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-02 09:31:13.059 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchDim: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 09:31:13.060 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 09:31:13.060 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010); type On/Off; state: Off
2020-01-02 09:31:13.061 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to OFF
2020-01-02 09:31:13.061 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 09:31:13.061 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 1 SECONDS
2020-01-02 09:31:13.062 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 09:31:13.062 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003); type On/Off; state: Off
2020-01-02 09:31:13.062 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to OFF
2020-01-02 09:31:13.063 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 09:31:13.063 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 2 SECONDS
2020-01-02 09:31:13.064 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 09:31:13.064 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205); type On/Off; state: On
2020-01-02 09:31:13.064 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) On to OFF
2020-01-02 09:31:13.064 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 09:31:13.065 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 3 SECONDS
2020-01-02 09:31:13.065 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchDim
Same issue, the switch doesn't change :-(
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 9:34 But at the case of the log the devices are not Dimmer but simple On/Off, see the log with your script
Same issue, the switch doesn't change :-(
dzVents does send the expected commands to domoticz and for native devices this always work. What hardware are these devices connected to ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

What hardware are these devices connected to ?
Z-Wave Plus Z-Stick Gen5 Yes OpenZWave USB
Version: 1.6-943-gacce060e-dirty

they are Qubino (Goap) ZMNHSDx Din Dimmer+

104 (0x68) Studio VMC SN: 18352A1DR04E PN: ZMNHSD1 H1S3P3
103 (0x67) Parking SN: 18347A1DR018 PN: ZMNHSD1 H1S3P3
034 (0x22) Couloir Qubino (Goap) ZMNHSDx Din Dimmer+
011 (0x0b) Terrasse Table Qubino (Goap) ZMNHSDx Din Dimmer+

011 and 104 are ok
103 and 034 are ko

103 and 104 has the same device hw version and included with the same version of domoticz
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 11:59 011 and 104 are ok
103 and 034 are ko
:? Don't understand what could cause this yet.
I added a couple of extra attributes to the logline. Can you please try and see what the loglines show ?

Code: Select all

local SWITCHES = {1010, 1003, 205 } -- 1010 and 1003, z-wave, 205 dummy to check
local TRIGGER =202 -- dummy to trigger the script
local DOMAIN = 'SwitchToggle' 

return 
{
    active = true,

	on = 
    {
        devices = 
        {
            TRIGGER
        },
    },

    logging = 
    {
        level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
        marker = DOMAIN
	},
    
	execute = function(dz, item)

        for key, id in ipairs(SWITCHES) do
            local switchDevice = dz.devices(id)
            
            dz.log(key .. ' Device '.. switchDevice.name .. ' (' .. id .. ')' ..
					'\ntype  : ' .. switchDevice.switchType .. 
					'\nstate : ' .. switchDevice.state .. 
					'\nsValue: ' .. switchDevice.sValue ..
					'\nnValue: ' .. switchDevice.nValue, dz.LOG_DEBUG)
            
            if switchDevice.switchType == 'Dimmer' then
                if item.active then			
                    switchDevice.dimTo(100).afterSec(key) -- implicit On
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 100" , dz.LOG_DEBUG)
                else
                    switchDevice.dimTo(1).afterSec(key) -- 
                    switchDevice.dimTo(0).afterSec(key + 0.1) -- implicit Off
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 0 (or is it 1 ? )" , dz.LOG_DEBUG)
                end
            else
                if item.active then
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to ON" , dz.LOG_DEBUG)
                    switchDevice.switchOn().afterSec(key)
                else
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to OFF" , dz.LOG_DEBUG)
                    switchDevice.switchOff().afterSec(key)
                end
            end
        end
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

the log
Spoiler: show
2020-01-02 13:50:16.187 Status: User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02 13:50:16.292 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 13:50:16.293 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 13:50:16.293 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010)
2020-01-02 13:50:16.293 type : On/Off
2020-01-02 13:50:16.293 state : Off
2020-01-02 13:50:16.293 sValue: Off
2020-01-02 13:50:16.293 nValue: 0
2020-01-02 13:50:16.293 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to ON
2020-01-02 13:50:16.293 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 13:50:16.293 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 1 SECONDS
2020-01-02 13:50:16.295 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 13:50:16.295 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003)
2020-01-02 13:50:16.295 type : On/Off
2020-01-02 13:50:16.295 state : Off
2020-01-02 13:50:16.295 sValue: Off
2020-01-02 13:50:16.295 nValue: 0
2020-01-02 13:50:16.295 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to ON
2020-01-02 13:50:16.295 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 13:50:16.295 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 2 SECONDS
2020-01-02 13:50:16.296 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 13:50:16.296 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205)
2020-01-02 13:50:16.296 type : On/Off
2020-01-02 13:50:16.296 state : Off
2020-01-02 13:50:16.296 sValue: Off
2020-01-02 13:50:16.296 nValue: 0
2020-01-02 13:50:16.296 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off to ON
2020-01-02 13:50:16.296 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 13:50:16.296 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 3 SECONDS
2020-01-02 13:50:16.296 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02 13:50:16.299 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

during this time I do this

Code: Select all

-- SwitchToggleUrl

local SWITCHS = {1010, 1003, 205}


local TRIGGER = 202 -- to trigger the script
local DOMAIN = 'ToggleUrl' 

return {
    active = true,
    logging = {
	level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
	marker = DOMAIN
	},
	on = {
        devices = {TRIGGER},
        },

	execute = function(dz, the_device, triggerInfo)
	
    local url = " "
    local cmd = " " 
    if the_device.active then
        cmd='On'   
    else
        cmd='Off'   
    end
    for key, dev_id in ipairs(SWITCHS) do
        dz.log('dev_id= ' .. dev_id .. 'cmd=' .. cmd, dz.LOG_DEBUG)
        url = 'http://127.0.0.1:8080/json.htm?type=command&param=switchlight&idx=' .. dev_id .. '&switchcmd=' .. cmd
        dz.log('url= ' .. url , dz.LOG_DEBUG)
        dz.openURL(url)
    end
    
end
}
and it works
Spoiler: show
2020-01-02 13:53:51.187 Status: User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02 13:53:51.304 Status: dzVents: Info: ToggleUrl: ------ Start internal script: SwitchToggleUrl: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: dev_id= 1010cmd=On
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: dev_id= 1003cmd=On
2020-01-02 13:53:51.304 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: dev_id= 205cmd=On
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... itchcmd=On
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:53:51.305 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:53:51.305 Status: dzVents: Info: ToggleUrl: ------ Finished SwitchToggleUrl
2020-01-02 13:53:51.307 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02 13:53:51.333 Status: User: Admin initiated a switch command (1010/Parking/On)
2020-01-02 13:53:51.352 Status: User: Admin initiated a switch command (1003/Couloir/On)
2020-01-02 13:53:51.369 Status: User: Admin initiated a switch command (205/test inter 205/On)
2020-01-02 13:53:59.385 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 54 (0x36)
2020-01-02 13:53:59.516 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02 13:54:04.855 Status: User: xxxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-02 13:54:05.027 Status: dzVents: Info: ToggleUrl: ------ Start internal script: SwitchToggleUrl: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 13:54:05.027 Status: dzVents: Debug: ToggleUrl: dev_id= 1010cmd=Off
2020-01-02 13:54:05.027 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.027 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.027 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:54:05.027 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: dev_id= 1003cmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: dev_id= 205cmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: url= http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Off
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: method = GET
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: post data = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: headers = nil
2020-01-02 13:54:05.028 Status: dzVents: Debug: ToggleUrl: OpenURL: callback = nil
2020-01-02 13:54:05.028 Status: dzVents: Info: ToggleUrl: ------ Finished SwitchToggleUrl
2020-01-02 13:54:05.030 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02 13:54:05.038 Status: User: Admin initiated a switch command (1010/Parking/Off)
2020-01-02 13:54:05.080 Status: User: Admin initiated a switch command (1003/Couloir/Off)
2020-01-02 13:54:05.134 Status: User: Admin initiated a switch command (205/test inter 205/Off)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 13:51 the log
Thx!
Can you also share the log of a full cycle ? I want to see the results after the switch commands have been send to domoticz and processed. If that does show that the devices are not switched can you also try this without the afterSec().
The url's you send in your next post are without delay so maybe that is why they behave different.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

a full cycle
Spoiler: show
2020-01-02 16:12:02.844 Status: User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02 16:12:02.947 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 16:12:02.948 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 16:12:02.949 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010)
2020-01-02 16:12:02.949 type : On/Off
2020-01-02 16:12:02.949 state : Off
2020-01-02 16:12:02.949 sValue: Off
2020-01-02 16:12:02.949 nValue: 0
2020-01-02 16:12:02.949 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to ON
2020-01-02 16:12:02.949 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:12:02.949 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 1 SECONDS
2020-01-02 16:12:02.950 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 16:12:02.950 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003)
2020-01-02 16:12:02.950 type : On/Off
2020-01-02 16:12:02.950 state : Off
2020-01-02 16:12:02.950 sValue: Off
2020-01-02 16:12:02.950 nValue: 0
2020-01-02 16:12:02.950 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to ON
2020-01-02 16:12:02.950 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:12:02.951 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 2 SECONDS
2020-01-02 16:12:02.952 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 16:12:02.952 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205)
2020-01-02 16:12:02.952 type : On/Off
2020-01-02 16:12:02.952 state : Off
2020-01-02 16:12:02.952 sValue: Off
2020-01-02 16:12:02.952 nValue: 0
2020-01-02 16:12:02.952 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off to ON
2020-01-02 16:12:02.952 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:12:02.952 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On AFTER 3 SECONDS
2020-01-02 16:12:02.952 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02 16:12:02.955 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02 16:12:17.450 Status: User: xxxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-02 16:12:17.636 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 16:12:17.637 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 16:12:17.637 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010)
2020-01-02 16:12:17.637 type : On/Off
2020-01-02 16:12:17.637 state : Off
2020-01-02 16:12:17.637 sValue: Off
2020-01-02 16:12:17.637 nValue: 0
2020-01-02 16:12:17.637 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to OFF
2020-01-02 16:12:17.637 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:12:17.638 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 1 SECONDS
2020-01-02 16:12:17.639 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 16:12:17.639 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003)
2020-01-02 16:12:17.639 type : On/Off
2020-01-02 16:12:17.639 state : Off
2020-01-02 16:12:17.639 sValue: Off
2020-01-02 16:12:17.639 nValue: 0
2020-01-02 16:12:17.639 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to OFF
2020-01-02 16:12:17.639 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:12:17.639 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 2 SECONDS
2020-01-02 16:12:17.640 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 16:12:17.640 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205)
2020-01-02 16:12:17.640 type : On/Off
2020-01-02 16:12:17.640 state : On
2020-01-02 16:12:17.640 sValue: On
2020-01-02 16:12:17.640 nValue: 1
2020-01-02 16:12:17.640 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) On to OFF
2020-01-02 16:12:17.641 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:12:17.641 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off AFTER 3 SECONDS
2020-01-02 16:12:17.641 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02 16:12:17.643 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

a full cycle without aftersec
Spoiler: show
2020-01-02 16:15:03.615 Status: User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02 16:15:03.787 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 16:15:03.788 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 16:15:03.788 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010)
2020-01-02 16:15:03.788 type : On/Off
2020-01-02 16:15:03.788 state : Off
2020-01-02 16:15:03.788 sValue: Off
2020-01-02 16:15:03.788 nValue: 0
2020-01-02 16:15:03.789 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to ON
2020-01-02 16:15:03.789 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:15:03.790 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 16:15:03.790 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003)
2020-01-02 16:15:03.790 type : On/Off
2020-01-02 16:15:03.790 state : Off
2020-01-02 16:15:03.790 sValue: Off
2020-01-02 16:15:03.790 nValue: 0
2020-01-02 16:15:03.790 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to ON
2020-01-02 16:15:03.790 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:15:03.792 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 16:15:03.792 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205)
2020-01-02 16:15:03.792 type : On/Off
2020-01-02 16:15:03.792 state : Off
2020-01-02 16:15:03.792 sValue: Off
2020-01-02 16:15:03.792 nValue: 0
2020-01-02 16:15:03.792 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) Off to ON
2020-01-02 16:15:03.792 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02 16:15:03.792 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02 16:15:03.794 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02 16:15:10.893 Status: User: xxxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-02 16:15:11.063 Status: dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: "test detecteur 202 (Dummy1)", Index: 202
2020-01-02 16:15:11.065 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02 16:15:11.065 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010)
2020-01-02 16:15:11.065 type : On/Off
2020-01-02 16:15:11.065 state : Off
2020-01-02 16:15:11.065 sValue: Off
2020-01-02 16:15:11.065 nValue: 0
2020-01-02 16:15:11.065 Status: dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to OFF
2020-01-02 16:15:11.065 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:15:11.066 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for Couloir: Switch device adapter
2020-01-02 16:15:11.067 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003)
2020-01-02 16:15:11.067 type : On/Off
2020-01-02 16:15:11.067 state : Off
2020-01-02 16:15:11.067 sValue: Off
2020-01-02 16:15:11.067 nValue: 0
2020-01-02 16:15:11.067 Status: dzVents: Debug: SwitchToggle: 2 Device Couloir (1003) Off to OFF
2020-01-02 16:15:11.067 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:15:11.068 Status: dzVents: Debug: SwitchToggle: Processing device-adapter for test inter 205: Switch device adapter
2020-01-02 16:15:11.068 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205)
2020-01-02 16:15:11.068 type : On/Off
2020-01-02 16:15:11.068 state : On
2020-01-02 16:15:11.068 sValue: On
2020-01-02 16:15:11.068 nValue: 1
2020-01-02 16:15:11.068 Status: dzVents: Debug: SwitchToggle: 3 Device test inter 205 (205) On to OFF
2020-01-02 16:15:11.068 Status: dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02 16:15:11.068 Status: dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02 16:15:11.071 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 16:16 a full cycle without aftersec
I am completely puzzled. Domoticz seems to not send the commands through to the physical hardware but I have no idea why.
Can you please do a device.dump() of one of working devices and one of the failing devices ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

the dump
Spoiler: show

Code: Select all

Date,Time,Level,Host Name,Category,Program,Messages,
2020-01-02,18:34:02,Information,hestia,auth,sshd,Connection closed by 192.168.1.210 port 44503 [preauth]
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > active: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isDevice: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > deviceId: 00006801
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > playFavorites()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > switchOff()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateSetPoint()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > bState: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateDistance()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > cancelQueuedCommands()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > hardwareType: OpenZWave USB
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setRGB()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updatePressure()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > id: 997
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateRadiation()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > icon: lightbulb
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateTempHum()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateTempHumBaro()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateText()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateAlertSensor()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateCounter()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > deviceType: Light/Switch
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setState()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiPlay()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > volumeUp()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setDiscoMode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiPlayPlaylist()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiExecuteAddOn()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateLux()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setHotWater()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #0111: Switch device adapter
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > _adapters:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isVariable: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiPause()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > lastLevel: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setColor()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > quietOff()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > level: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateWeight()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateGas()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateAirQuality()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > baseType: device
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > close()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > _state: On
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > open()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isTimer: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setLevel()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > incrementCounter()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > update()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > hardwareID: 10
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateTempBaro()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setMode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011rawTime: 13:07:47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011month: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011secondsAgo: 19539
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeCivilTwilightStart()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011min: 7
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011sec: 47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtDayTime()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011milliseconds: 0
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011getISO()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterSunset()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsOnDate()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011msAgo: 19539310
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsInWeek()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011raw: 2020-01-02 13:07:47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterCivilTwilightStart()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011rawDateTime: 2020-01-02 13:07:47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeSunset()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeSunrise()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011isToday: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterSunrise()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011day: 2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011minutesAgo: 325
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011milliSeconds: 0
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeCivilTwilightEnd()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsOnDay()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilDayTime()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011millisecondsAgo: 19539310
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011secondsSinceMidnight: 47267
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011hour: 13
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtNight()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011yday: 2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesHourSpecification()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesTimeRange()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011dDate: 1577966867
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesTime()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011isdst: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011compare()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterCivilTwilightEnd()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011dayAbbrOfWeek: thu
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesBetweenRange()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011log()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011toBase64()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_INFO: 3
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011numDecimals()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011leadingZeros()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011osExecute()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011centerPad()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011fromBase64()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011sceneExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_DEBUG: 4
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011deviceExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011dumpTable()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011cameraExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011urlDecode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011toXML()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011toJSON()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011rightPad()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hsbToRGB()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011print()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_MODULE_EXEC_INFO: 2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011fromXML()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011variableExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_ERROR: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011inTable()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_FORCE: 0.5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011toCelsius()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011round()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011rgbToHSB()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011urlEncode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011fileExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011groupExists()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011stringSplit()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011DZVERSION: 2.5.2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011leftPad()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011setLogMarker()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011fromJSON()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011utils:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011year: 2020
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011min: 33
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011yday: 2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011wday: 5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011day: 2
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011sec: 26
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011month: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011isdst: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hour: 18
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011current:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011week: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtSunset()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesMinuteSpecification()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtSunrise()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011matchesRule()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011rawDate: 2020-01-02
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011daysAgo: 0
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011hoursAgo: 5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011wday: 5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011year: 2020
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011minutes: 7
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilNightTime()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilTwilightEnd()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011seconds: 47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilTwilightStart()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011isUTC: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > lastUpdate:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > toggleSwitch()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > protectionOn()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setKelvin()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > protectionOff()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > disarm()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > signalLevel: 12
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateVoltage()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > switchSelector()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateWaterflow()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > pause()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateSoundLevel()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isScene: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > switchType: On/Off
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isGroup: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > play()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > protected: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > reset()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > hardwareName: Z-Wave Plus Z-Stick Gen5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setIcon()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > rename()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isHTTPResponse: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setWhiteMode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > armHome()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateMode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiStop()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateSoilMoisture()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > usedByCamera: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > increaseBrightness()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateTemperature()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > switchOn()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updatePercentage()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setColorBrightness()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #0111: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > rawData:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > nValue: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > state: On
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > sValue: On
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateP1()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateHumidity()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > hardwareTypeValue: 21
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > deviceSubType: Switch
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > changed: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateVisibility()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > isSecurity: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setVolume()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > maxDimLevel: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateBarometer()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiSetVolume()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > hardwareId: 10
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > decreaseBrightness()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setDescription()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011switchType: On/Off
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011subType: Switch
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011protected: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#0111: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011rawData:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011changed: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011batteryLevel: 255
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011signalLevel: 12
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011baseType: device
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011id: 997
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011description:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011lastLevel: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011switchTypeValue: 0
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011deviceID: 00006801
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareName: Z-Wave Plus Z-Stick Gen5
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011unit: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011protected: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011icon: lightbulb
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011usedByCamera: false
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareID: 10
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011levelVal: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareType: OpenZWave USB
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011_state: On
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011maxDimLevel: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareTypeValue: 21
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011#011_nValue: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011data:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011timedOut: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011deviceType: Light/Switch
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011name: VMC Studio
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > #011lastUpdate: 2020-01-02 13:07:47
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > _data:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateYouless()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateRain()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateWetness()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > volumeDown()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > onkyoEISCPCommand()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > unit: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > timedOut: true
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setNightMode()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > levelVal: 100
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setHue()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setHex()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > armAway()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > activate()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > dimTo()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiPlayFavorites()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > idx: 997
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > startPlaylist()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateWind()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > stop()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > description:
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > setValues()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > dump()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > switchTypeValue: 0
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateUV()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > kodiSwitchOff()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > quietOn()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > name: VMC Studio
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateElectricity()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > updateCustomSensor()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > _nValue: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: > getColor()
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: Constructed timed-command: On
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: 1 Device VMC Studio (997) On to ON
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: 1 Device VMC Studio (997)#012type  : On/Off#012state : On#012sValue: On#012nValue: 1
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: Processing device-adapter for VMC Studio: Switch device adapter
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,"dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: ""test detecteur 202 (Dummy1)"", Index: 202"
2020-01-02,18:33:26,Notice,hestia,local6,domoticz,User: xxxxx initiated a switch command (202/test detecteur 202/On)
2020-01-02,18:33:16,Notice,hestia,local6,domoticz,dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/SwitchWaaren.lua
…
2020-01-02,18:33:16,Notice,hestia,local6,domoticz,EventSystem: reset all events...
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: Info: SwitchToggle: ------ Finished SwitchWaaren
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateP1()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updatePressure()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setIcon()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateDistance()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiPlayPlaylist()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > sValue: Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > signalLevel: 12
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateWeight()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateSetPoint()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > dump()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > usedByCamera: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateTempBaro()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > baseType: device
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > hardwareName: Z-Wave Plus Z-Stick Gen5
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateBarometer()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > switchTypeValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isGroup: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > description:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateElectricity()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateText()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateRadiation()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isVariable: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > maxDimLevel: 100
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateYouless()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updatePercentage()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setColor()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setVolume()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateAlertSensor()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > name: Parking
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > lastLevel: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > protected: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateLux()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > quietOn()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #0111: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > rawData:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > activate()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > quietOff()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setValues()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateWind()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > protectionOff()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateSoundLevel()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setMode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setHex()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > hardwareType: OpenZWave USB
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > dimTo()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > stop()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setLevel()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > switchSelector()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > volumeUp()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > startPlaylist()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > hardwareId: 10
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setNightMode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setState()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateTemperature()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setWhiteMode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > timedOut: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > idx: 1010
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > disarm()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setKelvin()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > close()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > switchOn()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isTimer: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setDiscoMode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > playFavorites()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isScene: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > level: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > changed: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateRain()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiPause()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > open()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateTempHumBaro()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > reset()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateGas()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiPlay()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiPlayFavorites()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > active: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > state: Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > nValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setHue()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateVoltage()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiStop()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > hardwareID: 10
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > icon: lightbulb
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > switchOff()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isSecurity: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > deviceType: Light/Switch
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateCounter()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateSoilMoisture()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > armAway()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #0111: Switch device adapter
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > _adapters:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > decreaseBrightness()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > _nValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > rename()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiSwitchOff()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > getColor()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > deviceId: 00006701
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > levelVal: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateTempHum()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > update()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setRGB()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateWetness()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > bState: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setDescription()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011timedOut: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#0111: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011rawData:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011switchTypeValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011subType: Switch
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011changed: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011deviceID: 00006701
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011signalLevel: 12
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011deviceType: Light/Switch
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011id: 1010
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011batteryLevel: 255
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011baseType: device
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011lastLevel: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011name: Parking
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011description:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011protected: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011unit: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011icon: lightbulb
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011_state: Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011levelVal: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011protected: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011usedByCamera: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011maxDimLevel: 100
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011_nValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareTypeValue: 21
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareName: Z-Wave Plus Z-Stick Gen5
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareType: OpenZWave USB
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hardwareID: 10
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011data:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011lastUpdate: 2020-01-02 17:12:57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011switchType: On/Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > _data:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > protectionOn()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > onkyoEISCPCommand()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > hardwareTypeValue: 21
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateCustomSensor()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > increaseBrightness()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > switchType: On/Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > volumeDown()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiExecuteAddOn()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isHTTPResponse: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > deviceSubType: Switch
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > pause()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateVisibility()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > play()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setColorBrightness()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > cancelQueuedCommands()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > _state: Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > setHotWater()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateWaterflow()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > incrementCounter()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateHumidity()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > unit: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateMode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > armHome()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateAirQuality()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > kodiSetVolume()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > isDevice: true
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > updateUV()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011daysAgo: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011sec: 57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011hour: 17
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtDayTime()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011rawDateTime: 2020-01-02 17:12:57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterSunset()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011msAgo: 4684562
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011rawTime: 17:12:57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011secondsAgo: 4684
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011rawDate: 2020-01-02
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011isdst: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011year: 2020
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011wday: 5
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011min: 31
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011sec: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hour: 18
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011yday: 2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011day: 2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011month: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011isdst: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011year: 2020
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011wday: 5
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011current:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011dayAbbrOfWeek: thu
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011hoursAgo: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011milliseconds: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011getISO()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011yday: 2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsInWeek()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesTimeRange()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterCivilTwilightStart()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsOnDate()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011month: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeCivilTwilightEnd()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterCivilTwilightEnd()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtSunrise()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtNight()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAfterSunrise()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtSunset()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011isToday: true
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011minutesAgo: 78
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011dDate: 1577981577
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011matchesRule()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011secondsSinceMidnight: 61977
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011compare()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011day: 2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesHourSpecification()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011raw: 2020-01-02 17:12:57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesTime()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011week: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeCivilTwilightStart()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesBetweenRange()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011millisecondsAgo: 4684562
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeSunrise()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsBeforeSunset()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011min: 12
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsOnDay()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011DZVERSION: 2.5.2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011urlDecode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011setLogMarker()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011osExecute()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011cameraExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011fromXML()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011toJSON()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_MODULE_EXEC_INFO: 2
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_INFO: 3
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011sceneExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011toBase64()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011deviceExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011dumpTable()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_ERROR: 1
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011print()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011leftPad()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011inTable()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011fromBase64()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011rgbToHSB()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011hsbToRGB()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_DEBUG: 4
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011round()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011toXML()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011rightPad()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011centerPad()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011log()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011fileExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011variableExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011groupExists()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011urlEncode()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011numDecimals()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011fromJSON()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011stringSplit()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011toCelsius()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011LOG_FORCE: 0.5
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011#011leadingZeros()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011utils:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011seconds: 57
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilDayTime()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleMatchesMinuteSpecification()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011minutes: 12
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilTwilightStart()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilTwilightEnd()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011isUTC: false
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011ruleIsAtCivilNightTime()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > #011milliSeconds: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > lastUpdate:
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > toggleSwitch()
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: > id: 1010
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: Constructed timed-command: Off
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: 1 Device Parking (1010) Off to OFF
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: 1 Device Parking (1010)#012type  : On/Off#012state : Off#012sValue: Off#012nValue: 0
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,dzVents: Debug: SwitchToggle: Processing device-adapter for Parking: Switch device adapter
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,"dzVents: Info: SwitchToggle: ------ Start internal script: SwitchWaaren: Device: ""test detecteur 202 (Dummy1)"", Index: 202"
2020-01-02,18:31:01,Notice,hestia,local6,domoticz,User: xxxxx initiated a switch command (202/test detecteur 202/Off)
2020-01-02,18:30:14,Notice,hestia,local6,domoticz,dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/SwitchWaaren.lua
I get them from my NAS via syslog, I hope they are in the right order, I have always a question about this
The first one 18:31 is the bad one
The second one 18:33 is the good one

The script modified

Code: Select all

local SWITCHES = {997} -- 1010 and 1003, z-wave, 205 dummy to check
local TRIGGER =202 -- dummy to trigger the script
local DOMAIN = 'SwitchToggle' 

return 
{
    active = true,

	on = 
    {
        devices = 
        {
            TRIGGER
        },
    },

    logging = 
    {
        level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
        marker = DOMAIN
	},
    
	execute = function(dz, item)

        for key, id in ipairs(SWITCHES) do
            local switchDevice = dz.devices(id)
            
            dz.log(key .. ' Device '.. switchDevice.name .. ' (' .. id .. ')' ..
					'\ntype  : ' .. switchDevice.switchType .. 
					'\nstate : ' .. switchDevice.state .. 
					'\nsValue: ' .. switchDevice.sValue ..
					'\nnValue: ' .. switchDevice.nValue, dz.LOG_DEBUG)
            
            if switchDevice.switchType == 'Dimmer' then
                if item.active then			
                    switchDevice.dimTo(100).afterSec(key) -- implicit On
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 100" , dz.LOG_DEBUG)
                else
                    switchDevice.dimTo(1) --.afterSec(key) -- 
                    switchDevice.dimTo(0) -- .afterSec(key + 0.1) -- implicit Off
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 0 (or is it 1 ? )" , dz.LOG_DEBUG)
                end
            else
                if item.active then
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to ON" , dz.LOG_DEBUG)
                    switchDevice.switchOn() -- .afterSec(key)
                else
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to OFF" , dz.LOG_DEBUG)
                    switchDevice.switchOff() -- .afterSec(key)
                end
            end
            switchDevice.dump()
        end
    end
}
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Thursday 02 January 2020 18:46 the dump
Thx, I don't see anything unexpected in these dumps. For dzVents these devices are completely equivalent.
Sorry but I don't know what to investigate further to get closer understanding what happens, let alone to solve this issue.

I don't expect anything from it but you might consider updating to the latest Beta.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

Thanks for your help.
I'll upgrade to the last beta.
I could have the json path as a workaround but I also need the .silent() feature in my script ; do you known if there is something like that with json?
I've tried to use the "Sub/Slave Devices" with a dummy device, but it doesn't work neither :-( So there is something wrong around those 2 devices.
If the upgrade doesn't work, I'll try to reset one of them...
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

Follow up...
upgraded to last beta : no change
removed the devices, deleted ozwcache, restarted domoticz and refreshed the nodes => new idx : no change

the good news is that now my device is well refresh in domoticz with I use the real switch ;-)

As a workaround, I'll use a json call, but is there a way to retrieve in dzVents the user who called the json in order emulate a .silent()
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Friday 03 January 2020 13:16 As a workaround, I'll use a json call, but is there a way to retrieve in dzVents the user who called the json in order emulate a .silent()
Don't know if a silent (NOTRIGGER) is available using the json.
Can you try item.update(0,0).silent() to switch device Off anditem.update(1,0).silent() to switch device on ? Internally that is just handled a little bit different than the switchOn(), switchOff() commands.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

I'm not sure of the syntax, and this doesn't work :-(
OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... ,0).silent()

I've also removed the qubino DIN Dimmer from the network, reset it, and included it again, so new idx: no change!
Nota: the idx are > 1000... I don't want to refresh a DIN Dimmer that works to test if it is going to work with idx > 1000!

Regarding the workaround I was more thinking about that when I use json the user is admin, with the GUI it is the user connected (not admin for me) and when with a physical switch I don't see nothing in the log but it could different. If I could catch the user I could check the origin of the change...
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by waaren »

hestia wrote: Friday 03 January 2020 18:13 I'm not sure of the syntax, and this doesn't work :-(
OpenURL: url = http://127.0.0.1:8080/json.htm?type=com ... ,0).silent()
syntax is like this.

Code: Select all

local SWITCHES = {997, 1010, 1003 } , z-wave, 205 dummy to check
local TRIGGER =202 -- dummy to trigger the script
local DOMAIN = 'SwitchToggle' 

return 
{
    active = true,

	on = 
    {
        devices = 
        {
            TRIGGER
        },
    },

    logging = 
    {
        level = domoticz.LOG_DEBUG, -- Select one of LOG_DEBUG, LOG_INFO, LOG_ERROR, LOG_FORCE to override system log level
        marker = DOMAIN
	},
    
	execute = function(dz, item)

        for key, id in ipairs(SWITCHES) do
            local switchDevice = dz.devices(id)
            
            dz.log(key .. ' Device '.. switchDevice.name .. ' (' .. id .. ')' ..
					'\ntype  : ' .. switchDevice.switchType .. 
					'\nstate : ' .. switchDevice.state .. 
					'\nsValue: ' .. switchDevice.sValue ..
					'\nnValue: ' .. switchDevice.nValue, dz.LOG_DEBUG)
            
            if switchDevice.switchType == 'Dimmer' then
                if item.active then			
                    switchDevice.dimTo(100).afterSec(key) -- implicit On
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 100" , dz.LOG_DEBUG)
                else
                    switchDevice.dimTo(1) --.afterSec(key) -- 
                    switchDevice.dimTo(0) -- .afterSec(key + 0.1) -- implicit Off
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to 0 (or is it 1 ? )" , dz.LOG_DEBUG)
                end
            else
                if item.active then
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to ON" , dz.LOG_DEBUG)
                    switchDevice.update(1,0).silent()  -- .afterSec(key)
                else
                    dz.log(key .. ' Device '.. switchDevice.name .. " (" .. id .. ") " .. switchDevice.state .. " to OFF" , dz.LOG_DEBUG)
                    switchDevice.update(0,0).silent() -- .afterSec(key)
                end
            end
            -- switchDevice.dump()
        end
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: Issue to ON / OFF /DIM a switch w dzVents

Post by hestia »

the widget in the GUI is updated (on and off) but nothing on the real light :-(
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest