Temp sensor values not updated

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
zerobase
Posts: 2
Joined: Tuesday 29 December 2015 16:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Temp sensor values not updated

Post by zerobase »

I have a DS18B20 connected to an ESP8266 (ESP12F; running the ESP Easy firmware). The ESP is spitting out temperature readings from the DS18B20, but they are not appearing in Domoticz (Version 2.3530; running on a raspberry Pi).

From a tcpdump I can see what command the ESP is sending to Domoticz:

Code: Select all

14:00:49.399149 IP 192.168.1.181.4213 > 192.168.1.3.8080: Flags [P.], seq 1:115, ack 1, win 5840, length 114
        0x0000:  4500 009a 06e6 0000 ff06 306f c0a8 01b5  E.........0o....
        0x0010:  c0a8 0103 1075 1f90 0045 589d 28ae dedb  .....u...EX.(...
        0x0020:  5018 16d0 925e 0000 4745 5420 2f6a 736f  P....^..GET./jso
        0x0030:  6e2e 6874 6d3f 7479 7065 3d63 6f6d 6d61  n.htm?type=comma
        0x0040:  6e64 2670 6172 616d 3d75 6465 7669 6365  nd&param=udevice
        0x0050:  2669 6478 3d31 3430 3531 2673 7661 6c75  &idx=14051&svalu
        0x0060:  653d 3137 2e31 3220 4854 5450 2f31 2e31  e=17.12.HTTP/1.1
        0x0070:  0d0a 486f 7374 3a20 3139 322e 3136 382e  ..Host:.192.168.
        0x0080:  312e 330d 0a43 6f6e 6e65 6374 696f 6e3a  1.3..Connection:
        0x0090:  2063 6c6f 7365 0d0a 0d0a                 .close....
The full command: http://domoticzserver/json.htm?type=com ... alue=17.12

However, Domoticz is responding back with a status: ERR:

Code: Select all

14:00:49.400882 IP 192.168.1.3.8080 > 192.168.1.181.4213: Flags [P.], seq 1:185, ack 115, win 29200, length 184
        0x0000:  4500 00e0 fb1c 4000 4006 baf2 c0a8 0103  E.....@.@.......
        0x0010:  c0a8 01b5 1f90 1075 28ae dedb 0045 590f  .......u(....EY.
        0x0020:  5018 7210 84db 0000 4854 5450 2f31 2e31  P.r.....HTTP/1.1
        0x0030:  2032 3030 204f 4b0d 0a43 6f6e 7465 6e74  .200.OK..Content
        0x0040:  2d4c 656e 6774 683a 2032 340d 0a43 6f6e  -Length:.24..Con
        0x0050:  7465 6e74 2d54 7970 653a 2061 7070 6c69  tent-Type:.appli
        0x0060:  6361 7469 6f6e 2f6a 736f 6e3b 6368 6172  cation/json;char
        0x0070:  7365 743d 5554 462d 380d 0a43 6163 6865  set=UTF-8..Cache
        0x0080:  2d43 6f6e 7472 6f6c 3a20 6e6f 2d63 6163  -Control:.no-cac
        0x0090:  6865 0d0a 5072 6167 6d61 3a20 6e6f 2d63  he..Pragma:.no-c
        0x00a0:  6163 6865 0d0a 4163 6365 7373 2d43 6f6e  ache..Access-Con
        0x00b0:  7472 6f6c 2d41 6c6c 6f77 2d4f 7269 6769  trol-Allow-Origi
        0x00c0:  6e3a 202a 0d0a 0d0a 7b0a 2020 2022 7374  n:.*....{...."st
        0x00d0:  6174 7573 2220 3a20 2245 5252 220a 7d0a  atus".:."ERR".}.
Trying to run the same command in a browser also gives an error/

I have configured Domoticz to allow non username/password protected connections from the local subnet.

Anyone have a further idea what is preventing Domoticz from displaying the temperature updates? Is the command from the ESP formatted wrong?
SweetPants

Re: Temp sensor values not updated

Post by SweetPants »

Did you supply the portnumber the domoticzserver is running on? <ip:port>

Just tested this and I get

{
"status" : "OK",
"title" : "Update Device"
}

using 2.4598
zerobase
Posts: 2
Joined: Tuesday 29 December 2015 16:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Temp sensor values not updated

Post by zerobase »

Just found the problem.

In the devices tab there are two colums: IDX (column 2) and ID (Colum 4). Guess what, I configured the value for ID in the ESP instead of that of IDX ...

It is working now!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest