Driver Details

New Community

TP-Link Kasa/Tapo Lighting

By: David Bowdler
Updated: Nov. 2, 2026
Download Driver Purchase License
Rating: 0.0 (0 ratings)
Log in to rate this driver

TP-Link Kasa & Tapo Smart Home

Control TP-Link Kasa and Tapo lighting, plugs and power strips straight from RTI over your local network. Up to 32 devices per driver, with live feedback for each one and no cloud service in the control path.

Key Features

  • Lighting: Power, brightness, colour temperature and full colour for Kasa and Tapo bulbs, light strips and dimmers
  • Plugs and Switches: On / off / toggle with live state, plus watts and energy on energy-monitoring plugs
  • Power Strips: Per-outlet control and outlet names on Tapo P300 / P304 / P316 and Kasa HS300, with a timed Outlet Power Cycle for rebooting rack equipment
  • Tapo Hubs: Sensor feedback from H100 / KH100 hubs: contact, motion, leak, temperature, humidity and battery
  • Both Local Protocols: Works with current Tapo and Kasa firmware and with older Kasa devices, detecting which each device needs automatically
  • Named Macro Steps: Each device appears by its own name in macro steps (Kitchen Light - Off) as well as by device number
  • Status and Events: Per-device Online / Power / Brightness / Colour feedback, Online / Offline / On / Off events, and an overall Connection State with All Devices Connected / Disconnected events
  • Web Dashboard and Browse Menu: A control dashboard hosted on the processor for an RTI Web Object, and a Browse Menu for T-class / ISR remotes
  • Verified on Real Hardware: Proven on Kasa KS220 dimmers, a Kasa KS200 switch and a Kasa HS300 power strip

Requirements

  • RTI XP-class processor, script runtime 24 or above, and Integration Designer 11.4 or above
  • TP-Link Kasa or Tapo devices on the same network as the processor, each with a reserved IP address
  • For Tapo and newer Kasa devices: the TP-Link account email and password, and Third-Party Compatibility turned on in the Tapo app

How It Works

Enter each device's name and IP address and leave Transport on Auto - the driver works out which local protocol each device uses and remembers it. Your TP-Link account details are used only for the device's local login; nothing is sent to the cloud. The driver polls each device for live feedback and sends commands directly to it, so lighting, plugs and strip outlets can be driven from buttons, sliders, macros and events like any other RTI device.

TP-Link Kasa & Tapo Smart Home | Version 0.17

Introduction

Local network control of TP-Link Kasa and Tapo smart lighting, plugs and power strips: bulbs, light strips, dimmers, switches, plugs, multi-outlet strips and Tapo hubs. Up to 32 devices per driver instance, with live feedback for each one. The driver talks to each device directly on your network; no cloud service is used to control anything.

Important Note

Tapo devices (and newer Kasa devices) only accept local connections when "Third-Party Compatibility" is turned on for that device in the Tapo app. If a Tapo device stays Offline, check that setting first.

Version History

  • 0.17 - Adds the standard Connection State (Disconnected / Partly Connected / Connected) and License Status (Licensed / Trial / Unlicensed) variables, each with one boolean per state, plus All Devices Connected / All Devices Disconnected events. New optional Instance Label setting tags log lines so two copies of the driver can be told apart. Debug Level now defaults to Off. Help is now provided as instructions.md. Existing variables, functions and events are unchanged.
  • 0.16 - Newer Kasa devices that log in with the TP-Link account but expect the older Kasa commands (for example KS200 switches and HS300 strips on current firmware) are now detected and controlled correctly. Verified on a real KS200 and HS300.
  • 0.15 - Kasa HS300 power strips on newer firmware are recognised as strips, with per-outlet control.
  • 0.14 - Kasa HS300 power strip support (per-outlet control, names and power readings) and the new Outlet Power Cycle function. Fixes polling stopping after the first refresh, so changes made outside RTI now keep showing up.
  • 0.9 to 0.13 - Added plugs (with energy readings), Tapo power strips and Tapo hubs to the original lighting support, with matching web dashboard tiles.
  • 0.8 - First store release. Verified on real Kasa KS220 dimmers.

Driver Features

What this driver controls

  • Power on / off / toggle for every device type.
  • Brightness, colour temperature and full colour for bulbs, light strips and dimmers that support them.
  • Each outlet of a power strip on its own, including a timed power cycle for rebooting rack equipment.
  • Per-device named macro steps (pick "Kitchen Light - Off" instead of "Power Off, device 3").

Feedback

  • Per device: online, power, brightness, colour temperature, hue, saturation, model and type.
  • Energy-monitoring plugs: current power (W), energy today and this month.
  • Power strips: each outlet's on/off state, name (as set in the Kasa / Tapo app) and, where the strip meters it, power (W).
  • Tapo hubs: each sensor's name, type, triggered state, temperature, humidity and battery.
  • Overall Connection State across all configured devices.
  • Changes made in the Kasa / Tapo app or at the device show up on the next poll.

Web dashboard and Browse Menu

  • A control dashboard hosted on the processor for an RTI Web Object (default port 9064).
  • A Browse Menu for hardware remotes (T-class / ISR) using the standard Browse tags.

Cloud services

All control is local. The driver only talks to the internet when Remote Logging is switched on: it then sends the driver's log lines and the processor MAC address to shpdrivers.services (operated by Smart Home Programming and Automation) so support can see them. Your TP-Link account email and password are used only for the local device login and are never sent anywhere else. Licensing is checked on the processor and sends nothing.

Supported Devices

  • Tapo bulbs, light strips, dimmers and plugs on 2023+ firmware (KLAP protocol).
  • Tapo power strips P300 / P304 / P316 (per-outlet control).
  • Tapo hubs H100 and Kasa KH100 (sensor children).
  • Kasa HS300 power strip (per-outlet control and per-outlet power readings on strips that meter it).
  • Newer Kasa devices on KLAP firmware, including those that still use the older Kasa commands.
  • Legacy Kasa bulbs, plugs, switches and dimmers using the older local protocol (TCP 9999).
  • Verified in use on Kasa KS220 dimmers, a Kasa KS200 switch and a Kasa HS300 strip.

System Requirements

  • Integration Designer - 11.4 or above
  • RTI processor - XP-8 class (XP-3 / XP-6 / XP-6s / XP-8 / XP-8s / XP-8v)
  • Processor script runtime - 24 or above
  • The processor and the devices must be on the same network (the driver connects to each device's IP address).

Device Setup

  1. Reserve device IPs. Give each device a fixed DHCP reservation in the router so its IP address does not change. The driver does not discover devices; it uses the IP you enter.
  2. TP-Link account (Tapo / newer Kasa). Enter your TP-Link / Tapo account email and password under "TP-Link Account". They are used only for the local device login. Legacy Kasa devices do not need them.
  3. Third-Party Compatibility (Tapo). In the Tapo app, open each device's settings and turn on "Third-Party Compatibility". Without it the device refuses local connections.
  4. Devices. Set "Number of Devices", then for each device enter a Name and IP Address. Leave Transport on Auto: the driver works out which protocol each device uses and remembers it. A power strip takes one device slot; its outlets are numbered 1 to 6 within that slot.

Power strip tips

  • Do not put the RTI processor, its network switch or the router on an outlet you power-cycle. The cycle would cut the driver's own connection and the outlet could stay off.

Running more than one copy

Set a different Instance Label on each copy so their log lines can be told apart, and give each a different Web Dashboard Port and Debug Console Port.

Troubleshooting

  • Device shows Offline: check the IP address, that the device is powered, and (Tapo) that Third-Party Compatibility is on and the account email and password are correct.
  • KLAP credentials rejected: re-check the TP-Link account email and password.
  • Commands do nothing after two hours: the trial has ended. Enter your licence key.
  • A telnet debug console is available on the Debug Console Port (default 12534). Useful commands: devices, outlets N, outlet N O on, cycle N O 10.

Driver Configuration

Connection

  • Number of Devices - default 1 - How many TP-Link devices this driver instance controls.
  • Poll Interval (seconds) - default 10 - How often to refresh device state (3-300).
  • Instance Label - Optional name added to log lines so two copies of this driver can be told apart.

TP-Link Account (Tapo / newer Kasa = KLAP)

  • Account Email - Your TP-Link / Tapo account email. Used only for the local device login. Leave blank for legacy Kasa devices.
  • Account Password - Your TP-Link / Tapo account password. Used only for the local device login.

Device N (N = 1-32, same for each)

  • Name - default Device N - Friendly name for this device (light, plug, strip or hub).
  • IP Address - Device IP address. Leave blank to disable this slot.
  • Transport - default Auto - Auto / KLAP for Tapo and newer Kasa. Legacy XOR for older Kasa (TCP 9999).

Web Dashboard

  • Enable Web Dashboard - default true - Host a control dashboard on the processor. Add a Web Object pointing at http://<processor-IP>:<port>/.
  • Web Dashboard Port - default 9064 - TCP port for the web dashboard.

Licence

  • Licence Key - Per-processor licence key.

Remote Logging (Development) (Advanced)

  • Remote Logging - default false - Stream this driver's logs to Smart Home Programming support. Leave off in normal use. Can also be turned on and off with the Remote Logging On / Off macro commands.

Licensing

The licence is per processor. Without a key the driver runs a 120-minute trial; after that, commands are refused while feedback keeps working. Enter the key under Licence. The License Status variable reads Licensed, Trial or Unlicensed. Buy a key at https://smarthomeprogramming.com.au/store/

Functions

Control (by device number)

  • Power On / Power Off / Power Toggle (on a power strip this switches every outlet)
  • Set Brightness (1-100)
  • Set Colour Temp (2500-6500 Kelvin)
  • Set Colour (Hue 0-360, Saturation 0-100)

Power Strip Outlets

  • Outlet On / Outlet Off / Outlet Toggle (device + outlet number)
  • Outlet Power Cycle (device + outlet + seconds off, 2-300, default 10)

Per-device categories

Each configured device also has its own category, named after it, with On, Off, Toggle, Set Brightness, Set Colour Temp and Set Colour.

Browse Menu

  • Browse Select, Browse Back, Browse Home

Diagnostics

  • Refresh Device / Refresh All
  • Remote Logging On / Off / Toggle

Variables

Connection

  • Connection State - 0 Disconnected (no device online), 1 Partly Connected (some online), 2 Connected (all online)
  • Connected, Disconnected, Connection State - Partly Connected - one boolean per state
  • Devices Online - how many configured devices are online

Licence

  • License Status - Licensed / Trial / Unlicensed, with one boolean per state, and License Trial Remaining
  • Licence Status, Licence Valid, Trial Active, Trial Expired, Trial Time Remaining, MAC For Key

Per device (Device 1-32)

  • Name, Online, Power, Brightness, Colour Temp (K), Hue, Saturation, Model, Type
  • Power (W), Energy Today (Wh), Energy Month (Wh), Has Energy Monitoring
  • Outlet Count, and for outlets 1-6: Outlet Power, Outlet Name, Outlet Power (W)
  • Sensor Count, and for sensors 1-6: Name, Type, Triggered, Temp (C), Humidity, Battery, Low Battery

Events

Connection

  • All Devices Connected - every configured device is online
  • All Devices Disconnected - no configured device is online

Device N (N = 1-32)

  • Online, Offline, Turned On, Turned Off

Device N Sensors (N = 1-32)

  • Sensor N Triggered, Sensor N Cleared (N = 1-6)

Licence

  • Trial Warning, Trial Expired

Autoprogramming Support

Drop these tags on a button to wire it automatically.

| Tag | Wires | |---|---| | Browse | list command + feedback | | Browse Back | command | | Browse Home | command | | Browse Title | feedback |

Limitations

  • No automatic discovery: enter each device's IP address, and reserve it in the router.
  • Feedback is polled (default every 10 seconds), so changes made outside RTI appear on the next poll.
  • Tapo devices on pre-2023 firmware that has never been updated use a protocol the RTI processor cannot run. Update the firmware in the Tapo app first.
  • Some strips (for example HS300 hardware version 2) do not report per-outlet power; those readings stay 0.
  • Up to 6 outlets per strip and 6 sensors per hub are shown.

Support Contact

Smart Home Programming and Automation https://smarthomeprogramming.com.au david@smarthomeprogramming.com.au

This driver requires a per-processor licence key.

  • Trial: Runs fully for 120 minutes per processor boot. After the trial, command sending is disabled while status feedback continues, so you can fully evaluate it before purchasing.
  • Purchase: Buy a licence key tied to your RTI processor's MAC address from the Smart Home Programming store. The key unlocks the driver permanently on that processor.
Please log in to leave a comment.
Loading comments...