Hi there,
Just started experimenting with OpenHAB 2.3.0 and KNX.
For the time being, all configurations are done in PaperUI since I reckon this protects me (a bit) against stupid beginner’s mistakes
For starters, I have created a small setup to play with lights. I have a 4-channel Dimmer “Thing”, which, in KNX, is linked to a number of group addresses:
2/1/9 = Switch light on/off (command);
2/1/8 = Switch light on/off status;
2/1/11 = Dimmer step up/down;
2/1/10 = Dimmer brightness absolute value;
2/1/14 = Dimmer brightness status;
So, I configured the OpenHAB dimmer channel as follows:
Toggle on/off: 2/1/9+<2/1/8
Set absolute position: 2/1/10+<2/1/14
Increase/decrease dimmer: 2/1/11
When switching to control view and moving the slide to, say, 34%, I noticed that the slider moved briefly to 100% and then returns to 34%. The light worked perfectly. Since I had the Dimmer ‘Thing’ configured to poll for status changes every 30 seconds, I noticed the slider moving to 100% and back to 34% every 30 seconds.
The event log showed similar entries:
2018-11-12 21:37:12.890 [vent.ItemStateChangedEvent] - E1_1m changed from 100 to 34
2018-11-12 21:37:42.737 [vent.ItemStateChangedEvent] - E1_1m changed from 34 to 100
2018-11-12 21:37:42.882 [vent.ItemStateChangedEvent] - E1_1m changed from 100 to 34
2018-11-12 21:38:12.756 [vent.ItemStateChangedEvent] - E1_1m changed from 34 to 100
2018-11-12 21:38:12.903 [vent.ItemStateChangedEvent] - E1_1m changed from 100 to 34
Even worse, sometimes after playing with the dimmer configuration, the slider would move the other way around: being stuck at 100% and every 30 seconds moving briefly back to 34%.
Checking the ETS logfiles revealed that there were status inquiries from the IP Gateway every 30 seconds: once for the switch status and once for the brightness. I never saw a 100% brightness value being passed on the bus and there are no other rules associated with these addresses.
This made me thinking: could it be that the dimmer channel treated the switch status as a brightness value? Off = 0%, on = 100%. So first of all, I removed the status “read” address from the switch configuration, leaving only the command address 2/1/9. This did not solve the issue. Even though the switch status requests did not appear on the bus anymore, I still got the 34% - 100% toggle.
Next I removed the switch address altogether, leaving only the absolute and relative brightness addresses. And now the dimmer worked flawlessly! I added a separate switch channel (next to the dimmer) to be able to switch the light on and off and this combination works just fine.
All the DPT’s match de OpenHAB defaults for the switch so I did not explicitly specify any DPT’s.
So, my questions: is this behavior “by design”? Am I doing anything wrong here? I reckon it must be possible to have both the switch and the brightness settings in the same channel, right?
Communication with KNX is through a Gira KNX/IP Router, configured in openHAB as a ROUTER (when set in TUNNEL mode, none of the KNX things came online and communication seemed to be very unreliable, in ROUTER mode all works fine).
Any advice would be appreciated
Best regards,
Wouter
Configuration:
###############################################################################
############### openHABianPi ################################################
###############################################################################
Ip = 192.168.1.110
Release = Raspbian GNU/Linux 9 (stretch)
Kernel = Linux 4.14.71-v7+
Platform = Raspberry Pi 3 Model B Rev 1.2
Uptime = 1 day(s). 2:25:57
CPU Usage = 2.99% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
CPU Load = 1m: 0.06, 5m: 0.09, 15m: 0.09
Memory = Free: 0.33GB (35%), Used: 0.61GB (65%), Total: 0.95GB
Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
Root = Free: 11.43GB (82%), Used: 2.48GB (18%), Total: 14.53GB
Updates = 0 apt updates available.
Sessions = 1 sessions
Processes = 101 running processes of 32768 maximum processes
###############################################################################
openHAB 2.3.0-1 (Release Build)
Java:
openjdk version “1.8.0_152”
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)