About this action
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- 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
Device ID Text input > Path to a folder
- Label
- Device ID
- Slug
- device_id
- Required
- true
- Can have default value
- true
- Filter code method
- Smarthon.controlcmdValue.setDeviceId(string: deviceId)
Command Text input > Path to a folder
- Label
- Command
- Slug
- command
- Required
- true
- Can have default value
- true
- Filter code method
- Smarthon.controlcmdValue.setCommand(string: command)
Value Text input > Path to a folder
- Label
- Value
- Slug
- value
- Required
- true
- Can have default value
- true
- Filter code method
- Smarthon.controlcmdValue.setValue(string: value)