openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
190 stars 127 forks source link

After updating the elements of the set point show "0" in the ios app #137

Closed vshaev closed 6 years ago

vshaev commented 6 years ago

version 2.0.0. for iPhone 5. for iPhone 6 After updating the elements of the set point show "0" in the ios app. Exposure to passed to openhab. I see it in the magazine - "2017-11-27 22:04:42.683 [ItemCommandEvent ] - Item 'M_Kitchen_Motion_Timer' received command 300 2017-11-27 22:04:42.691 [ItemStateChangedEvent ] - M_Kitchen_Motion_Timer changed from 315 to 300" But the ios app is always "0". In the browser the values are changed. On previous version everything worked properly.

funcarver72 commented 6 years ago

Same observation here, but only on integer elements. For setpoint elements counting floats and a step-width of e.g. 0.5, it works. iOS11 / iPhone8

CodeWilliamson commented 6 years ago

I also have issue for my integer values. My setpoints for Insteon thermostat no longer work, they show 0.

steintore commented 6 years ago

I have the same issue after upgrading. Tested this on two different iOS-devices and they both show the same the same value (0). Seems like the buttons are working and the correct values are shown if I check it in the Basic UI.

JamesM85 commented 6 years ago

Same issue here, all of my setpoints are showing 0 since the recent update, although they do seem to update the values on openhab when pressing +/-, the values in the app always show 0 Screenshot here: https://1drv.ms/i/s!Av2jcrIBYQCZo4Rq5pyj9zN2VlePbQ iPhone 7 / iOS 11.1.2

Sitemap config for screenshot: `

        Frame label="Upstairs"
            {
            Text item=Temp_Landing icon="temperature"
            Setpoint item=Temp_Set_Landing minValue="10" maxValue="30" step=1
            Text item=Temp_Bed1 icon="temperature" {Chart item=Temp_Bed1 refresh=30000 service="mysql"}
            Setpoint item=Temp_Set_Bed1 minValue="10" maxValue="30" step=1
            Text item=Temp_Bed2 icon="temperature"
            Setpoint item=Temp_Set_Bed2 minValue="10" maxValue="30" step=1
            Text item=Temp_Bed3 icon="temperature"
            Setpoint item=Temp_Set_Bed3 minValue="10" maxValue="30" step=1
            Text item=Temp_Bed4 icon="temperature"
            Setpoint item=Temp_Set_Bed4 minValue="10" maxValue="30" step=1
            }

`

JamesM85 commented 6 years ago

Just to add to this, changing the steps to 0.5 does get around the problem, but steps as 1.0 still display as 0

digitaldan commented 6 years ago

this is most likely caused by #129 , @tefinger can you take a look please?

digitaldan commented 6 years ago

@tefinger ping!

ericc514 commented 6 years ago

Same issue here.

tefinger commented 6 years ago

@digitaldan Sorry for the late response. I noticed the same problem in the app. Will check it asap and keep you updated here.

tefinger commented 6 years ago

@digitaldan I submitted pull request #145 with the fix for this issue