Library of Functions


Description


Gets the type of a device.

Usage and Arguments


fibaro:getType(deviceID)

  • deviceID: The identification number of a device.

Returned Values


A string containing the type of the device.

Examples


-- Get the type of the device with id = 100
local theType = fibaro:getType(100)
 
-- If the device is equal to 'blind'
if (theType == 'blind') then
  fibaro:debug('The device is a blind.')
else
  fibaro:debug('Device type: ' .. type)
end

See Also


fibaro:getRoomID

fibaro:getSectionID