# How do i set values to a Zigbee subdevice?

**URL:** <https://discourse.nodered.org/t/how-do-i-set-values-to-a-zigbee-subdevice/83481>\
**Category:** General\
**Tags:** zigbee\
**Created:** [6 December 2023 22:54 UTC](https://discourse.nodered.org/t/how-do-i-set-values-to-a-zigbee-subdevice/83481 "2023-12-06T22:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [6 December 2023 22:54 UTC](https://discourse.nodered.org/t/how-do-i-set-values-to-a-zigbee-subdevice/83481/1 "2023-12-06T22:54:22Z")

</div>

Hi,  
I own a Zigbee/Bluetooth gateway and some temp sensors.  
I can read the Data and visualize them.

Now I got some Zigbee heaters and also can read and visualize the Data.

But how can I set the Data?  
I'm using the "node-red-contrib-tuya-devices" Nodes

```auto
msg.payload ={
    "code": "action",
        "input_params": {
        "cid" : "xxxxxxxxxxxxx",
        "dps" : "7",
        "set" : "true"
}
}
return msg;

```

This does not work. It should set the kids lock

```auto
msg.payload ={
   dps: 4,
   cid: "xxxxxxx",
    set : msg.payload
}
return msg;

```

This does not work but should set the setpoint.

Do you have some ideas?

---

<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:** [4 February 2024 22:54 UTC](https://discourse.nodered.org/t/how-do-i-set-values-to-a-zigbee-subdevice/83481/2 "2024-02-04T22:54:30Z")

</div>

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