# Connecting Kasa Smart Wi-Fi Plug using tplink palette

**URL:** <https://discourse.nodered.org/t/connecting-kasa-smart-wi-fi-plug-using-tplink-palette/62131>\
**Category:** General\
**Created:** [3 May 2022 15:54 UTC](https://discourse.nodered.org/t/connecting-kasa-smart-wi-fi-plug-using-tplink-palette/62131 "2022-05-03T15:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAbele1](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MAbele1](https://discourse.nodered.org/u/MAbele1)\
**Post date:** [3 May 2022 15:54 UTC](https://discourse.nodered.org/t/connecting-kasa-smart-wi-fi-plug-using-tplink-palette/62131/1 "2022-05-03T15:54:06Z")

</div>

I am trying to develop an IoT project for a class and am having issues correctly connecting a smart plug (HS103) to my flow. I have a Circuit Playground Express using the light sensor to gather ambient light readings and am trying to get it to trigger a lamp to turn on when the light level dips below a certain point. I have connected it to an MQTT service ([adafruit.io](http://adafruit.io)) and can get data in the cloud there, but don't know how to best connect that to the tplink node (node-red-contrib-tplink) to control the plug. I must be missing some code in that node or switch node but I don't know anything about coding...so that may be my issue.

Here's my current flow. I tested the MQTT-in with a debugger and it is receiving data no problem, but the switch and tplink node(s) are not functioning.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/ca9b2f128ec50b15161390322d8afad1408bf5d2.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 July 2022 15:54 UTC](https://discourse.nodered.org/t/connecting-kasa-smart-wi-fi-plug-using-tplink-palette/62131/2 "2022-07-02T15:54:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
