Openhab toggels KNX swtich

Hello all,
I’m only starting now with openHab. Now I’m stuck with the first problem.
As based I used the demo.items and added only to Light_FF_Office_Ceiling a KNX address.
Now if I’m going to control the switch via openHab this address is been toggeled very quickly and never stopping until reboot.
The log is attached here
2017-03-30 21:40:13.723 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command ON
2017-03-30 21:40:13.753 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:13.759 [ItemStateChangedEvent ] - Light_FF_Office_Ceiling changed from ON to OFF
2017-03-30 21:40:13.783 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:13.818 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:13.849 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command ON
2017-03-30 21:40:13.853 [ItemStateChangedEvent ] - Light_FF_Office_Ceiling changed from OFF to ON
2017-03-30 21:40:13.881 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command ON
2017-03-30 21:40:13.911 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:13.917 [ItemStateChangedEvent ] - Light_FF_Office_Ceiling changed from ON to OFF
2017-03-30 21:40:13.941 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:13.973 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:14.004 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command ON
2017-03-30 21:40:14.012 [ItemStateChangedEvent ] - Light_FF_Office_Ceiling changed from OFF to ON
2017-03-30 21:40:14.035 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command ON
2017-03-30 21:40:14.066 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF
2017-03-30 21:40:14.071 [ItemStateChangedEvent ] - Light_FF_Office_Ceiling changed from ON to OFF
2017-03-30 21:40:14.096 [ItemCommandEvent ] - Item ‘Light_FF_Office_Ceiling’ received command OFF

Any idea / help / hints where to look at?

Best regards

Please post your item definition, otherwise it´s hard to tell.
Which version of openhab are you using ?
What knx actor are you using, how are the group adresses assigned to it?
How do you connect to the bus ? IP-Interface ?

Hi Thomas, thanks reply!
Version I’m using is 0.9.0.b4
The item definition file is the basically the example changed only by one line to add the KNX Groupaddress
Connection to KNX is made via wiregate (yes, IP interface). The KNX actors are from MDT and working fine with the assigned group address and realted switch since some years.
Any idea?

Best regards


Group gFF “First Floor”
Group gGF “Ground Floor”
Group gC “Cellar”
Group Garden “Garden”
Group Weather “Weather”

Group Status
Group Shutters

Group GF_Living “Living Room” (gGF)
Group GF_Kitchen “Kitchen” (gGF)
Group GF_Toilet “Toilet” (gGF)
Group GF_Corridor “Corridor” (gGF)

Group FF_Bath “Bathroom” (gFF)
Group FF_Office “Office” (gFF)
Group FF_Child “Child’s Room” <boy_1> (gFF)
Group FF_Bed “Bedroom” (gFF)
Group FF_Corridor “Corridor” (gFF)

/* active groups */
Group:Switch:OR(ON, OFF) Lights "All Lights [(%d)]"
Group:Switch:OR(ON, OFF) Heating “No. of Active Heatings [(%d)]”
Group:Number:AVG Temperature “Avg. Room Temperature [%.1f °C]” (Status)
Group:Contact:OR(OPEN, CLOSED) Windows “Open windows [(%d)]”

/* Lights */
Dimmer Light_GF_Living_Table “Table” (GF_Living, Lights) [“Lighting”]
Switch Light_GF_Corridor_Ceiling “Ceiling” (GF_Corridor, Lights)
Switch Light_GF_Kitchen_Ceiling “Ceiling” (GF_Kitchen, Lights)
Switch Light_GF_Kitchen_Table “Table Test” (GF_Kitchen, Lights)
Switch Light_GF_Corridor_Wardrobe “Wardrobe” (GF_Corridor, Lights)
Switch Light_GF_Toilet_Ceiling “Ceiling” (GF_Toilet, Lights)
Switch Light_GF_Toilet_Mirror “Mirror” (GF_Toilet, Lights)

Switch Light_FF_Bath_Ceiling “Ceiling” (FF_Bath, Lights)
Switch Light_FF_Bath_Mirror “Mirror” (FF_Bath, Lights)
Switch Light_FF_Corridor_Ceiling “Corridor” (FF_Corridor, Lights)
Switch Light_FF_Office_Ceiling “Ceiling test 2” (FF_Office, Lights) {knx=“1.001:4/1/3”}
Switch Light_FF_Child_Ceiling “Ceiling” (FF_Child, Lights)
Switch Light_FF_Bed_Ceiling “Ceiling” (FF_Bed, Lights)

Switch Light_C_Corridor_Ceiling “Ceiling” (gC, Lights)
Switch Light_C_Staircase “Staircase” (gC, Lights)
Switch Light_C_Washing_Ceiling “Washing” (gC, Lights)
Switch Light_C_Workshop “Workshop” (gC, Lights) [“Lighting”]

Switch Light_Garden_Garage “Garage” (Garden, Lights) [“Lighting”]
Switch Light_Garden_Terrace “Terrace” (Garden, Lights)

/* Heating */
Switch Heating_GF_Corridor “Corridor” (GF_Corridor, Heating)
Switch Heating_GF_Toilet “Toilet” (GF_Toilet, Heating)
Switch Heating_GF_Living “Livingroom” (GF_Living, Heating)
Switch Heating_GF_Kitchen “Kitchen” (GF_Kitchen, Heating)

Switch Heating_FF_Bath “Bath” (FF_Bath, Heating)
Switch Heating_FF_Office “Office” (FF_Office, Heating)
Switch Heating_FF_Child “Child’s Room” (FF_Child, Heating)
Switch Heating_FF_Bed “Bedroom” (FF_Bed, Heating)

/* Rollershutters */
Rollershutter Shutter_GF_Toilet “Toilet” (GF_Toilet, Shutters)
Rollershutter Shutter_GF_Kitchen “Kitchen” (GF_Kitchen, Shutters)
Rollershutter Shutter_GF_Living “Livingroom” (GF_Living, Shutters)

Rollershutter Shutter_FF_Bed “Bedroom” (FF_Bed, Shutters)
Rollershutter Shutter_FF_Bath “Bath” (FF_Bath, Shutters)
Rollershutter Shutter_FF_Office_Window “Office Window” (FF_Office, Shutters)
Rollershutter Shutter_FF_Office_Door “Office Door” (FF_Office, Shutters)

Switch Shutter_all

/* Indoor Temperatures */
Number Temperature_GF_Corridor “Temperature [%.1f °C]” (Temperature, GF_Corridor)
Number Temperature_GF_Toilet “Temperature [%.1f °C]” (Temperature, GF_Toilet)
Number Temperature_GF_Living “Temperature [%.1f °C]” (Temperature, GF_Living)
Number Temperature_GF_Kitchen “Temperature [%.1f °C]” (Temperature, GF_Kitchen, Thermostat) [“CurrentTemperature”]
Number Temperature_FF_Bath “Temperature [%.1f °C]” (Temperature, FF_Bath)
Number Temperature_FF_Office “Temperature [%.1f °C]” (Temperature, FF_Office)
Number Temperature_FF_Child “Temperature [%.1f °C]” (Temperature, FF_Child)
Number Temperature_FF_Bed “Temperature [%.1f °C]” (Temperature, FF_Bed)

/* Windows */
Contact Window_GF_Frontdoor “Frontdoor [MAP(]” (GF_Corridor, Windows)
Contact Window_GF_Kitchen “Kitchen [MAP(]” (GF_Kitchen, Windows)
Contact Window_GF_Living “Terrace door [MAP(]” (GF_Living, Windows)
Contact Window_GF_Toilet “Toilet [MAP(]” (GF_Toilet, Windows)

Contact Window_FF_Bath “Bath [MAP(]” (FF_Bath, Windows)
Contact Window_FF_Bed “Bedroom [MAP(]” (FF_Bed, Windows)
Contact Window_FF_Office_Window “Office Window [MAP(]” (FF_Office, Windows)
Contact Window_FF_Office_Door “Balcony Door [MAP(]” (FF_Office, Windows)

Contact Garage_Door “Garage Door [MAP(]” (Garden, Windows)

Group Weather_Chart
Number Weather_Temperature “Outside Temperature [%.1f °C]” (Weather, Weather_Chart) { channel=“yahooweather:weather:berlin:temperature” }
Number Weather_Temp_Max “Todays Maximum [%.1f °C]” (Weather, Weather_Chart)
Number Weather_Temp_Min “Todays Minimum [%.1f °C]” (Weather, Weather_Chart)
Number Weather_Chart_Period "Chart Period"
DateTime Weather_LastUpdate “Last Update [%1$ta %1$tR]”
Number Sun_Elevation “Sun Elevation” { channel = “astro:sun:home:position#elevation” }
Number Sun_Azimuth “Sun Azimuth” { channel = “astro:sun:home:position#azimuth” }
DateTime Sunrise_Time “Sunrise [%1$tH:%1$tM]” { channel = “astro:sun:home:rise#start” }
DateTime Sunset_Time “Sunset [%1$tH:%1$tM]” { channel = “astro:sun:home:set#start” }
Number Moon_Elevation “Moon Elevation” { channel = “astro:moon:home:position#elevation” }
Number Moon_Azimuth “Moon Azimuth” { channel = “astro:moon:home:position#azimuth” }
String Moon_Phase “Moon Phase” { channel = “astro:moon:home:phase#name” }

/* Demo items */
DateTime CurrentDate “Date [%1$tA, %1$td.%1$tm.%1$tY]” { channel=“ntp:ntp:demo:dateTime” }
Switch DemoSwitch "Switch"
Dimmer DimmedLight “Dimmer [%d %%]”
Color RGBLight “RGB Light”
Rollershutter DemoShutter "Roller Shutter"
Dimmer DemoBlinds “Blinds [%d %%]”
Number Scene_General “Scene”
Number Radio_Station “Radio”
Dimmer Volume "Volume [%.1f %%]"
Location DemoLocation "Brandenburg Gate Berlin"
Number Wifi_Level “Wifi Level [%d/4]” (FF_Office)
String ImageURL “Image URL [%s]”

Group Thermostat “Thermostat” [“Thermostat”]
Number Temperature_Setpoint “Temperature [%.1f °C]” (Thermostat) [“TargetTemperature”]
String Thermostat_Mode “Thermostat Mode [%s]” (Thermostat) [“homekit:HeatingCoolingMode”]

The startup log seems to be fine

2017-03-30 21:54:35.385 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2017-03-30 21:54:35.406 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2017-03-30 21:54:35.416 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-03-31 22:10:56.184 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.items’
2017-03-31 22:10:56.665 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist’
2017-03-31 22:11:00.644 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.rules’
2017-03-31 22:11:01.704 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.script’
2017-03-31 22:11:02.860 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap’
2017-03-31 22:11:03.377 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.things’
2017-03-31 22:11:05.031 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-03-31 22:11:07.473 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-03-31 22:11:07.565 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-03-31 22:11:09.346 [INFO ] [ulation.internal.HueEmulationServlet] - Started Hue Emulation service at /api
2017-03-31 22:11:10.036 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-03-31 22:11:10.138 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:home
2017-03-31 22:11:10.138 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-moon at midnight for thing astro:moon:home
2017-03-31 22:11:10.149 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 60 seconds for thing astro:sun:home
2017-03-31 22:11:10.151 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 60 seconds for thing astro:moon:home
2017-03-31 22:11:10.490 [INFO ] [nx.internal.connection.KNXConnection] - Established connection to KNX bus on in mode TUNNEL.
2017-03-31 22:11:12.288 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:home
2017-03-31 22:11:12.291 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 60 seconds for thing astro:sun:home
2017-03-31 22:11:29.580 [INFO ] [.astro.internal.job.AbstractDailyJob] - Scheduled astro event-jobs for thing astro:moon:home
2017-03-31 22:11:29.637 [INFO ] [.astro.internal.job.AbstractDailyJob] - Scheduled astro event-jobs for thing astro:sun:home

No need to worry if you have tried setting ignorelocalevents=true in knx.cfg (should be in the services directory)!


Hi George,
now I’ve tried to set the ignorelocalevent=true and also did a complete new installation.
None of both is working for me. Still I got the same behavior.
Any more ideas?

Best regards

The more you explain, the more I understand!
Your KNX system is unknown, I do not know your topology, etc.!
As far as my humble brain thinks about right now, it has nothing to do with openhab, or the openhab binding for KNX!


Maybe it would be best to start with the current version of Openhab. From what you wrote I guess that you installed a old beta version. Or did I get this wrong?
Start with openhabian, it does the installation for you. Only use the stable path.
Then activate only the knx binding, configure it.
Add a single switch item.
This will narrow down the possible number of issues.
Starting with multiple bindings and a large number of items will make things tricky for a beginner.
And remembers that the beta /unstable versions are not a good place to start an initial OH journey.
As @george.erhan mentioned remember to set ignorelocaleevents.
How familiar are you with knx /ETS ? Can you see things happening in the ETS monitor?
What exactly is your group address linked to?

Hi all,
thanks for help! It took quite some time to catch up.
Indeed it happened that exactly during trying out openhab the IP router (wiregate) broke down.
I recognized some days later with problems on my normal bus.
Now with a fresh installation of openhab and a new IP router everything works fine.
Note to myself and other starters: If KNX bindining is installed, there is no need to add also knxd if there is a IP gateway present.