I have a dummy selector
0 Off
10 Level1
20 Level2
30 Level3
and this script
Code: Select all
local SELECTOR_ID = 1039
return {
active = true,
logging = {
level = domoticz.LOG_DEBUG,
},
on = {
devices = {SELECTOR_ID},
},
execute = function(dz, device)
_G.logMarker = _G.moduleLabel
dz.log("SELECTOR " .. device.state .. " " .. tostring(device.level) .. " actif: " .. tostring(device.active), LOG_LEVEL)
end
}When I click Level2, the bulb in the widget switches on and the script is triggered: normal and ok for me
When I click the bulb is the widget, the bulb in the widget switches off but the script is NOT triggered
So I don't know the device is off.
Is this normal?... for me not!
2/
In any case the device is active, even when I select 0 Off
Is this normal? ... for me not!
Version: 4.11605
Build Hash: 7de1f368f
Compile Date: 2020-01-08 23:12:15
dzVents Version: 2.5.5