Shubhamjain007 / openhab

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

Selection Module on IOS needs Element 0= in mapping to work corektly #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.define a selection like:
Selection item=Whatevver label="Whatever" mappings=[1=Standby, 2=Comfort, 
3=Night]

2. Go to the Selection, 2= comfort is selected
2. Switch to Element "Comfort", switching is correct, but displayed is 3=Night 
3. Switch to Element 3=Night, switching is correct but app crashed because 
4=invalid will be displayed in the app.

What version of the product are you using? On what operating system?
I´m using ios 5.1

Please provide any additional information below.

Original issue reported on code.google.com by Frickeme...@gmail.com on 4 Sep 2012 at 6:04

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 4 Sep 2012 at 6:09

GoogleCodeExporter commented 8 years ago
Why don't you start the selection list with 0? Is there any reason for starting 
at 1?

Original comment by openhabi...@gmail.com on 5 Sep 2012 at 11:41

GoogleCodeExporter commented 8 years ago
My selection list starts with 0. But in the documention its not mentioned. And 
in a browser both ways are ok.

Original comment by Frickeme...@gmail.com on 5 Sep 2012 at 1:50

GoogleCodeExporter commented 8 years ago
Ok, I realized that it is ok to send commands not starting in 0. Even not a 
number!

 I fixed it. In the next update you may set commands like "0" or "start".

Original comment by openhabi...@gmail.com on 5 Sep 2012 at 2:39

GoogleCodeExporter commented 8 years ago

Original comment by openhabi...@gmail.com on 5 Sep 2012 at 2:40