Hello,
I’ve been using openHAB 1.8 with the UDP-Binding successfully. Now I’ve been trying to migrate to the current version of openHAB and get the UDP-Binding to work, to no avail.
This is my setup:
- Windows 10
- Zulu Java 11
- openHAB 3.3.0
- SmartHome/J TCP/UDP Binding 3.2.14
Documentation: TCP/UDP Binding
The installation of the binding worked well, no errors.
The configuration was done completely textual:
The thing is configured to receive UDP data on port 4000 which is sent from my heating system.
The channel uses an address filter with the IP of the heating system.
Thing tcpudp:receiver:string "my UDP Thing" [ localAddress="0.0.0.0", port="4000", protocol="UDP" ] {
Channels:
Type receiver-string : udpChannel "my UDP Channel" [ addressFilter="192.168.178.201:*" ]
}
An item is created and linked to the UDP channel of the UDP thing. The channel-ID was copied from the openHAB configuration web site.
String udpItem "my UDP Item" {channel="tcpudp:receiver:string:udpChannel"}
Also I’ve created a sitemap to see the results:
sitemap udp label="UDP" {
Frame label="UDP" {
Text item=udpItem label="UDP-String [%s]"
}
To check the result I use the openHAB → settings → things → channels → item web page (http://localhost:8080/settings/things/tcpudp:receiver:string/links/udpItem/udpChannel), the said sitemap and the log file.
All of them don’t show any update of the item. The log output doesn’t show any events. According to the openHAB web page its state is NULL.
The Windows firewall does not block incoming messages from the local network for Zulu Java 11.
I’m using Wireshark to check for messages from my heating system. And apparently the PC receives these messages:
- Source: 192.168.178.201
- Destination: 192.168.178.24
- Protocol: UDP
- Length: 401
- Scr Port: 4002
- Dst Port: 4000
Further I’ve installed another binding LuftDatenInfo to see if openHAB is receiving anything at all. This works well and the data from a randomly selected sensor is displayed and updated. This indicates that network traffic can be received by openHAB.
Now my question is why the UDP binding does not show any events or data.
I’d be very happy to get some insight about what’s wrong with my setup.
Thank you very much!
Cheers
Markus