Contact us for all your questions
Fibaro:call command
fibaro:call()
Action :
Sents a request to a Z-wave module to preform an action. This command is used to switch on and off lights for example.
Usage and parameters :
fibaro:call(deviceId, actionname, …)
- deviceID: The unique ID-number of the device in the Home Center (Not the Z-wave node ID)
- actionname: A string with the action to be performed.
In some cases there are more than 1 actionnames needed. A maximum of 7 actionnames is allowed.
Returned value :
None.
Example :
--Sent a switch off command to nodeID 12
fibaro:call(12 , 'turnOff');
--Sennt the setvalue to device 12 with an extra parameter to set the value.
fibaro:call(12 , 'setValue' , 23);
All parameters are strings, because of a smart convertor its not neccesary to pass strings, the system will convert a number when passed.