# Contrib-tuya-smart randomly switching/resetting plugs

**URL:** https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179
**Category:** General
**Created:** [26 October 2019 21:04 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179 "2019-10-26T21:04:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![antonio1000homens](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/antonio1000homens/32/13630_2.png) [@antonio1000homens](https://discourse.nodered.org/u/antonio1000homens)
#### Post date: [26 October 2019 21:04 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179/1 "2019-10-26T21:04:30Z")

</div>

Even though I can successfully control switches, I find on occasion the switch flips to off and on again.. multiple switches and vendors

The only clue is that the frequency of these random restarts appear increase with faster polling period.. I'm wondering if the node is actually making the device crash?

the debug nodes dont report the OFF status at all during this "glitch", and there are no alerts from IFTTT (which I also have an alert set if switch goes off)

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [26 October 2019 21:12 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179/2 "2019-10-26T21:12:44Z")

</div>

As it is a contrib node, there is no guarantee that the author of the node will see this thread.  
You can open an issue on the nodes github page which will open a dialogue directly with the nodes author.

---

<div class="post-metadata">

### Author: ![razorRun](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/razorrun/32/27847_2.png) [@razorRun](https://discourse.nodered.org/u/razorRun)
#### Post date: [28 August 2020 02:32 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179/3 "2020-08-28T02:32:15Z")

</div>

FYI Guys  
You can now use this [plugin](https://flows.nodered.org/node/node-red-contrib-smartlifeair) without tosmota flashing

---

<div class="post-metadata">

### Author: ![ichiangske](https://avatars.discourse-cdn.com/v4/letter/i/9e8a1a/32.png) [@ichiangske](https://discourse.nodered.org/u/ichiangske)
#### Post date: [1 November 2020 14:32 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179/4 "2020-11-01T14:32:21Z")

</div>

Aha, finally found someone with the same problem. One year I've been searching for a solution, even bought a new switch but still the same problem.

The single switches are working perfect. Only my double switches keeps having this issue 😪

---

<div class="post-metadata">

### Author: ![AkRabayah](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@AkRabayah](https://discourse.nodered.org/u/AkRabayah)
#### Post date: [13 February 2021 23:10 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179/5 "2021-02-13T23:10:00Z")

</div>

I have the same issue although I have almost 55 devices, only the two gang tuya switches keep doing device reset
