" Local kmptt = .... "
Does a Dummy (Watts) have different value names ?
And is it possible to use the IF and THEN statement several times in a row ?
Code: Select all
return
{
on =
{
devices =
{
'Kookplaat_F1_(Rechts)',
'Kookplaat_F3_(Links_Flexzone)',
'Tot_Fornuis'
},
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = 'Regulating Afz_350',
},
execute = function(dz, devices)
local kpmtt = domoticz.devices('Tot_Fornuis') -- Tot_Fornuis is a dummy. But .usage or .actualWatt doesn´t work !
if kpmtt >= 100 and kmptt < 350 then
domoticz.openURL('192.168.2.171/light/0?turn=on&brightness=45')
end
end
}