Smart plugs for TikTok LIVE gifts: TP-Link Tapo, Kasa and Home Assistant

Turn a fan, a lamp or a bubble machine on when TikTok LIVE, Kick or Twitch viewers send gifts, with TP-Link Tapo, Kasa or Home Assistant smart plugs.

The Smart Plug action switches a smart plug when a viewer sends a gift, follows or writes in chat: a fan blows for ten seconds, a bubble machine starts, a lamp goes off. It works with TP-Link Tapo and TP-Link Kasa plugs on your home network, and with any plug your Home Assistant controls — Shelly, Sonoff, Tuya, Zigbee and others.

Plan: every plan. The action runs from TikFinity triggers and from native TikTok, Kick and Twitch triggers. It is in beta.

Only what is safe to switch on its own

Plug in a fan, a lamp or a bubble machine — never a heater, an iron or anything that shouldn't turn on while nobody is watching.

Add the plug

Open Settings → Connections → Smart plugs and click Add. Choose the System:

  • TP-Link Tapo — click Find plugs and pick yours, or type its Plug address. Tapo plugs answer only with your TP-Link account: enter the Email and Password you sign in with in the Tapo app.
  • TP-Link Kasa — click Find plugs; each outlet of a power strip is listed on its own. Older Kasa plugs need no account. Kasa models from 2023 on want the TP-Link account of the Kasa app, like Tapo.
  • Home Assistant — enter the Home Assistant address (as you open it in the browser) and an Access token: in Home Assistant open your profile → Security → Long-lived access tokens → Create token. Then click Find switches and pick the plug.

The PC and the plug must be on the same network. If Windows asks whether BakoshApp may use the network, allow it — otherwise the search finds nothing. Save and test only reads whether the plug is on; nothing switches.

The TP-Link password and the Home Assistant token stay on this PC, encrypted for your Windows account. They never go to the server or into presets, and the password isn't sent to the plug either.

Add the action

  1. On the Actions tab, click Add new and choose the trigger.
  2. In All Actions, open the External tab and click Configure next to Smart Plug.
  3. Choose the Plug, or All plugs, and what the gift does: Turn on, Turn off or Toggle.
  4. Keep Back after a while on and set For how long — up to 10 minutes — for an effect that ends by itself. With it off, the plug stays as the gift left it.

Send test switches the plug for up to 10 seconds.

Gifts in a row

Gifts on one plug wait their turn. A streak of "on for 10 seconds" keeps the fan going until the last gift's time runs out and switches it off once — not off and on between gifts. After the last effect, the plug goes back to how it was before the first one: a lamp that was already on stays on.

Common questions

The plug doesn't answer. Check that it is on the same network as this PC and that its address hasn't changed — giving the plug a fixed address in your router helps. Allow BakoshApp in the Windows firewall if Windows asked.

"The plug didn't accept the TP-Link account." Enter the email and password of the Tapo or Kasa app the plug is added to.

Can I use Shelly, Sonoff or Tuya plugs? Yes, through Home Assistant: add the plug there, then choose it with Find switches.

Does the action need a game? No. The mod or integration only has to be switched on, like for every external command.