You can use control command (with value) to control the IoT device.
(e.g. turn on/off the light, control light intensity, control 180 servo, change variable for settings, set custom function)
API endpoint slug
smarthon.controlcmd_value
Filter code method
Smarthon.controlcmdValue.skip(string?: reason)
Runtime method
runAction("smarthon.controlcmd_value", {})
Action fields
Label
Device ID
Slug
device_id
Required
true
Can have default value
true
Filter code method
Smarthon.controlcmdValue.setDevice(string: device_id)
Label
Command
Slug
command
Required
true
Can have default value
true
Filter code method
Smarthon.controlcmdValue.setCommand(string: command)
Label
Value
Slug
value
Required
true
Can have default value
true
Filter code method
Smarthon.controlcmdValue.setValue(string: value)