What is a Custom Driver?
The Custom Driver feature allows you to create scripts that can be used on IP-connected devices to retrieve additional data and execute actions on them.
Supported network protocols:
- missing protocols:
- missing credential support for HTTP/SNMP
- missing example drivers
- missing action functions support
How to create a Custom Driver?
Step 1 Go to Account Settings > Services & Drivers > Custom Drivers:
Step 2 Click on Create a New Driver:
Step 3 Enter driver properties and code:
How to test a Custom Driver?
You can validate the code of a custom driver by executing it against a device of your choice.
Step 1 Open to the Custom Driver Details section:
Step 2 Select a Device for the Driver:
Step 3 Select a function to execute. You have two choices:
- Validate is designed to verify if the device that you apply a driver to can support the custom driver’s functionality. The function will be executed and depending on the result it will allow or prevent the custom driver to device association:
- The D.success() callback indicates the device is a valid candidate for the driver.
- The D.failure(“add a sensible error message”) callback indicates that this driver’s functionality is not supported on the selected device.
2. Get_status and Run Code:
Step 5 Checking the result:
A pop-up will appear with the code run execution result for the specified function. You have two choices:
- Get_status is the function name that was executed
- Variables is the section that contains a list of variable name – value pairs
- “left” and “right” are the names we’ve given the two variables
- “value 1” and “value 2” are their values respectively
How to use a Custom Driver?
Step 1 Go to a device of your choice and select Apply custom driver to this device:
Step 2 Select the custom driver that you want to apply to this device:
Step 3 Custom Driver configuration:
Go to the Driver tab and find your custom driver configuration (sample period) and results: