eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
862 stars 787 forks source link

OH2.4 breaks android app behavior on KNX things #6786

Open xvdessel opened 5 years ago

xvdessel commented 5 years ago

I'm using the Android App latest version (updated 24/11/2018). On OH2.3 there were no problems. I use KNX add-on (OH2 version) with several types of objects.

When upgrading to OH2.4 (Fedora RPM package upgrade) the behavior of the app changed in a weird way. In the app, I drill down in my pages, and then I push a standard switch. The light goes on, the switch temporarily moves to the right, but immediately falls back to the initial off state. Hence, I cannot turn that light off, as another push would simply again issue an "ON" event. The only way to turn the light off is to push it twice in fast succession, such that the second push comes when the swith is still in active state. A similar behavior occurs for a slider, where the slider follows my request but directly returns to the base 0% state. The KNX-controlled light goes and stays at the desired point. But this behavior changes to a normal behavior when I switch my Android to another application, and then come back to the OpenHAB application: Now a switch stays in the desired state when I action it. But when I quit that openhab page to go one level up, and enter that same page again, the weird behavior is back!

On the web interface, the behavior is normal. Only the Android app seems affected. On items that have no KNX underlying object (e.g. a timer activation) the behavior is also normal. On an OH2.3 installation with identical configuration, the behavior of the app is also normal.

Thus, only the combination of Android app - OH2.4 - KNX things/channels causes the strange behavior mentioned above.

code of a typical KNX switch: [knx.items] Switch sch_LIVI_plaf (Lights_ground_floor) { channel="knx:device:bridge:generic:sch_LIVI_plaf" } [knx.things] Type switch : sch_LIVI_plaf [ ga="1/2/6" ] [sitemap] Switch item=sch_LIVI_plaf label="Living luster"

lewie commented 5 years ago

I just installed the openHAB app. I could not reproduce the behavior.

Have you ever tried to clear the application cache of the openHAB application in the Android system settings?

xvdessel commented 5 years ago

Thanks for the suggestion. I have enmptied the cache of the application in the Android system settings, but that did not change anything. The weird behavour persists.

How can I know the exact version numbers of the OH2 and KNX that I'm using? I got them from the OH fedora repo, but these only list the main version (2.4). Which version numbers are you using?