Author: HCA Central Version: 2 Added to Library: 10-Nov-23 HCAVersion needed: 17 Keywords: Class Requirements: Make sure that your have already worked with your TPLinc devices using their app. Extra Info Link: Here
Package Description: Please review the TP-Link class technical note available from the support web site before beginning.
Program Description: Class implementation of TP-Link Smart LED WiFi Bulb
To use:
Step 1: Add the device using your KASA app as usual and make sure that you can control using the KASA app. Determine the IP address it gets from DHCP by using your router interface. While there use whatever facilities your router has to make sure that IP address doesn't change in the future.
Step 2: Add a HCA device of this class and on the "User Class Object", enter in the IP address of the device.
Step 3: Use HCA and attempt to control the device ON and OFF. If non-functional then check the IP address.
Example: This class isn't called directly but used by HCA when controlling these type of devices
Parameters:
Name | Type | Description | Default |
---|---|---|---|
HCAName | Value | HCA Name of the TP Link device | |
id | Value | TPLink assigned device id | |
action | Value | Class operation. See documentation for a dimmable device class | |
percent | Value | Class data. See documentation for a dimmable device class |
Program Description: Class implementation of TP-Link Smart Wi-Fi Multi plug
To use:
Step 1: Add the device using your KASA app as usual and make sure that you can control using the KASA app. Determine the IP address it gets from DHCP by using your router interface. While there use whatever facilities your router has to make sure that IP address doesn't change in the future.
Step 2: Add a HCA device of this class and on the "User Class Object", enter in the IP address of the device.
Step 3: Use HCA and attempt to control the device ON and OFF. All plugs in the device should go on or off. If not then check the IP address.
Step 4: Do a Get-Status operation on the device by a right-click on the HCA device name or icon and pick Get-Status from the popup menu. This reads additional information from the device to determine how to control all plugs. These are stored in the device and visible on the "Tags" tab.
Step 5: Copy the device by a right-click on the device name in the left pane followed by a paste. You will have to give it a different name,
Step 6. Edit both devices on the "User Class Object" tab to have the IP address followed by a colon and then the number of the plug. In a dual plug, 0 is the left, and 1 the right. For example: 192.168.0.100:0 or 192.168.0.100:1
Step 7: Now a ON, OFF or Get-Status should control only the specified plug
Example: This class isn't called directly but used by HCA when controlling these type of devices
Parameters:
Name | Type | Description | Default |
---|---|---|---|
HCAName | Value | HCA Name for the TPLink device | |
id | Value | TPLink assigned device id | |
action | Value | Class operation. See documentation for a on/off device class | |
percent | Value | Class data. See documentation for a on/off device class |
Program Description: Class implementation of TP-Link Smart LED WiFi Plug
To use:
Step 1: Add the device using your KASA app as usual and make sure that you can control using the KASA app. Determine the IP address it gets from DHCP by using your router interface. While there use whatever facilities your router has to make sure that IP address doesn't change in the future.
Step 2: Add a HCA device of this class and on the "User Class Object", enter in the IP address of the device.
Step 3: Use HCA and attempt to control the device ON and OFF. If non-functional then check the IP address.
Example: This class isn't called directly but used by HCA when controlling these type of devices
Parameters:
Name | Type | Description | Default |
---|---|---|---|
HCAName | Value | HCA Name for the TPLink device | |
id | Value | TPLink assigned device id | |
action | Value | Class operation. See documentation for a on/off device class | |
percent | Value | Class data. See documentation for a on/off device class |