Problems connecting to KNX environment

2,650 views
Skip to first unread message

Gianluca Ferri

unread,
Jan 15, 2013, 1:00:11 PM1/15/13
to ope...@googlegroups.com
Hi all,
I'm trying to connect openhab to a simple knx environment.
I was given it already configured, and I don't know very much of KNX. Anyway I figured out the GAs I need.
From ETS4, in group monitoring, I can send commands to GAs and the system responds as expected.

Now with openhab:
If I setup the knx type as ROUTER it finds the gateway (it does not when setting the port directly).

Now if I send commands to device, openhab console says it all went ok, but nothing happens on the devices.
The state in openhab is changed to whatever I asked to set, but no change on the device side.
Configuring devices with < gives timeout errors, as reported in the fixed issue.
I worked with 1.0.0 and 1.1.0, and I'm looking forward to try the bleeding edge version.
Unfortunately I can't check the system till next week, but I need some hints on this.

Here is my device configuration:
/* KNX items */
Switch DemoKNXSwitch               "Switch" {knx="<0/0/2+0/0/1"}  
Number KNXTemperature              "Temperature [%.1f °C]" <temperature> {knx="<0/0/4"}

I also tryed without the '<' and adding another switch for 0/0/1

0/0/1 is one of the 4 buttons in a panel
0/0/2 is a terminal of an actuator, bound to 0/0/1 in KNX
0/0/4 is the current temperature of a thermostat

Thank you very much!

Cheers,
Gianluca




Victor Belov

unread,
Jan 15, 2013, 2:12:27 PM1/15/13
to ope...@googlegroups.com
Hi,

First of all. Which gateway (Vendor, model) do you use and which interface (USB, serial, Ethernet/IP) do you use to connect it to openHAB?
Can you show us console log during openHAB startup process?

Best regards,
Victor Belov






--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/-TFKVDAjNk4J.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

Gianluca Ferri

unread,
Jan 16, 2013, 5:21:15 AM1/16/13
to ope...@googlegroups.com
Hi,
I'm connecting using a Schneider MTN680329 IP router.

The relevant parts I found in the log are following. Unfortunately, I didn't have found tracks of the behaviour of the send command, anyway I get a nice response like "DemoKNXSwitch correctly set to ON" but nothing happens on the device.

Thank you very much!
Gianluca

16:40:34.287 WARN  o.o.c.core.ConfigDispatcher[:192]- Main openHAB configuration file 'configurations/openhab.cfg' does not exist.
16:40:34.599 INFO  o.o.c.internal.CoreActivator[:90]- openHAB runtime has been started (v1.1.0).
16:40:35.488 INFO  o.o.b.k.i.c.KNXConnection[:176]- Established connection to KNX bus on 224.0.23.12:3671 in mode ROUTER.
16:40:36.018 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'demo.items'
16:40:36.065 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
16:40:36.081 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
16:40:36.081 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
16:40:36.096 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
16:40:37.578 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
16:40:37.594 INFO  o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server._tcp.local. at port 8080
16:40:44.442 INFO  o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server-ssl._tcp.local. at port 8443
16:40:46.221 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'demo.sitemap'
16:40:46.283 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'KNXTemperature' from KNX bus: timeout waiting for group read response
16:40:46.314 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'demo.script'
16:40:47.250 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
16:40:56.361 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'DemoKNXSwitch' from KNX bus: timeout waiting for group read response
16:40:59.767 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'demo.rules'

16:41:10.324 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'KNXTemperature' from KNX bus: timeout waiting for group read response
16:41:33.569 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'DemoKNXSwitch' from KNX bus: timeout waiting for group read response
16:41:44.655 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'KNXTemperature' from KNX bus: timeout waiting for group read response
16:41:54.719 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'DemoKNXSwitch' from KNX bus: timeout waiting for group read response

16:42:05.799 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'KNXTemperature' from KNX bus: timeout waiting for group read response
16:42:15.866 WARN  o.o.b.k.i.bus.KNXBinding[:461]- Cannot read value for item 'DemoKNXSwitch' from KNX bus: timeout waiting for group read response

Victor Belov

unread,
Jan 16, 2013, 8:24:54 AM1/16/13
to ope...@googlegroups.com
Hi,

Ok, can you try to configure it to work in Tunnel mode to determine if it is a gateway or openhab-gateway problem? I would also recommend to create openhab.cfg in your configurations/ to do that :-)

Best regards,
Victor Belov

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/NB4AKQ-qprwJ.

Gianluca Ferri

unread,
Jan 16, 2013, 11:22:27 AM1/16/13
to ope...@googlegroups.com
Hi Victor,
as I sad before, I couldn't manage to make it work in TUNNEL mode.
I tried setting the ip to both 192.168.1.10 (the local ip) and 224.0.23.12 but this way connection fails.

in my attempts I used both openhab_defaults.cfg and openhab.cfg but i found no difference.

What is the difference between ROUTER and TUNNEL modes? Does openhab behave differently with these two modes, once it gets connected?

Again, thank you very much,
Gianluca


2013/1/16 Victor Belov <belov...@gmail.com>

Victor Belov

unread,
Jan 16, 2013, 12:29:04 PM1/16/13
to ope...@googlegroups.com
Hi,

The difference is in the way knx lib communicates with gateway. What is ip address of your knx gateway device?

Sent from my iPhone

Gianluca Ferri

unread,
Jan 16, 2013, 3:19:56 PM1/16/13
to ope...@googlegroups.com
It has 2 addresses: 192.168.1.123, which I can ping, and 224.0.23.12 which is wht KNX finds in ROUTER mode.
The latter is also written in the router documentation, so it seems openhab in router mode gets it right.
Gianluca

Victor Belov

unread,
Jan 16, 2013, 3:38:24 PM1/16/13
to ope...@googlegroups.com
Hi,

224.0.23.12 is a multicast group address, which is used by KNX protocol to communicate in Router mode, so you can't effectively ping it, it is not owned by any of devices, instead devices which want to talk to each other using this multicast address join this group.
So can you please configure your gateway into Tunnel mode using ETS and then set the following in openhab.cfg:
knx:ip=192.168.1.123
knx:type=TUNNEL
knx:localIp=<set ip address of the computer you run openhab on here>

and then start openhab and show me the console output.

Best regards,
Victor Belov

Victor Belov

unread,
Jan 20, 2013, 10:23:16 AM1/20/13
to ope...@googlegroups.com
Hi,

have you had any progress on that?

Best regards,
Victor Belov

Gianluca Ferri

unread,
Jan 21, 2013, 3:07:49 AM1/21/13
to ope...@googlegroups.com
Hi, sorry for the delay. I can't try this till tomorrow. I bet you'll hear from me soon :-)
Thank you!
Gianluca


2013/1/20 Victor Belov <belov...@gmail.com>

Gianluca Ferri

unread,
Jan 22, 2013, 4:34:07 AM1/22/13
to ope...@googlegroups.com
Here I am!
It finally works! Setting the localIp did the trick.
I know one with the sufficient amount of wit should get it himself, but in order to free some spare time of yours, I suggest writing some lines in the KNXBinding wiki page.
Something like: if the system doesn't work in ROUTER mode (even if it says it's connected), try TUNNEL mode settin both the ip of the KNX gateway and the localIp.

I have another question, though: what should one do when more than one KNX/IP gateway is present on the same network? It is right to suppose that only one of them whould act as "master"?

Thank you very much, you've been very kind!

Best regards,
Gianluca


2013/1/21 Gianluca Ferri <glf...@gmail.com>

Victor Belov

unread,
Jan 22, 2013, 4:56:46 AM1/22/13
to ope...@googlegroups.com
Hi,

Technically several IP/KNX gateways can only operate in ROUTER mode on the same network. This is the only way it could work. The difference is that TUNNEL mode is just a way of getting a tip on the KNX bus. IP is just an interface in this case, like USB. ROUTER mode is very different cause the IP network is treated as part of KNX bus infrastructure, and KNX devices, not only ROUTERs (thought I've never seen KNX/IP sensors or actuators yet), operate over IP as over one of possible medias. In such a configuration, openHAB should be able to operate with several gateways at once, but I'm afraid we didn't see any installations like that yet.

Best regards,
Victor Belov

Kai Kreuzer

unread,
Jan 23, 2013, 5:49:17 PM1/23/13
to ope...@googlegroups.com

Andrzej Szymkowicz

unread,
Jan 21, 2015, 11:43:34 AM1/21/15
to ope...@googlegroups.com
Hi Victor,

I would be very grateful if you could look at my case:

I would like to send the information about temperature (netatmo binding) by openhab to Gira HS connected to KNX  (using knx binding). In the same time I would also like to control devices in the KNX by openhab.

Gira HS and openhab connect to knx by eibd. In Gira HS is created communication object  (e.g. 1/1/1) for storing and presenting temperature from netatmo, and this communication object is only in Gira HS (there is no such GA created in ETS).

Problem:

When openhab is connected to KNX (via eibd) in ROUTING mode, information about temperature is sent to Gira HS properly but it is not possible to control KNX devices - commands are sent but nothing is happening.

When openhab is connected to KNX in TUNNELING mode, information about temperature is not sent to Gira HS (or Gira HS is not able receive it), but it is possible to control KNX devices. 

Another words, openhab is not able to control KNX devices and send temperature to Gira HS in the same time.

Gira HS is connected to KNX (via eibd) in ROUTING mode (only this option is available) and easily can operate on KNX devices

eibd configuration: EIBD_OPTIONS="-d -D -T -R -S -i -u --eibaddr=0.0.128 usb:$USBID"


Any ideas how to connect these two worlds?

Reply all
Reply to author
Forward
0 new messages