Talk:LUA commands

From Domoticz
Jump to navigation Jump to search

commandArray = {} debug = true a = 'niveau cuve' V = otherdevices_svalues[a] if (devicechanged['niveau cuve']) then

   print (otherdevices_svalues['niveau cuve'])
   if (tonumber(V) > 3) then
       print('cuve HIGH ')

-- commandArray['SendEmail']='niveaucuve#4#[email protected]'

   elseif (tonumber(V) < 1) then
       print('cuve LOW ')

-- commandArray['SendEmail']='niveaucuve#0#[email protected]'

   elseif (tonumber (V) > 3 or tonumber (V) < 1) then

time.sleep(20) retry = 1 os.execute(home/pi/domoticz/scripts/lua/script_device_niveaucuve.lua) print ('probleme') end end

return commandArray