# No update in Domoticz

**URL:** https://discourse.nodered.org/t/no-update-in-domoticz/8725
**Category:** General
**Created:** [7 March 2019 20:58 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725 "2019-03-07T20:58:17Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Accelerator](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Accelerator](https://discourse.nodered.org/u/Accelerator)
#### Post date: [7 March 2019 20:58 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/1 "2019-03-07T20:58:17Z")

</div>

This basic project is to support multiple sensors to communicate via Node-Red to Domoticz.  
Sensors

> ESP8862 \> MQTT \> Node-Red \> MQTT \> Domoticz  
> The sample flow works fine till the moment that Node-Red has to update a variable in Domoticz.

````auto
type or paste code here
```[{"id":"738d2506.c6d1cc","type":"debug","z":"582c68b5.350268","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":490,"y":220,"wires":},{"id":"7b557eca.a619f","type":"mqtt in","z":"582c68b5.350268","name":"","topic":"temperature_topic","qos":"2","broker":"a693e4e6.945728","x":130,"y":180,"wires":[["97af2374.45b52","fa710cbd.f1788"]]},{"id":"97af2374.45b52","type":"debug","z":"582c68b5.350268","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":370,"y":120,"wires":},{"id":"473054c0.899f9c","type":"mqtt out","z":"582c68b5.350268","name":"","topic":"Domoticz/in","qos":"0","retain":"","broker":"a693e4e6.945728","x":490,"y":360,"wires":},{"id":"fa710cbd.f1788","type":"function","z":"582c68b5.350268","name":"temperatuur dht11","func":"msg.payload = {\n "idx":29,\n "nvalue":0,\n "svalue":"12.1"};\nreturn msg;\n","outputs":1,"noerr":0,"x":290,"y":280,"wires":[["473054c0.899f9c","738d2506.c6d1cc"]]},{"id":"a693e4e6.945728","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

The ESP is reading the DHT22 temperature sensor, brings it into the Node-Red flow and 
there it stucks. The temperature_topic shows the right value in the msg.payload/debug screen.
The function node, with the following dscription, is not able to transfer the data into Domoticz.
 msg.payload = {
    "idx":29,
    "nvalue":0,
    "svalue":"12.1"};
return msg;
With the following statement in Putty I am able to preform that action with any problem.

mosquitto_pub -h localhost -m '{"idx" :29,"nvalue":0 ,"svalue":"99.0"}' -t 'domoticz/in'

Any idea what I do wrong?
Thanks in advance.

![mqtt%20error|690x260](upload://5SYyF644xYcGXkl4YEvZFsz4ZYI.png)
````

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [7 March 2019 21:22 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/2 "2019-03-07T21:22:23Z")

</div>

Please read [https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)  
and edit your post to make your flow importable

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 March 2019 21:36 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/3 "2019-03-07T21:36:56Z")

</div>

> [@Accelerator](#):
>
> mosquitto\_pub -h localhost -m '{"idx" :29,"nvalue":0 ,"svalue":"99.0"}' -t 'domoticz/in'

and

> [@Accelerator](#):
>
> "topic":"Domoticz/in",

See anything different?

---

<div class="post-metadata">

### Author: ![Accelerator](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Accelerator](https://discourse.nodered.org/u/Accelerator)
#### Post date: [8 March 2019 08:52 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/4 "2019-03-08T08:52:34Z")

</div>

Colin,  
The first statement in PUTTY works fine, it updates the Temparature variable in Domoticz.  
The code in the Node-Red function gives no reaction in Domoticz.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [8 March 2019 08:56 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/5 "2019-03-08T08:56:38Z")

</div>

domoticz/in and Domoticz/in' are NOT the same.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [8 March 2019 09:04 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/6 "2019-03-08T09:04:00Z")

</div>

> [@Colin](#):
>
> mosquitto\_pub -h localhost -m '{"idx" :29,"nvalue":0 ,"svalue":"99.0"}' -t 'domoticz/in'

Yes, that works, but does  
mosquitto\_pub -h localhost -m '{"idx" :29,"nvalue":0 ,"svalue":"99.0"}' -t 'Domoticz/in'

---

<div class="post-metadata">

### Author: ![Accelerator](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Accelerator](https://discourse.nodered.org/u/Accelerator)
#### Post date: [8 March 2019 10:00 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/7 "2019-03-08T10:00:38Z")

</div>

Colin,  
Sorry, but the statement with the capital D in Domoticz doesn't work.  
Any other ideas?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [8 March 2019 10:04 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/8 "2019-03-08T10:04:09Z")

</div>

@Accelerator you are publishing to `domotiz/in` - but you are subscribed to `Domotiz/in`.  
So Node-RED is subscribed to a _different topic_ to what you're publishing to.

Have you tried publishing and subscribing to the _same_ topic?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 March 2019 10:16 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/9 "2019-03-08T10:16:26Z")

</div>

Or subscribe using the MQTT wildcard to see all published messages

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [8 March 2019 10:20 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/10 "2019-03-08T10:20:06Z")

</div>

> [@Accelerator](#):
>
> Sorry, but the statement with the capital D in Domoticz doesn't work

Of course not, that is the whole point. You said that it works if you publish with a lower case d, but in the node red flow you are publishing with upper case D. Change the flow to use lower case and it should work.

---

<div class="post-metadata">

### Author: ![Accelerator](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Accelerator](https://discourse.nodered.org/u/Accelerator)
#### Post date: [8 March 2019 12:27 UTC](https://discourse.nodered.org/t/no-update-in-domoticz/8725/11 "2019-03-08T12:27:56Z")

</div>

Gentlemen thank you for the quick reponses, problem solved
