# Control an Amazon Smart Switch

**URL:** https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991
**Category:** General
**Created:** [10 April 2019 14:29 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991 "2019-04-10T14:29:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)
#### Post date: [10 April 2019 14:29 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991/1 "2019-04-10T14:29:35Z")

</div>

Did some searching, but nothing comes up.....

I want to control an Amazon Smart Switch (electrical power outlet) NOT with my voice, but with Node-RED.  
I see plenty of nodes to allow you to interact with Node-RED via Alexa, but nothing for just controlling their switched outlets?

The end goal is to use a timer node to turn the outlet on and off.  
(Of course I will still be able to use my voice to turn the switch on and off as it currently works).

I see there is a TP-Link outlet node, but is there anything for Amazon that I am missing?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [12 April 2019 15:33 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991/2 "2019-04-12T15:33:07Z")

</div>

It appears to be controllable via a WiFi app so you could, in theory, intercept the traffic from the app and reverse engineer the protocol.

Otherwise, you will have to do it via Alexa.

---

<div class="post-metadata">

### Author: ![mike\_biddell](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mike\_biddell](https://discourse.nodered.org/u/mike_biddell)
#### Post date: [14 April 2019 19:46 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991/3 "2019-04-14T19:46:35Z")

</div>

> **[node-red-contrib-hs100](https://www.npmjs.com/package/node-red-contrib-hs100)**
>
> This Node-RED node is for controlling tp-link Wi-Fi Smart Plug - Model HS100.

---

<div class="post-metadata">

### Author: ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)
#### Post date: [14 April 2019 22:06 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991/4 "2019-04-14T22:06:16Z")

</div>

@mike_biddell Are you meaning to say that the TP-Link Node will work with the Amazon smart switch?

I have tried the TP Link node with my TP link switches and it does not work.  
Contacted the author and he said he can not test the node since he does not have the hardware, he just wrote it blind.

The issues I had with that TP link node are partly what caused me to go with the Amazon switches.  
I honestly thought I could control them via Node-RED.

---

<div class="post-metadata">

### Author: ![mike\_biddell](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mike\_biddell](https://discourse.nodered.org/u/mike_biddell)
#### Post date: [15 April 2019 07:01 UTC](https://discourse.nodered.org/t/control-an-amazon-smart-switch/9991/5 "2019-04-15T07:01:53Z")

</div>

Errr I bought this:-

> **[Kasa Smart WiFi Plug with Energy Monitoring by TP-Link, Works with Amazon Alexa...](https://www.amazon.co.uk/Monitoring-TP-Link-Required-Control-Anywhere/dp/B07GWWRK1C/ref=sr_1_1_sspa?keywords=kasa+smart+wifi&qid=1555311397&s=diy&sr=1-1-spons&psc=1)**
>
> £24.99

And used the HS100 node and it worked straight away. I made sure the plug obtained an IP address, put that in the node, changed the payload to ON and OFF ...... it worked ???

But since yours didn't work, we can only speculate that they don't all have the same firmware, or TP Link have changed the firmware in some way ???
