# Unpaired Tuya Zigbee switch turns every smart plug ON / OFF!?

**URL:** <https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534>\
**Category:** Questions & Help\
**Created:** [April 21, 2021, 2:44pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534 "2021-04-21T14:44:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [April 21, 2021, 2:44pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/1 "2021-04-21T14:44:48Z")

</div>

I’ve got a totally weird problem over here, and also looks like quite a security hole. I’ve bought a Tuya 4 switch zigbee unit, and I tried to pair it with my Deconz zigbee receiver without succeeding… But I noticed when I press the top left button once…. EVERY smart pug turns on !?!? When I press the bottom left button every smart plug turns off…. What the….

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4d7c5d270c6e2f5e50802d1cb9f0c2039126f86e.jpeg)  
I didn’t pair it yet to anything. I tried, but deconz did not detect it, and I didn’t even add it to Homey (with Homey Deconz)… This is so weird… Also the smart pug brand does not matter. I have Innr and Ikea smart plugs, en they all turn on / off.

Some plugs aren’t even connected to flows or something.

Anybody got a clue?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 21, 2021, 2:53pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/2 "2021-04-21T14:53:03Z")

</div>

It probably _is_ paired, but not showing up in the Phoscon web interface because it doesn’t have the correct “switch” clusters (I assume On/Off). If you use the graphical interface of deCONZ itself (the one showing the Zigbee mesh), it’ll probably be shown there.

As for switching all devices: it sounds like the Aqara Opple switch, which do something similar (sending broadcast messages).

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [April 21, 2021, 2:57pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/3 "2021-04-21T14:57:11Z")

</div>

Hmmmm it seems you are right Robert… Apparently it did connect to Deconz although it said it could not detect anything… But it seems to be added as a light in the Deconz app. I have to investigate why it turns on every device.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/10d50ae06aef00326c0a9b55ffee275da96c2e96.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 21, 2021, 3:05pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/4 "2021-04-21T15:05:32Z")

</div>

> [@Satoer](#):
>
> I have to investigate why it turns on every device.

Because it’s likely broadcast one (or more) clusters. In the deCONZ UI, press F6 (or select _Edit \> Destination Settings_) and select all clusters of the node to see if there are any set to Broadcast. If so, change to Unicast (although I’m not sure to which address…)

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [April 21, 2021, 3:21pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/5 "2021-04-21T15:21:13Z")

</div>

If I open up the Deconz vnc select the switch node and press F6 I see this.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3c86b2cd39333965afefd901fc4c414c9632d534.jpeg)

To be honest, I have no idea what I’m looking at. I have also no idea how to select a “cluster”. Anyhow, apparently the switch isn’t detected properly. Maybe I need to update Deconz. But I have to look into that how I do that inside a docker container, without breaking every Zigbee connection.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 21, 2021, 3:26pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/6 "2021-04-21T15:26:36Z")

</div>

> [@Satoer](#):
>
> Anyhow, apparently the switch isn’t detected properly. Maybe I need to update Deconz

I can keep repeating myself: the switch is sending probably sending a broadcast message. It’s not broken, it _is_ detected properly, and updating deCONZ very likely won’t fix it (because it’s not a bug).

The Destination Settings window only makes sense if you select a cluster on the node that represents the switch. To select a cluster, press the right-most gray button on the node:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/2/522200f10fa97aff116e5beddc4c702a75929d0f.png)

That pops up a window with the clusters for the node. Click each one to see if the address mode changes to Broadcast (any of them) for a particular cluster.

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [April 21, 2021, 3:33pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/7 "2021-04-21T15:33:40Z")

</div>

Hmmm every cluster seem to be configured as “Unicast” (clicked and checked them all)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bfe4d38abc2efa0ab26227c08999de68fcee7faf.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 21, 2021, 5:19pm UTC](https://community.homey.app/t/unpaired-tuya-zigbee-switch-turns-every-smart-plug-on-off/46534/8 "2021-04-21T17:19:51Z")

</div>

Perhaps there’s another mechanism that causes all lights to turn on/off. Perhaps search for similar cases at the deCONZ issue tracker: [Issues · dresden-elektronik/deconz-rest-plugin · GitHub](https://github.com/dresden-elektronik/deconz-rest-plugin/issues/)
