# Tuya thermostat in google home (NORA)

**URL:** <https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525>\
**Category:** General\
**Created:** [12 March 2021 05:09 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525 "2021-03-12T05:09:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [12 March 2021 05:09 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/1 "2021-03-12T05:09:01Z")

</div>

Hi,  
I want my tuya thermostat with zigbee2mqtt in google home with node red nora, but dont no how to do this.  
I only need set temperature and temperature reading.

If i change the temperature on the thermostat then i get this topic:  
zigbee2mqtt/RadiatorGang And output is then:  
{"auto\_lock":"MANUAL","away\_mode":"OFF","away\_preset\_days":1,"away\_preset\_temperature":15,"battery\_low":false,"boost\_time":300,"child\_lock":"UNLOCKED","comfort\_temperature":20,"current\_heating\_setpoint":21,"eco\_temperature":15,"force":"normal","holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"linkquality":84,"local\_temperature":16,"local\_temperature\_calibration":-1,"max\_temperature":35,"min\_temperature":5,"position":100,"preset":"manual","system\_mode":"auto","week":"5+2","window\_detection":"OFF","window\_detection\_params":{"minutes":196,"temperature":125},"workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}]}

And when i change the temperature from domoticz i get this topic:

zigbee2mqtt/RadiatorGang/set  
And output is:  
{"current\_heating\_setpoint": 21.0}

Can someone help me?  
Thanks

---

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [13 March 2021 19:55 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/2 "2021-03-13T19:55:48Z")

</div>

Cant no one help?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 March 2021 20:11 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/3 "2021-03-13T20:11:42Z")

</div>

NOTE: your question is fairly unclear - so i could be a million miles off what you really want.

> [@edwin1234](#):
>
> I only need set temperature and temperature reading.

So take them items from the payload.

![rbl1ymeAnX](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/178f4002900a8636cd295dd37710afc37e401f19.gif)

Demo flow

```auto
[{"id":"4fc7725b.eca30c","type":"inject","z":"b872cb4b.5a6448","name":"zigbee2mqtt/RadiatorGang","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"zigbee2mqtt/RadiatorGang","payload":"{\"auto_lock\":\"MANUAL\",\"away_mode\":\"OFF\",\"away_preset_days\":1,\"away_preset_temperature\":15,\"battery_low\":false,\"boost_time\":300,\"child_lock\":\"UNLOCKED\",\"comfort_temperature\":20,\"current_heating_setpoint\":21,\"eco_temperature\":15,\"force\":\"normal\",\"holidays\":[{\"hour\":6,\"minute\":0,\"temperature\":20},{\"hour\":8,\"minute\":0,\"temperature\":15},{\"hour\":11,\"minute\":30,\"temperature\":15},{\"hour\":12,\"minute\":30,\"temperature\":15},{\"hour\":17,\"minute\":30,\"temperature\":20},{\"hour\":22,\"minute\":0,\"temperature\":15}],\"linkquality\":84,\"local_temperature\":16,\"local_temperature_calibration\":-1,\"max_temperature\":35,\"min_temperature\":5,\"position\":100,\"preset\":\"manual\",\"system_mode\":\"auto\",\"week\":\"5+2\",\"window_detection\":\"OFF\",\"window_detection_params\":{\"minutes\":196,\"temperature\":125},\"workdays\":[{\"hour\":6,\"minute\":0,\"temperature\":20},{\"hour\":8,\"minute\":0,\"temperature\":15},{\"hour\":11,\"minute\":30,\"temperature\":15},{\"hour\":12,\"minute\":30,\"temperature\":15},{\"hour\":17,\"minute\":30,\"temperature\":20},{\"hour\":22,\"minute\":0,\"temperature\":15}]}","payloadType":"json","x":1530,"y":760,"wires":[["9b434cf5.6423c"]]},{"id":"1b5cb1c6.6ef91e","type":"change","z":"b872cb4b.5a6448","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.local_temperature","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1920,"y":720,"wires":[["728b5fae.01005"]]},{"id":"9b434cf5.6423c","type":"switch","z":"b872cb4b.5a6448","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"zigbee2mqtt/RadiatorGang","vt":"str"},{"t":"eq","v":"zigbee2mqtt/RadiatorGang/set","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1730,"y":780,"wires":[["1b5cb1c6.6ef91e","d2d4bc09.fb7a7"],["d2d4bc09.fb7a7"]]},{"id":"9cb3460a.45f5e8","type":"inject","z":"b872cb4b.5a6448","name":"zigbee2mqtt/RadiatorGang/set","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"zigbee2mqtt/RadiatorGang/set","payload":" {\"current_heating_setpoint\": 21.0}","payloadType":"json","x":1520,"y":800,"wires":[["9b434cf5.6423c"]]},{"id":"728b5fae.01005","type":"debug","z":"b872cb4b.5a6448","name":"local_temperature","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1950,"y":760,"wires":[]},{"id":"d2d4bc09.fb7a7","type":"change","z":"b872cb4b.5a6448","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.current_heating_setpoint","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1900,"y":820,"wires":[["d9e62f6a.fe487"]]},{"id":"d9e62f6a.fe487","type":"debug","z":"b872cb4b.5a6448","name":"current_heating_setpoint","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1970,"y":860,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [13 March 2021 22:40 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/4 "2021-03-13T22:40:36Z")

</div>

> [@Steve-Mcl](#):
>
> `id`

Thank you very much for your help,  
What i want is the roomtemperature and set temperature from RadiatorGang with nora thermostat To show up in google home.  
Nora has differend nodes like swiches, dimmers and also a thermostat that can communicate with google home .  
I hope you know what i mean,if you have any questions just say so.  
Thanks  
Greetings  
Edwin

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [13 March 2021 23:27 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/5 "2021-03-13T23:27:10Z")

</div>

Hello Edwin,

You start to ask the same questions as on the Domoticz forum.  
See: [https://www.domoticz.com/forum/viewtopic.php?f=69&t=27588&p=270497#p270497](https://www.domoticz.com/forum/viewtopic.php?f=69&t=27588&p=270497#p270497)

You should first solve the issue that the Nora Thermostat node connects to Google.  
If that work, the connection of mode, temperature and setpoint is easy, as @Steve-Mcl has shown.

---

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [14 March 2021 05:22 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/6 "2021-03-14T05:22:18Z")

</div>

Yes, but the nora thermostat does not show connect, while my lamps do,  
So I thought it has something to do with the signal to the thermostat node. And im a noob at this stuff.  
I search for ours on the internet for a solution and thought u didnt no either.  
Thats why asked my question here.  
And dont get me wrong im thankfull for all the help.  
Ive tried all the settings in the nora thermostat node , but it just doesn’t show connect.  
Could it be that the thermostat node doesnt understand the payload?  
That it has to be written in another way?  
There is no themperature reading to see under the thermostat node in the flow.  
Hope u can help me a litle bit further  
Sorry for my english.

Greetings  
Edwin

---

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [14 March 2021 07:15 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/7 "2021-03-14T07:15:05Z")

</div>

Here’s some more information to make it clear.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e5680d71f802020e8e250b227bc1a67c6db21f64.png)

This is the flow :

```auto
[{"id":"758cd1dd.afc4c","type":"tab","label":"Test Zigbee2MQTT Tuya Thermostat","disabled":false,"info":""},{"id":"e6ce71c0.0d18d8","type":"inject","z":"758cd1dd.afc4c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"zigbee2mqtt/RadiatorGang/get","payload":" {\"auto_lock\":\"MANUAL\",\"away_mode\":\"OFF\",\"away_preset_days\":1,\"away_preset_temperature\":15,\"battery_low\":false,\"boost_time\":300,\"child_lock\":\"UNLOCKED\",\"comfort_temperature\":20,\"current_heating_setpoint\":22,\"eco_temperature\":15,\"force\":\"normal\",\"holidays\":[{\"hour\":6,\"minute\":0,\"temperature\":20},{\"hour\":8,\"minute\":0,\"temperature\":15},{\"hour\":11,\"minute\":30,\"temperature\":15},{\"hour\":12,\"minute\":30,\"temperature\":15},{\"hour\":17,\"minute\":30,\"temperature\":20},{\"hour\":22,\"minute\":0,\"temperature\":15}],\"linkquality\":84,\"local_temperature\":19,\"local_temperature_calibration\":-1,\"max_temperature\":35,\"min_temperature\":5,\"position\":100,\"preset\":\"manual\",\"system_mode\":\"auto\",\"week\":\"5+2\",\"window_detection\":\"OFF\",\"window_detection_params\":{\"minutes\":196,\"temperature\":125},\"workdays\":[{\"hour\":6,\"minute\":0,\"temperature\":20},{\"hour\":8,\"minute\":0,\"temperature\":15},{\"hour\":11,\"minute\":30,\"temperature\":15},{\"hour\":12,\"minute\":30,\"temperature\":15},{\"hour\":17,\"minute\":30,\"temperature\":20},{\"hour\":22,\"minute\":0,\"temperature\":15}]}","payloadType":"json","x":210,"y":80,"wires":[["e0045a59.0ea4c"]]},{"id":"3aa46e6b.6dc2da","type":"function","z":"758cd1dd.afc4c","name":"Function In Thermostaat","func":"msg.payload = {\n setpoint : msg.payload.current_heating_setpoint,\n temperature : msg.payload.local_temperature,\n mode : msg.payload.system_mode\n};\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","x":410,"y":140,"wires":[["b2fc0b15.d933"]]},{"id":"feb24a85.ce41d8","type":"function","z":"758cd1dd.afc4c","name":"Function Out Thermostaat","func":"var msg1 = {};\nvar msg2 = {};\n\nmsg1.topic = \"zigbee2mqtt/RadiatorGang/set\";\nmsg1.payload = {\n \"current_heating_setpoint\" : msg.payload.setpoint\n}\n\nmsg2.topic = \"zigbee2mqtt/RadiatorGang/set\";\nmsg2.payload = {\n \"mode\" : msg.payload.mode\n}\n\nreturn [[msg1,msg2]];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":960,"y":140,"wires":[["15cf31be.856ea6"]]},{"id":"e0045a59.0ea4c","type":"mqtt out","z":"758cd1dd.afc4c","name":"Out","topic":"","qos":"","retain":"","broker":"f9f13036.e28b58","x":370,"y":80,"wires":[]},{"id":"4bb52373.7cc4ac","type":"mqtt in","z":"758cd1dd.afc4c","name":"In","topic":"zigbee2mqtt/RadiatorGang/get","qos":"0","datatype":"json","broker":"f9f13036.e28b58","x":190,"y":140,"wires":[["3aa46e6b.6dc2da"]]},{"id":"b2fc0b15.d933","type":"nora-thermostat","z":"758cd1dd.afc4c","devicename":"Thermostaat","roomhint":"Gang","name":"Radiator Thermostaat","modes":"off,on,auto","unit":"C","topic":"","passthru":false,"commandOnly":false,"queryOnly":false,"bufferRangeCelsius":"2","nora":"6f52ea33.833a2c","x":680,"y":140,"wires":[["feb24a85.ce41d8"]]},{"id":"15cf31be.856ea6","type":"mqtt out","z":"758cd1dd.afc4c","name":"Out","topic":"","qos":"","retain":"","broker":"f9f13036.e28b58","x":1190,"y":140,"wires":[]},{"id":"f9f13036.e28b58","type":"mqtt-broker","name":"localhost","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"6f52ea33.833a2c","type":"nora-config","d":true,"name":"Nora Config","group":"Mendelssohn92","notify":false}] 

```

(Thanks to firewizzard)

Why doesnt show the thermostat node annything?

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [14 March 2021 09:49 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/8 "2021-03-14T09:49:59Z")

</div>

Good morning Edwin,

> [@edwin1234](#):
>
> Yes, but the nora thermostat does not show connect, while my lamps do,

I think that no one can can point you to the cause of your problem, but when I saw the flow, published above, it is fully clear to me:

Your Nora thermostat node is still configured with my Nora Config node. I see this, as there is a group configured in the Nora Config node, which is not yours. Sorry, that I did not indicate that in detail, but I thought you should be aware of this, as your lamps are functioning, that you should configure the same Nora Config node.

As you have more Config nodes available, click on the arrow after the config text field and select the other (working) Config node.  
If you have multiple, and don't know which one, click on a Nora node of the lamp and note the Config name. In the thermostat Nora node, select the same.

If you press "Deploy", you will probably see that you have one (some) unconfigured nodes.  
Press "See them here" and delete these.

If it is still a problem, send me a PM on the Domoticz forum board.

Regards

---

<div class="post-metadata">

**Author:** ![edwin1234](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@edwin1234](https://discourse.nodered.org/u/edwin1234)\
**Post date:** [14 March 2021 09:55 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/9 "2021-03-14T09:55:06Z")

</div>

Good morning firewizard52,  
Thats it, how stupid of my not to see this. Total noob here 😉

Thank u very much  
Also thanks for steve mcl for his explanation

---

<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:** [28 March 2021 09:55 UTC](https://discourse.nodered.org/t/tuya-thermostat-in-google-home-nora/42525/10 "2021-03-28T09:55:21Z")

</div>

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