fibaro:getSourceTriggerType()
This function is the equivalent to calling fibaro:getSourceTrigger()
and inspecting the ‘type’ field returned.
-- Check if the scene has been started manually.
if
(
fibaro:getSourceTriggerType
() ==
'other'
)
then
fibaro:debug
(
'Scene started manually.'
)
end
-- The same can be achieved by downloading the entire table using
-- fibaro:getSourceTrigger() and referring to the field 'type'
local
source =
fibaro:getSourceTrigger
()
if
(source[
'type'
] ==
'other'
)
then
fibaro:debug
(
'Scene started manually.'
)
end
fibaro:getSourceTrigger