# \[ST Edge\] How to create child devices with edge?

**URL:** <https://community.smartthings.com/t/st-edge-how-to-create-child-devices-with-edge/230483>\
**Category:** Writing Edge Drivers\
**Tags:** edge-device\
**Created:** [August 21, 2021, 9:21am UTC](https://community.smartthings.com/t/st-edge-how-to-create-child-devices-with-edge/230483 "2021-08-21T09:21:00Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [September 12, 2021, 9:33pm UTC](https://community.smartthings.com/t/st-edge-how-to-create-child-devices-with-edge/230483/13 "2021-09-12T21:33:33Z")

</div>

> [@erickv](#):
>
> Add the following lines above your handlers to make it work:
> 
> ```auto
> local zcl_clusters = require "st.zigbee.zcl.clusters"
> local OnOff = zcl_clusters.OnOff
> 
> ```

**With this modification it already updates the app status of the 3 plugs.**

After several tests, this is what I see that it does not work well or as expected:

- This strip has a button that activates or deactivates all 3 plugs at the same time. When you press it, **app only updates the state of the main socket (1)**.  
I am not able to capture these events from switch 2 and 3, only the event received from main is seen in the log.

- The same happens with the configuration reports, they should send status every 300 sec and only the main component sends it.

- If you send a “refresh” command, update the 3 plugs.

- **A solution that works is to program a timer every 300 sec that a refrech executes.**

- **Automations are local if you only execute actions on the “main” socket.** If you perform actions with plug 2 or 3, they are not local.

- What I already commented in another post, in automation it does not show the names of the plugs. Shows all actions followed. This also happens now with multi button DTHs.

 ![Screenshot_20210912-220340_2](https://global.discourse-cdn.com/smartthings/original/3X/5/9/59ae8d1fd4a614d2b84868dace522664edf5ce2c.jpeg)

 ![Screenshot_20210912-220503_2](https://global.discourse-cdn.com/smartthings/original/3X/1/f/1fdb798454387ac873e2cec661d888c56abec664.png)

- The timer controls are not independent for each socket. They work at the same time on all 3 sockets.  

- Quick control only can programmed and executed for one plug (switch 3).  

- The programmed quick control appears with the name and the action. With DTHs only the action appears.  

- The Event History does not differentiate which plug is the event.  

- In the app you cannot change the name of the plugs, you can only change the name of the strip, which appears in the tile and corresponds to the main.

Thanks

---

_[View the full topic](https://community.smartthings.com/t/st-edge-how-to-create-child-devices-with-edge/230483)._
