How to configure separate things files for KNX

Hi,

I want to put my KNX channels into the separated thing files (lights, roller shutters, heating, etc) using the same IP KNX bridge. Is it possible?
Such a configuration is supported by PaperUI, but there is no information how to configure it using things files.

Regards
Andy

No, there is no way to separate knx things in Paper UI :slight_smile:

There is also no way to separate things that belong to the same bridge in *.things files.

On the other hand, imho this separation is neither needed nor meaningful.
As the bridge is the representation of the gateway to the bus and the things are the representation of the devices which belong to the bus, it’s a really nice separation to keep them together in one file.

It’s very ok to separate the items, though, to different files.

Hi,

In Paper UI it is possible. You can create many devices and connect them to KNX bus by one bridge.
I have such configuration. E.g. you can have each KNX device as a single thing with its channels.

No, you have defined different Things, this is also possible in a things file, but you asked for separated things files.

Sure, it could be confusing. Of course I meant configuration of different things.
Can you give me example how to configure different things (knx devices) in things file?

That’s easy:

Bridge knx:ip:bridge "Label of Bridge" [
    ipAddress="ip or fqdn",
    localIp="ip.of.your.openhab-computer",  //no fqdn here, as this would be resolved to 127.0.0.1
    type="TUNNEL", //or ROUTER
    portNumber=3671, 
    readingPause=50,
    responseTimeout=10,
    readRetriesLimit=3,
    autoReconnectPeriod=60,
    localSourceAddress="0.0.0"  // this physical address must be unused (even used by tunnel is not allowed!)
]
 {
    Thing device firstThing "Label of Thing" [
        address="1.1.1",
        fetch=false,
        pingInterval=600,
        readInterval=0
    ] {
          Type switch : ch1 "Channel 1" [ga="1/1/1+<1/1/2"]
          Type switch : ch2 "Channel 2" [ga="1/1/3+<1/1/4"]
          Type switch : ch3 "Channel 3" [ga="1/1/5+<1/1/6"]
      }
    Thing device secondThing "Label of Thing" [
        address="1.1.2",
        fetch=false,
        pingInterval=600,
        readInterval=0
    ] {
          Type switch : ch1 "Channel 1" [ga="1/2/1+<1/2/2"]
          Type switch : ch2 "Channel 2" [ga="1/2/3+<1/2/4"]
          Type switch : ch3 "Channel 3" [ga="1/2/5+<1/2/6"]
      }
    Thing device thirdThing "Label of Thing" [
        address="1.1.3",
        fetch=false,
        pingInterval=600,
        readInterval=0
    ] {
          Type switch : ch1 "Channel 1" [ga="1/3/1+<1/3/2"]
          Type switch : ch2 "Channel 2" [ga="1/3/3+<1/3/4"]
          Type switch : ch3 "Channel 3" [ga="1/3/5+<1/3/6"]
      }
 }

keep in mind, that every bridge Name must be unique as bridge name, and every thing name must be unique as thing name. In contrary the Names of channels may only be unique within the thing itself

Thanks, it works :slight_smile: