Hi,
I am currently in the process of migrating to KNX2. I know late - but better than never.
I got almost everything working. Except sending openhab values to the knx bus.
The strange thing is for some values it is working, for others not.
My bridge config:
Bridge knx:ip:knxbridge "KNX Bridge" [
ipAddress="automation",
type="TUNNEL",
localIp="192.168.178.75",
useNAT=true,
autoReconnectPeriod=30,
localSourceAddr="0.0.0."] {
Thing device binaryOutput1 "Schaltaktor 1"[address="1.1.1"] {
Type switch : channel1 "Kanal 1" [ga="0/0/1+0/0/7"]
Type switch : channel2 "Kanal 2" [ga="0/0/2+0/0/8"]
Type switch : channel3 "Kanal 3" [ga="0/0/3+0/0/9"]
Type switch : channel4 "Kanal 4" [ga="0/0/4+0/0/10"]
Type switch : channel5 "Kanal 5" [ga="0/0/5+0/0/11"]
Type switch : channel6 "Kanal 6" [ga="0/0/6+0/0/12"]
}
Thing device binaryOutput2 "Schaltaktor 2"[address="1.1.2"] {
Type switch : channel1 "Kanal 1" [ga="0/1/1+0/1/7"]
Type switch : channel2 "Kanal 2" [ga="0/1/2+0/1/8"]
Type switch : channel3 "Kanal 3" [ga="0/1/3+0/1/9"]
Type switch : channel4 "Kanal 4" [ga="0/1/4+0/1/10"]
Type switch : channel5 "Kanal 5" [ga="0/1/5+0/1/11"]
Type switch : channel6 "Kanal 6" [ga="0/1/6+0/1/12"]
}
Thing device rollershutterOutput "Jalousieaktor"[address="1.1.3"]{
Type rollershutter : all "Alle Kanäle" [upDown="0/2/0", stopMove="0/2/2", position="0/2/3"]
Type rollershutter : channel1 "Kanal 1" [upDown="0/2/23", stopMove="0/2/24", position="0/2/30+<0/2/32"]
Type rollershutter : channel2 "Kanal 2" [upDown="0/2/52", stopMove="0/2/53", position="0/2/59+<0/2/61"]
Type rollershutter : channel3 "Kanal 3" [upDown="0/2/81", stopMove="0/2/82", position="0/2/88+<0/2/90"]
Type rollershutter : channel4 "Kanal 4" [upDown="0/2/110", stopMove="0/2/111", position="0/2/117+<0/2/119"]
Type rollershutter : channel5 "Kanal 5" [upDown="0/2/139", stopMove="0/2/140", position="0/2/146+<0/2/148"]
Type rollershutter : channel6 "Kanal 6" [upDown="0/2/168", stopMove="0/2/169", position="0/2/175+<0/2/177"]
Type rollershutter : channel7 "Kanal 7" [upDown="0/2/197", stopMove="0/2/198", position="0/2/204+<0/2/206"]
Type rollershutter : channel8 "Kanal 8" [upDown="0/2/226", stopMove="0/2/227", position="0/2/233+<0/2/235"]
}
Thing device rollershutterControl {
Type contact-control : reedChannel1 "Reed Kanal 1" [ga="0.003:0/2/45"]
Type contact-control : reedChannel2 "Reed Kanal 2" [ga="0.003:0/2/74"]
Type contact-control : reedChannel3 "Reed Kanal 3" [ga="0.003:0/2/103"]
Type contact-control : reedChannel4 "Reed Kanal 4" [ga="0.003:0/2/132"]
Type contact-control : reedChannel5 "Reed Kanal 5" [ga="0.003:0/2/161"]
Type contact-control : reedChannel6 "Reed Kanal 6" [ga="0.003:0/2/190"]
Type contact-control : reedChannel7 "Reed Kanal 7" [ga="0.003:0/2/248"]
//Type contact : reedChannel8 "Reed Kanal 8" []
Type number : solarRadiation "Helligkeit" [ga="0/2/9"]
Type number-control : temperature "Temperature" [ga="0/2/12"]
Type switch-control : disableShading "Beschattung deaktivieren" [ga="0/2/13"]
Type switch-control : disableShadingChannel6 [ga="0/2/186"]
Type datetime-control : date "Datum" [ga="11.001:0/2/8"]
Type datetime-control : time "Uhrzeit" [ga="10.001:0/2/7"]
}
Thing device binaryInput230V "Binäreingang 230V"[address="1.1.4"]{
}
Thing device binaryInput "Binäreingang potentialfrei"[address="1.1.5"]{
// Type switch : channel1 "Kanal 1" [ga=""] Channel 1 not working from hardware side
Type switch : channel2 "Kanal 2" [ga="<0/3/5"]
Type switch : channel3 "Kanal 3" [ga="<0/3/10"]
Type switch : channel4 "Kanal 4" [ga="<0/3/15"]
}
}
NTP config:
ntp:ntp:local [ hostname="de.pool.ntp.org", refreshInterval=10, refreshNtp=30 ]
Item config:
DateTime LocalDateTime { channel="ntp:ntp:local:dateTime,knx:device:knxbridge:rollershutterControl:date,knx:device:knxbridge:rollershutterControl:time"}
My problems are that:
- the time is not written to the bus and I do not understand why. I see the events for updating LocaDateTime but nothing is happening on the bus
- I do not really understand the difference between type: number and number-control (In other threads I saw the examples with -control, if I add -control to the solarRadiation-channel, then no values are sent)
I know that there are a lot of threads which seem to solve this problem but I just could not get it working (trying since 3 days and am almost deparate).
Could you please help me.