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

Fibaro:getRoomId command

There are no products matching the selection.

fibaro:getRoomId()

 

Action :

Recieves a number representing the roomnumber where a device is placed. 

 

Usage and parameters :

fibaro:getRoomID(deviceID)

  • DeviceID: the unique of a device.

 

Teruggekregen waarde :

A number representing the roomnumber. Room 'not assigned' gets roomnumber 0.

 

Programming example :

-- Ask the roomnumber of ID12
local roomnumber = fibaro:getRoomID(12);

-- use the variable to display the roomnumber.
if (roomnumber == 0 )then
   fibaro:debug('The device has no roomnumber, it is not aassigned to a room');
else 
   fibaro:debug('The device is placed in room ' ..roomnumber);
end 

 

See also

fibaro:getSection()
fibaro:getType()

fibaro:getRoomId()

 

Action :

Recieves a number representing the roomnumber where a device is placed. 

 

Usage and parameters :

fibaro:getRoomID(deviceID)

  • DeviceID: the unique of a device.

 

Teruggekregen waarde :

A number representing the roomnumber. Room 'not assigned' gets roomnumber 0.

 

Programming example :

-- Ask the roomnumber of ID12
local roomnumber = fibaro:getRoomID(12);

-- use the variable to display the roomnumber.
if (roomnumber == 0 )then
   fibaro:debug('The device has no roomnumber, it is not aassigned to a room');
else 
   fibaro:debug('The device is placed in room ' ..roomnumber);
end 

 

See also

fibaro:getSection()
fibaro:getType()

 
Customer Service Phone

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

 
Adress

Gerstakker 16 5236 VG Empel Netherlands

Google maps