Library of Functions


Description


Gets the number of the room which contains the specified device.

Usage and Arguments


fibaro:getRoomID(deviceID)

  • deviceID: The identification number of a device

Returned Values


A number which is the number of the room which contains the device (the room ‘Unassigned’ will return a value of 0)

Examples


-- Get the room number which contains device id = 15
local room = fibaro:getRoomID(15);
 
if (room == 0) then
  fibaro:debug('The device is in the \' Unallocated \' room')
else
  fibaro:debug('The device is in room number ' .. room .. '.')
end

Extended Description


fibaro:getSectionID

fibaro:getType