Issue of the topic: I,m “new” to KNX and totally new to openHab. I connected my laptop with the KNX router (MDT SCN-IP100.3) and managed to connect in openHab with the router (add the router as a Thing via KNX Binding).
But now I’m stuck and don’t find how to connect an Item (switch) to my KNX installation so it can put a light on and off (by example). What am I’ missing? If i want to link my Item to a channel, openHab says: This thing has no channels. Either the thing type doesn’t define channels, or they may be detected and appear later.
So how do I “add” channels to my router, or how do I say to my switch how to switch on a specific light?
You have to create Things linked to the Gateway you just created (your router).
If you are doing it through OH3 UI, go to the gateway, add a Thing: use one of your actuators as Thing. It would eventually show the channel.
I’m not home or I could copy some screenshots…
One the Gateway is online create a KNX Device via the binding. (Gateway is working as bridge).
Afterwards when the knx device is online you can create all different channels behind.
I have similar issue:
IP Tunnel Online but device Offline. Have tried different variations. Added a channel manually.
My Knx have worked well before with OH 2.0 - 2.5
After an evening full of aaarrgh,… I made it work!
I think,… the problem is in the IP address as openhab_knx suggested.
My code is now (where you can see that the IP addresses are in the same range = 169.254.):
But, after a night of sleep… It just doesn’t work anymore… Actuator is offline again, router is online…
I didn’t do anything, didn’t even shut down my pc…
I’m now pretty sure it’s a network issue and will start to buy a router and switch to fix that…
I’ve seen similar behaviour in my system. For me to get things working I’ve had to set the gateway to “router” and did not set the address of the actuator things. I don’t think it matters because unless you are trying to fetch the channel setup from the device, the local address of your KNX equipment is not used in the communication.
I’m actually rethinking my OH setup such that follows the ontology more. E.g. defining the channels into different things, with each thing corresponding to an “equipment”. Not quite sure how to do it yet. Any input is appreciated.
(the default knx router IP is 224.0.23.12, as documented here, that why it looks to be in a different subnet)
169.254.x.x addresses mean your device hasn’t been allocated an IP address. You need to set the IP address of your IP/KNX interface in ETS or ensure you have DHCP on your network.
DHCP is preferred so long as you statically assign the IP address to your gateway ensuring it doesn’t change.
I am continually wrestling with this. To start I had everything with a single thing. Then, I moved to a thing for every KNX device.
Both work, but now I am considering whether everything should follow a function orientation approach as I have been experimenting with functions in ETS…!