Help with udp-json sensor binding

Hi

I do not understand my error: I have a sensor that send JSON data to openhab via UDP datagram… a simple {“sensor”:“primo”,“t”:“27.2”,“h”:“52.6”,“p”:“16”}

in the items file I wrote

Number Temperature_Ho_Camera “Temperature [%.1f °C]” (gHo_Camera, Temperature, Camera) {udp="<[192.168.0.200:*:JSONPATH($.t)]"}
Number Humidity_Ho_Camera “Humidity [%.1f %]” (gHo_Camera, Humidity, Camera) {udp="<[192.168.0.200:*:JSONPATH($.h)]"}
Number Presence_Ho_Camera “Presence [%.1f ]” (gHo_Camera, Presence, Camera) {udp="<[192.168.0.200:*:JSONPATH($.p)]"}

but in the log I have got this
2016-09-15 15:03:49.175 [WARN ] [AbstractDatagramChannelBinding] - Received data {“sensor”:“primo”,“t”:“27.2”,“h”:“52.6”,“p”:“16”}
from an undefined remote end /192.168.0.200:18241. We will not process it
2016-09-15 15:03:49.177 [WARN ] [AbstractDatagramChannelBinding] - No channel is active or defined for the data we received from /192.168.0.200:18241. It will be discarded.

I don not understand what means "No channel is active or defined for the data we received"
I had read some old posts e the json wiki page, but without result

someone can help me?
Ale

Have you any UDP configuration in openhab.cfg? It would seem like it might be needed.

This might be relevant

this is my UDP configuration in openhab.cfg

Port to listen for incoming connections

udp:port=5015
udp:queue=true
udp:buffersize=1024
udp:itemsharedconnections=true
udp:bindingsharedconnections=true
udp:directionssharedconnections=false
udp:addressmask=true
udp:postamble=\n
udp:blocking=false
udp:updatewithresponse=true
udp:refreshinterval=250
udp:updatewithresponse=true
udp:refreshinterval=250
udp:selecttimeout=1000
udp:charset=ASCII

If i don’t specify an IP addr, how can I receive data from different sensors ??

ok after 100K tests and changes…

IT’S WORKING!!

I changed openhab.cfg & items file so i’m not sure about the solution, but it works.

thanks

Ale

Would You Kindly Post The Working Configuration Details ? :slight_smile:

yeS oF coursE

the openhab.cfg section

################################# TCP - UDP Binding ###################################
udp:port=5015
udp:queue=true
udp:buffersize=1024
tcp:addressmask=true
udp:addressmask=true
udp:postamble=
udp:blocking=false
udp:updatewithresponse=true
udp:refreshinterval=250
udp:selecttimeout=1000
udp:charset=ASCII

and the items

/* sensor udp-json */
Number Temperature_Ho_Camera  "Temperature  [%.1f °C]" <temperature>  (gHo_Camera, Temperature, Camera) {udp="<[192.168.0.200:*:JSONPATH($.t)]"}
Number Humidity_Ho_Camera  "Humidity  [%.1f %%]" <temperature>  (gHo_Camera, Humidity, Camera) {udp="<[192.168.0.200:*:JSONPATH($.h)]"}
Number Presence_Ho_Camera  "Presence  [%d ]" <temperature>  (gHo_Camera, Presence, Camera) {udp="<[192.168.0.200:*:JSONPATH($.p)]"}

This topic about OH1 or OH2?