fibaro:getRoomID(deviceID)
-- 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
fibaro:getSectionID
fibaro:getType