saussact / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Some Web UI issues #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm testing openHAB Web UI and found some things I would like to share.

Issue 1. Touching fast one switch button after another switch button (less than 
a second) doesn't work on iPhone, ie. the second pressed button don't change 
its status. However on a PC you can switch switches very fast. So, if you open 
the same interface on an iPhone and a PC and you click fast the two "Status" 
switches on the demo sitemap (Presence and Nightmode), on the iPhone screen it 
changes only the first pressed. On the very next interact the two interfaces 
sync themselfs.

Way to reproduce:
1. Open the home page from a mobile phone and from a PC
2. Try pressing fast the two Status switches (Presence and Nightmode) from the 
mobile
3. Try pressing fast the two Status switches (Presence and Nightmode) from the 
PC

---------

Issue 2. Sometimes (but not always) when you go deeper in the tree, for example 
"First Floor -> Bathroom" from one device (for example an iPhone) and in the 
same time you press switch button in the home screen from another device, when 
the first device returns to the home screen, it doesn't see the changed switch 
status.

Way to reproduce:
1. Go to "First Floor -> Bathroom" from your mobile
2. Switch the "Nightmode" switch button on the home page from your PC
3. Go back to home page with your mobile

---------

Issue 3. Sometimes (but not always) on a mobile phone when you press a switch 
button with a light bulb icon, the icon doesn't change.

Way to reproduce:

1. Try switching ON and OFF the "Nightmode" switch button on the home page from 
your iPhone

Original issue reported on code.google.com by mishoboss on 7 May 2011 at 11:47

GoogleCodeExporter commented 9 years ago
I am aware of all these issues and they are mainly due to the fact that the 
used UI framework does not support any asynchronous updates of widgets at all. 
E.g. a page is not even reloaded, when you go a page back (i.e. up in the 
hierarchy as in issue 2).
To circumvent this missing support, I have implemented a fairly simply, 
proprietary long-poll background request, which reloads the current page 
completely, if at least one item state has changed on it. This solution is 
clearly not perfect, but works imho good enough for the mobile (not always on) 
use case; again, the tablet UI should definitely work more reliable here.
Nonetheless, as you have more JS knowledge, feel free to look at the JS parts 
in 
http://code.google.com/p/openhab/source/browse/bundles/ui/org.openhab.ui.webapp/
snippets/main.html (here mainly the event listeners for "endasync" and 
"endslide") and suggest improvements to them.

Original comment by kai.openhab on 7 May 2011 at 9:12

GoogleCodeExporter commented 9 years ago
As I do not see an easy way to solve these problems and there are by now two 
other UIs as alternatives available, I am rejecting this issue. I hope this is 
ok for you.

Original comment by kai.openhab on 2 Feb 2012 at 9:37