# Use of payload to select device in DeConz

**URL:** https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786
**Category:** General
**Created:** [22 February 2022 01:15 UTC](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786 "2022-02-22T01:15:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RichardKT](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RichardKT](https://discourse.nodered.org/u/RichardKT)
#### Post date: [22 February 2022 01:15 UTC](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786/1 "2022-02-22T01:15:57Z")

</div>

Hi,

In order to be able to dynamically switch on/off multiple lights based on a generic timer, I would like to address the individual lights as to switch them on or off. I have the deConz device\_id of the lights that need to be triggered. Is it possible to select the device via a JSON? message to deConz-out node in order to switch on/off? What should the payload I need to send to deConz out need to look like?

Many thanks in advance,  
Richard

---

<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: [23 April 2022 01:16 UTC](https://discourse.nodered.org/t/use-of-payload-to-select-device-in-deconz/58786/2 "2022-04-23T01:16:10Z")

</div>

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