Tapo Kasa
Control TP-Link Tapo and Kasa devices from your automations.
Overview
The Tapo Kasa integration adds dedicated triggers and actions so you can build workflows around events, device state, or external updates.
Event Triggers
React to inbound events and status updates.
Action Effects
Send commands and automate responses.
Automation Hooks
Combine triggers with other plugins and scripts.
Setup
1
Enable the Plugin
Open FaustBot settings and enable the Tapo Kasa integration.
2
Connect Your Account or Device
Provide any required credentials or connection details.
3
Verify the Connection
Trigger a test action to confirm the integration is responding.
Connection Tips
Keep the service running and verify network permissions if the connection fails.
Triggers
- Connection status changes (connected, disconnected, error).
- Incoming events or webhook notifications.
- State changes reported by the service or device.
Effects
- Send commands or updates to Tapo Kasa.
- Change device settings or activate presets.
- Sync data into variables for other actions.
Scripting API
Use the CPH API to control Tapo Kasa directly from scripts.
Device Control
Device control
# Turn device on/off
CPH.TapoKasaTurnOn("Living Room Light")
CPH.TapoKasaTurnOff("Living Room Light")
# Toggle device state
CPH.TapoKasaToggle("Desk Lamp")
# Check device state
is_on = CPH.TapoKasaIsOn("Living Room Light")Light Settings
Light settings
# Set brightness (0-100)
CPH.TapoKasaSetBrightness("Desk Lamp", 75)
# Set color temperature (2700-6500K)
CPH.TapoKasaSetColorTemp("Desk Lamp", 4000)
# Set RGB color
CPH.TapoKasaSetColor("RGB Strip", 255, 0, 128)Device Info
Device info
# Get all devices
devices = CPH.TapoKasaGetDevices()
# Get device info
info = CPH.TapoKasaGetDeviceInfo("Living Room Light")
# Get power consumption (smart plugs)
power = CPH.TapoKasaGetPowerUsage("Smart Plug 1")See the full API reference for all available Tapo Kasa methods.