# Moes BHT-002 Thermostat - Zigbee - Unable control via Node-RED

**URL:** https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646
**Category:** General
**Created:** [23 February 2023 17:19 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646 "2023-02-23T17:19:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dazza9075](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dazza9075/32/76614_2.png) [@dazza9075](https://discourse.nodered.org/u/dazza9075)
#### Post date: [23 February 2023 17:19 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/1 "2023-02-23T17:19:22Z")

</div>

Hi all, forgive me for my bumbling but i am at a loss what to do next  
I have installed and connected the following thermostat

> **[Moes BHT-002-GCLZB control via MQTT | Zigbee2MQTT](https://www.zigbee2mqtt.io/devices/BHT-002-GCLZB.html#moes-bht-002-gclzb)**
>
> Integrate your Moes BHT-002-GCLZB via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.

I am able to control the Thermostat via Z2M and HA.

Node-RED / MQTT explorer pickes up the the following MQTT messages

`"child_lock":"UNLOCK","current_heating_setpoint":18,"deadzone_temperature":3,"heat":"OFF","linkquality":105,"local_temperature":16,"local_temperature_calibration":0,"max_temperature_limit":21,"min_temperature_limit":null,"preset":"hold","preset_mode":"hold","running_state":"idle","sensor":"IN","system_mode":"heat"}`

However publishing a message via Node-RED or Explorer does not produce any result.  
I suspect this is something that Z2M and HA have baked in to their setup for correctly send the message but im at a loss how to get this working.

Youtube videos suggest adjusting "system\_mode" between (heat:off) works but ive had no success.  
I do see the following line in the debug log that might shed some light but again im new to this, a nudge in the right direction would be useful!

`Received Zigbee message from 'Thermostat Kitchen', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,18],"type":"Buffer"},"datatype":2,"dp":16}],"seq":51272}' from endpoint 1 with groupID 0`

Thank you for your time and support.

Darren

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 February 2023 17:22 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/2 "2023-02-23T17:22:20Z")

</div>

You should be able to send a message to mqtt:

```auto
topic: zigbee2mqtt/<friendly name of device>/set

payload: {"system_mode": "heat"}
or
payload: {"system_mode": "off"}

to change the temperature use:

payload: {"current_heating_setpoint": <somevalue>}

```

---

<div class="post-metadata">

### Author: ![dazza9075](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dazza9075/32/76614_2.png) [@dazza9075](https://discourse.nodered.org/u/dazza9075)
#### Post date: [23 February 2023 20:41 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/3 "2023-02-23T20:41:57Z")

</div>

I can send the messages, it just doesnt do anything, so below is the inject and thje debug output, you can see the object being publised but the subsequent updates shows it didnt actually change.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f2b6b6bd398aa63c44e7720dfa7813192d18f1c.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d81440957b93ca5326836898a83e11ca81b9e08.png)

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 February 2023 21:03 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/4 "2023-02-23T21:03:59Z")

</div>

> [@dazza9075](#):
>
> it just doesnt do anything

Well, heating\_setpoint is: 22, local temp is 21, so there is nothing to do ?

---

<div class="post-metadata">

### Author: ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)
#### Post date: [23 February 2023 21:09 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/5 "2023-02-23T21:09:18Z")

</div>

`msg.topic` should be `zigbee2mqtt/Thermostat Kitchen/set`

`system_mode: Mode of this device. To control publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"system_mode": VALUE} where VALUE is one of: off, heat. To read send a message to zigbee2mqtt/FRIENDLY_NAME/get with payload {"system_mode": ""}`

---

<div class="post-metadata">

### Author: ![dazza9075](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dazza9075/32/76614_2.png) [@dazza9075](https://discourse.nodered.org/u/dazza9075)
#### Post date: [23 February 2023 21:49 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/6 "2023-02-23T21:49:32Z")

</div>

Cheers mate, that would have been a problem at the time if it wasnt for the topic issue, hadnt noticed the temp rise up which would have confused me even more! I shall bank that one as im sure it will not be the first time i try get it to heat when its already hot!

---

<div class="post-metadata">

### Author: ![dazza9075](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dazza9075/32/76614_2.png) [@dazza9075](https://discourse.nodered.org/u/dazza9075)
#### Post date: [23 February 2023 21:51 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/7 "2023-02-23T21:51:02Z")

</div>

Spot on, , added the /set to the topic and off it went (after increasing the temp set point!)  
Thank you both for your quick support

---

<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: [9 March 2023 21:52 UTC](https://discourse.nodered.org/t/moes-bht-002-thermostat-zigbee-unable-control-via-node-red/75646/8 "2023-03-09T21:52:00Z")

</div>

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