fibaro:getType(deviceID)
-- Get the type of the device with id = 100
local
theType =
fibaro:getType
(100)
-- If the device is equal to 'blind'
if
(theType ==
'blind'
)
then
fibaro:debug
(
'The device is a blind.'
)
else
fibaro:debug
(
'Device type: '
..
type
)
end
fibaro:getRoomID
fibaro:getSectionID