Subversion Repositories rld.domoticz

Rev

Blame | Last modification | View Log | Download

return {
  on = {
    variables = {
      'myUserVariable',
    },
  },
  logging = {
    level = domoticz.LOG_INFO,
    marker = 'template',
  },
  execute = function(domoticz, variable)
    domoticz.log('Variable ' .. variable.name .. ' was changed', domoticz.LOG_INFO)
    -- code
  end
}