# Pair list\_devices data transfer to my custom view

**URL:** <https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702>\
**Category:** Developers\
**Created:** [October 11, 2018, 10:00am UTC](https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702 "2018-10-11T10:00:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxmudjon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maxmudjon/32/1163_2.png) [@Maxmudjon](https://community.homey.app/u/Maxmudjon)\
**Post date:** [October 11, 2018, 10:00am UTC](https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702/1 "2018-10-11T10:00:44Z")

</div>

How can I get data from device\_list in my custom view on the next screen?

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [October 11, 2018, 12:01pm UTC](https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702/2 "2018-10-11T12:01:43Z")

</div>

Already answered …

> [@Pair list\_devices data to next view](https://community.homey.app/t/pair-list-devices-data-to-next-view/2276/6):
>
> The [device groups app](https://github.com/swttt/com.swttt.devicegroups/tree/master/drivers/devicegroup/pair) does that by emitting data in custom events from the view to the driver. For instance, the [“class” template emits an addClass event](https://github.com/swttt/com.swttt.devicegroups/blob/3e58128209e1036c5509b5ff6de5296e4addce33/drivers/devicegroup/pair/class.html#L12) that contains the device class that the new device group should get. The driver [listens to that event](https://github.com/swttt/com.swttt.devicegroups/blob/3e58128209e1036c5509b5ff6de5296e4addce33/drivers/devicegroup/driver.js#L19) and stores it in the pairingDevice object which will eventually contain all data for the new device. The next template, “capabilities”, [emits the startedCapabilities event](https://github.com/swttt/com.swttt.devicegroups/blob/3e58128209e1036c5509b5ff6de5296e4addce33/drivers/devicegroup/pair/capabilities.html#L6), and upon reception, the [driver returns the pairingDevice object](https://github.com/swttt/com.swttt.devicegroups/blob/3e58128209e1036c5509b5ff6de5296e4addce33/drivers/devicegroup/driver.js#L24) that…

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 11, 2018, 3:17pm UTC](https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702/3 "2018-10-11T15:17:18Z")

</div>

Like stated above by @Jamie .  
Closed. If u have any problems with that plz feel free to contact me or another moderator.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 11, 2018, 3:17pm UTC](https://community.homey.app/t/pair-list-devices-data-transfer-to-my-custom-view/2702/4 "2018-10-11T15:17:24Z")

</div>

Closed on October 11, 2018, 3:17pm UTC


