• Professional advice
  • Order before 16.30 uur shipped today
  • Always reachable (+31 73 762 0 762)
  • Monday open late

Fibaro:getGlobalValue command



Action :

Recieves the value of a global variable defined in the variable panel
This function is part of the following group of funcions
These functions differ only in the returned value.


Usage and parameters :


  • variablename : De name of a global variable.


Returned value :

The value that is assigned to a variable.
The value returned is in string format, when you want to convert this to a number, you need to use the 
 tonumber() command.


Programming example :

-- request the value of a variable.
local waarde = fibaro:getGlobalModificationTime('teller');

-- Perform an action when its more than 10 seconds ago the value is changed
if ((os.time()) tonumber(laatstewijziging) >= 10 then -- The requested value can be used to perform another task.
   fibaro:debug('its more than 10 seconds ago');
   fibaro:debug('its less than 10 seconds ago');


See also










Customer Service Phone

mon-fri: 10am-5pm and sat 10am-3pm


Gerstakker 16 5236 VG Empel Netherlands

Google maps