I write my scripts with the help of AI. The AI suggested using the dz.runIn function. I searched the Domoticz wiki, but I couldn’t find any information about this function. Is this an actual function in dzVents, or is it a non-existent function?
I'am using Domoticz 2025.1 dzVents Version: 3.1.8
--[[
------------------------------------------------------
-- Wait briefly to determine the final click count
------------------------------------------------------
dz.runIn(MAX_CLICK_INTERVAL + 0.5, function(dz2)
local clicks = dz2.data.clickCount
dz2.data.clickCount = 0
AI is perfect at inventing things that don’t exist.
And now it’s saying that it’s a non-existent function.
"But my problem is still there. I need a function so that when I switch on my lamp, it automatically turns off after 60 seconds. If I press the switch three times in 5 seconds, it should stay on continuously."
Domoticz cannot easily detect clicking a switch 3 times in x seconds. But some zigbee/zwave switches have multiple functions like double click, long click etc.
Edit. Could be a typing error here. Please check precise notation on the dzvents wiki (also a better guide than AI for this).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar