• Professional advice
  • Order before 23.59 uur shipped today (choose Trunkrs)
  • Almost always available (+31 73 762 0 762)
  • Monday open late (odd weeks)

Fibaro:getValue command



Action :

Revcieves the status of a device with a specific ID.
This function is part of the following group of functions: 
These functions only differ in there returned value.


Usage and parameters :

fibaro:getValue(deviceID, variablename)

  • deviceID : ID of the device.
  • variabelename : name of the global variable


Returned value :

A string with the actual status of the device.
De value is returned in tekst-string format, when you want to convert it to a number please use the tonumber() command.


Programming example :

-- Reguest of the status of a dimmer with ID11
local lightvalue = fibaro:getValue(11, 'brightness');

-- Now you can do different things with the value
if ( tonumber(lightvalue) > 50 then


See also


Customer Service Phone

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


Gerstakker 16 5236 VG Empel Netherlands

Google maps