May be my question is stupid but I don't find the solution.
How to make the same thing in dzVents than in LUA :
Code: Select all
local capteurGlobal = 'Consommation Electrique'
commandArray = {}
if (devicechanged[capteurGlobal]) then
-- Do something
end
return commandArray
I try this, without any result :
Code: Select all
return {
active = true,
on = {
devices = {
'Compteur Electrique'
}
},
execute = function(domoticz, compteur)
if (compteur.changed) then
domoticz.log('------------------ script newtest -------------------------------------')
domoticz.log('Reception données OWL')
domoticz.log('------------------ script newtest -------------------------------------')
end
end
}