# When disabling a node doesn't (Tuya-smart)

**URL:** https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566
**Category:** General
**Created:** [10 April 2020 05:54 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566 "2020-04-10T05:54:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [10 April 2020 05:54 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/1 "2020-04-10T05:54:14Z")

</div>

I started using this node [https://github.com/hgross/node-red-contrib-tuya-smart](https://github.com/hgross/node-red-contrib-tuya-smart) to control an oem Tuya switch. Disabling the node in the Editor has no effect, it continues to poll the device. There are no config nodes present.

What (if any) code is required from the node to make it compatible?

Thanks

---

<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: [10 April 2020 11:22 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/2 "2020-04-10T11:22:14Z")

</div>

One to raise with the author I think. Possibly they are spawning a sub-process and not cleaning up via the correct close method but that is just a guess.

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [10 April 2020 11:44 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/3 "2020-04-10T11:44:22Z")

</div>

Hey Julian,  
I already checked that, and they close the polling timer in the "close" event... So indeed best to create an issue on Github

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [10 April 2020 14:24 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/4 "2020-04-10T14:24:01Z")

</div>

Thanks gents. It appears the node is pretty much abandoned so c'est la vie.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [10 April 2020 17:00 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/5 "2020-04-10T17:00:54Z")

</div>

Perhaps an idea to use [tuyaconvert](https://github.com/ct-Open-Source/tuya-convert) ?

---

<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: [9 June 2020 17:01 UTC](https://discourse.nodered.org/t/when-disabling-a-node-doesnt-tuya-smart/24566/6 "2020-06-09T17:01:01Z")

</div>

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