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

Fibaro:getSectionID command

fibaro:getSectionID()

 

Action :

Recieve the number of the section (floor) where a device is placed.

 

Usage and parameters :

fibaro:getsectionID(deviceID)

  • DeviceID: The unique device of an ID

 

Returned value :

A number with the section number. A section with 'not assigned' will get the number 0.

 

Programming example :

-- Request for the sectionnumber of  deviceID 12.
local sectionnumber = fibaro:getSectionID(12);

-- Perform an action when its more than 10 seconds ago that a value is changed.
if (room == 0 )then
   fibaro:debug('The device has no sectionnumber its not placed in a section');
else 
   fibaro:debug('This device is placed in sectionnumber ' ..sectienummer);
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