Contact us for all your questions
Fibaro:getSectionID command
fibaro:getSectionID()
Action :
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