I try to work with several files for my KNX defenitions and find out that i did not find the right syntax in the help documentation and in here.
I have created two KNX bridges, a router and a tunnel
For the ip adres when using Router you have to look at the multicast settings in your knx/ip device
the default KNX mulicast ip adres = 224.0.23.12
This can be different when working with different buildings/knx installations
knx_router.things :
Bridge knx:ip:router01 "KNX router" @ "Bridge"
[
ipAddress="224.0.23.12",
portNumber=3671,
localIp="192.168.3.162",
type="ROUTER",
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="0.0.0"
]
knx_1_1_6_tunnel.things :
Bridge knx:ip:tunnel01 "KNX tunnel" @ "Bridge"
[
ipAddress="192.168.3.157",
portNumber=3671,
localIp="192.168.3.162",
type="TUNNEL",
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="1.0.0"
]
Then i had problems with the syntax of a knx device into a different *.things file
Below the syntax you can find on the documentation pages
Thing <binding_id>:<type_id>:<thing_id> "Label" @ "Location" [ <parameters> ]
Below the syntax that works
knx_1_1_7.things :
Thing knx:device:knx0101007 "KNX_01_01_007" (knx:ip:tunnel01) @ "KNX"
[
address="1.1.7",
fetch=false,
pingInterval=300,
readInterval=3600
]
{
Type string : HuidigeToestand1 "Message" [ga="1/0/50"]
Type string : HuidigeToestand2 "Message" [ga="1/0/51"]
Type string : HuidigeToestand3 "Message" [ga="1/0/52"]
Type string : HuidigeToestand4 "Message" [ga="1/0/53"]
Type number : BuitenTemperatuur "Temperatuur" [ga="1/0/1"]
}
knx_1_1_7.items :
String HuidigeToestand1 "Bericht 1 [%s]" {channel="knx:device:knx0101007:HuidigeToestand1"}
String HuidigeToestand2 "Bericht 2 [%s]" {channel="knx:device:knx0101007:HuidigeToestand2"}
String HuidigeToestand3 "Bericht 3 [%s]" {channel="knx:device:knx0101007:HuidigeToestand3"}
String HuidigeToestand4 "Bericht 4 [%s]" {channel="knx:device:knx0101007:HuidigeToestand4"}
Number BuitenTemperatuur "Buiten temperatuur [%.1f °C]" {channel="knx:device:knx0101007:BuitenTemperatuur"}