# Weird behavior of item prediction with KNX2 binding

**URL:** <https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926>\
**Category:** Scripts & Rules\
**Created:** [January 6, 2019, 8:21am UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926 "2019-01-06T08:21:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![trant](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@trant](https://community.openhab.org/u/trant)\
**Post date:** [January 6, 2019, 8:21am UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/1 "2019-01-06T08:21:00Z")

</div>

I am using openHAB 2.4 (migrated from 2.1 a few days ago). Now i have some weird behavior regarding item prediction with KNX2 binding.

e.g: a simple switch with KNX2 binding:

item

```csv
Switch Licht_EG_Vorraum "Licht Eingang" <light> (EG_Diele, Beleuchtung, Haus_Aus) ["Switchable"]	{channel="knx:device:bridge:Actuator_2:Licht_EG_Vorraum"}

```

KNX.things

```csv
Thing device Actuator_2 [
        address="1.0.4",
        fetch=false,
        pingInterval=1800
    ] {
		Type switch : Licht_EG_Vorraum "Licht Eingang" [ga="1/0/110+<1/3/110"]	
    }

```

sitemap

```csv
Switch item=Licht_EG_Vorraum label="Decke"

```

enents

```csv
2019-01-06 09:08:08.809 [ome.event.ItemCommandEvent] - Item 'Licht_EG_Vorraum' received command ON
2019-01-06 09:08:08.809 [nt.ItemStatePredictedEvent] - Licht_EG_Vorraum predicted to become OFF
2019-01-06 09:08:08.842 [vent.ItemStateChangedEvent] - Licht_EG_Vorraum changed from OFF to ON

2019-01-06 09:08:10.478 [ome.event.ItemCommandEvent] - Item 'Licht_EG_Vorraum' received command OFF
2019-01-06 09:08:10.479 [nt.ItemStatePredictedEvent] - Licht_EG_Vorraum predicted to become ON
2019-01-06 09:08:10.510 [vent.ItemStateChangedEvent] - Licht_EG_Vorraum changed from ON to OFF

```

The prediction seems on the wrongs side always?!?!?  
Is there a possibility to change the configutation in a way to act like openHAB 2.1?

Maybe all items with KNX binding should be set to autoupdate=“false”?!?!

---

<div class="post-metadata">

**Author:** ![johannesbonn](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/b782af/32.png) [@johannesbonn](https://community.openhab.org/u/johannesbonn)\
**Post date:** [January 29, 2019, 9:31pm UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/2 "2019-01-29T21:31:37Z")

</div>

Could you solve your problem? I have the same behaviour!

---

<div class="post-metadata">

**Author:** ![trant](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@trant](https://community.openhab.org/u/trant)\
**Post date:** [January 30, 2019, 4:38am UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/3 "2019-01-30T04:38:01Z")

</div>

Yes, autoupdate=“false” did it

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [January 30, 2019, 12:23pm UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/4 "2019-01-30T12:23:42Z")

</div>

I am a great believer in disabling `autoupdate` where you get timely status updates from a real device. Saves clutter in logs, apart from wasted processing.

but -  
This does look like a error in autoupdate process. It’s only guessing, but command=ON to state=ON seems like an easy guess.  
As the binding itself can make “suggestions” about autoupdate predictions in OH 2.4, and autoupdate seems to work okay with switches in other situations - perhaps a KNX binding bug or misconfiguration.

Same issue reported here

> [@\[SOLVED\] KNX problems after OH2.4 upgrade](https://community.openhab.org/t/solved-knx-problems-after-oh2-4-upgrade/61416):
>
> Hi, I’ve recently updated my OH2.3 to OH2.4 stable build. Update was done by installation of a new OH2.4 instance and then copying the conf folder from 2.3 to 2.4 installation. NO changes done in config files. OH is running on Windows, using a Gira 216700 KNX-IP router. System configuration was working flawlessly on OH2.3 Problem statement 1 I experience some problems with KNX binding after OH2.4 update: When switching on a light in BasicUI, the switch widget immediatly jumps back to OFF po…

I am not a KNX person but I wonder if @Udo_Hartmann would have a more expert opinion here ?

---

<div class="post-metadata">

**Author:** ![Udo\_Hartmann](https://community.openhab.org/user_avatar/community.openhab.org/udo_hartmann/32/70871_2.png) [@Udo\_Hartmann](https://community.openhab.org/u/Udo_Hartmann)\
**Post date:** [January 30, 2019, 11:01pm UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/5 "2019-01-30T23:01:45Z")

</div>

Well, I must confess, I didn’t figure aout the prediction thing yet.  
As all my knx items are configured to `autoupdate="false"` anyway…

---

<div class="post-metadata">

**Author:** ![Infeus](https://community.openhab.org/user_avatar/community.openhab.org/infeus/32/50101_2.png) [@Infeus](https://community.openhab.org/u/Infeus)\
**Post date:** [March 13, 2020, 8:57am UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/6 "2020-03-13T08:57:25Z")

</div>

any update ? have similar problem

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 13, 2020, 11:03am UTC](https://community.openhab.org/t/weird-behavior-of-item-prediction-with-knx2-binding/62926/7 "2020-03-13T11:03:59Z")

</div>

I doubt there would be any change unless someone produces a good example and raises a github issue for it.
