As I have some hardware, I decided to narrow down the folloing issue, and it seems that knx2 is broken:
- Setup a brand new vm with debian 9 amd64
- installed oracle java by using webupd8-team script
root@openhab2:~# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
- installed openhab2 with Package repository
root@openhab2:~# openhab-cli info
Version: 2.4.0-SNAPSHOT (#1295)
User: openhab (Active Process 18417)
User Groups: openhab
Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhab
OPENHAB_CONF | /etc/openhab2 | openhab:openhab
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhab
URLs: http://192.168.10.151:8080
https://192.168.10.151:8443
- chose expert
- installed knx2 as one binding
- logged in to console,
log:set TRACE org.openhab.binding.knx
log:tail
- in Paper UI, setup my knx IP bridge and one device, setup one dimmer channel and one linked item.
root@openhab2:/var/lib/openhab2/jsondb# cat org.eclipse.smarthome.core.thing.Thing.json
{
"knx:ip:13d72ac5": {
"class": "org.eclipse.smarthome.core.thing.internal.BridgeImpl",
"value": {
"label": "KNX/IP Gateway",
"channels": [],
"configuration": {
"properties": {
"useNAT": false,
"readRetriesLimit": 3,
"ipAddress": "eib.udo.lokal",
"localIp": "192.168.10.151",
"autoReconnectPeriod": 60,
"type": "TUNNEL",
"localSourceAddr": "1.1.99",
"readingPause": 50,
"portNumber": 3671,
"responseTimeout": 10
}
},
"properties": {},
"uid": {
"segments": [
"knx",
"ip",
"13d72ac5"
]
},
"thingTypeUID": {
"segments": [
"knx",
"ip"
]
}
}
},
"knx:device:a143cbf7": {
"class": "org.eclipse.smarthome.core.thing.internal.ThingImpl",
"value": {
"label": "KNX Device",
"bridgeUID": {
"segments": [
"knx",
"ip",
"13d72ac5"
]
},
"channels": [
{
"acceptedItemType": "Dimmer",
"kind": "STATE",
"uid": {
"segments": [
"knx",
"device",
"a143cbf7",
"test"
]
},
"channelTypeUID": {
"segments": [
"knx",
"dimmer"
]
},
"label": "Test",
"configuration": {
"properties": {
"position": "5.001:8/5/12 + \u003c5.001:8/5/17",
"switch": "1.001:8/5/10"
}
},
"properties": {},
"defaultTags": []
}
],
"configuration": {
"properties": {
"pingInterval": 600,
"readInterval": 0,
"fetch": false
}
},
"properties": {},
"uid": {
"segments": [
"knx",
"device",
"a143cbf7"
]
},
"thingTypeUID": {
"segments": [
"knx",
"device"
]
}
}
}
}
- tried to change brighness. events.log: (shortened)
2018-06-05 12:14:17.042 [hingStatusInfoChangedEvent] - 'knx:ip:13d72ac5' changed from UNINITIALIZED to INITIALIZING
2018-06-05 12:14:17.127 [hingStatusInfoChangedEvent] - 'knx:ip:13d72ac5' changed from INITIALIZING to UNKNOWN
2018-06-05 12:14:17.308 [hingStatusInfoChangedEvent] - 'knx:ip:13d72ac5' changed from UNKNOWN to ONLINE
2018-06-05 12:14:39.994 [hingStatusInfoChangedEvent] - 'knx:device:a143cbf7' changed from UNINITIALIZED to INITIALIZING
2018-06-05 12:14:40.038 [hingStatusInfoChangedEvent] - 'knx:device:a143cbf7' changed from INITIALIZING to ONLINE
2018-06-05 12:16:46.445 [me.event.ThingUpdatedEvent] - Thing 'knx:device:a143cbf7' has been updated.
2018-06-05 12:18:33.489 [.ItemChannelLinkAddedEvent] - Link 'KNXDevice_Test-knx:device:a143cbf7:test' has been added.
2018-06-05 12:22:00.141 [hingStatusInfoChangedEvent] - 'knx:ip:13d72ac5' changed from UNKNOWN to ONLINE
2018-06-05 12:22:00.153 [hingStatusInfoChangedEvent] - 'knx:device:a143cbf7' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2018-06-05 12:22:11.086 [ome.event.ItemCommandEvent] - Item 'KNXDevice_Test' received command 27
2018-06-05 12:22:11.125 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 0 to 27
2018-06-05 12:22:17.292 [ome.event.ItemCommandEvent] - Item 'KNXDevice_Test' received command 0
2018-06-05 12:22:17.324 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 27 to 0
2018-06-05 12:25:15.881 [me.event.ThingUpdatedEvent] - Thing 'knx:device:a143cbf7' has been updated.
2018-06-05 12:25:24.549 [ome.event.ItemCommandEvent] - Item 'KNXDevice_Test' received command 39
2018-06-05 12:25:24.579 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 0 to 39
2018-06-05 12:25:29.689 [ome.event.ItemCommandEvent] - Item 'KNXDevice_Test' received command 0
2018-06-05 12:25:29.724 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 39 to 0
2018-06-05 12:26:13.233 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 0 to 100
2018-06-05 12:26:15.205 [vent.ItemStateChangedEvent] - KNXDevice_Test changed from 100 to 0
openhab.log: (shortened)
2018-06-05 12:22:00.083 [DEBUG] [nx.internal.client.AbstractKNXClient] - Bridge knx:ip:13d72ac5 is connecting to the KNX bus
2018-06-05 12:22:00.101 [DEBUG] [binding.knx.internal.client.IPClient] - Establishing connection to KNX bus on eib.udo.lokal:3671 in modeTUNNEL.
2018-06-05 12:22:11.090 [TRACE] [.internal.handler.DeviceThingHandler] - Handling command '27' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:22:11.113 [DEBUG] [.internal.handler.DeviceThingHandler] - None of the configured GAs on channel 'knx:device:a143cbf7:test'could handle the command '27' of type 'PercentType'
2018-06-05 12:22:17.299 [TRACE] [.internal.handler.DeviceThingHandler] - Handling command '0' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:22:17.315 [DEBUG] [.internal.handler.DeviceThingHandler] - None of the configured GAs on channel 'knx:device:a143cbf7:test'could handle the command '0' of type 'PercentType'
2018-06-05 12:25:24.562 [TRACE] [.internal.handler.DeviceThingHandler] - Handling command '39' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:25:24.573 [DEBUG] [.internal.handler.DeviceThingHandler] - None of the configured GAs on channel 'knx:device:a143cbf7:test'could handle the command '39' of type 'PercentType'
2018-06-05 12:25:29.712 [TRACE] [.internal.handler.DeviceThingHandler] - Handling command '0' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:25:29.738 [DEBUG] [.internal.handler.DeviceThingHandler] - None of the configured GAs on channel 'knx:device:a143cbf7:test'could handle the command '0' of type 'PercentType'
2018-06-05 12:26:04.137 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/11'
2018-06-05 12:26:04.209 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/16'
2018-06-05 12:26:04.242 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/16'
2018-06-05 12:26:06.075 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/11'
2018-06-05 12:26:06.132 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/17'
2018-06-05 12:26:11.178 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/0'
2018-06-05 12:26:13.024 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/10'
2018-06-05 12:26:13.041 [DEBUG] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:a143cbf7' received a Group Write telegram from'1.1.210' for destination '8/5/10'
2018-06-05 12:26:13.071 [TRACE] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:a143cbf7' processes a Group Write telegram fordestination '8/5/10' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:26:13.213 [TRACE] [g.knx.internal.dpt.KNXCoreTypeMapper] - toType datapoint DPT = 1.001
2018-06-05 12:26:14.935 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/17'
2018-06-05 12:26:15.164 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/10'
2018-06-05 12:26:15.173 [DEBUG] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:a143cbf7' received a Group Write telegram from'1.1.210' for destination '8/5/10'
2018-06-05 12:26:15.181 [TRACE] [.internal.handler.DeviceThingHandler] - Thing 'knx:device:a143cbf7' processes a Group Write telegram fordestination '8/5/10' for channel 'knx:device:a143cbf7:test'
2018-06-05 12:26:15.189 [TRACE] [g.knx.internal.dpt.KNXCoreTypeMapper] - toType datapoint DPT = 1.001
2018-06-05 12:26:17.332 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.210' to '8/5/0'
2018-06-05 12:26:19.501 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/16'
2018-06-05 12:26:19.560 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.6' to '8/5/17'
As you can see, openHAB does receive messages but is unable to send messages, as the correct GA is not of the correct type (why?).
As far as I know, this is broken since UoM (~ 05-05-2018) I already tried with and without DPT, with and without additional GA for receiving state. And this is not for Dimmer only, but also for Switches. No read request at startup, no light control.
Interesting thing is: I get correct state for temperatures, and it’s possible to control the roller shutters.