Setpoint OK in UI .... but in Android app does not work!

in fact the UP key sends on the 1st press an error

  • Jetty request 28063711 failed: null
  • Response Failure: null
    and then is inoperative while with the UI it works perfectly!

rule “Test +/-point”
when
Item A_Plus_Moins_Point received update //command // update //changed
then
var Number test = (A_Plus_Moins_Point.state as Number)
var Number test_value = (A_Value.state as Number )
if ( test == 0 ) { test_value = test_value - 0.1 }
if ( test == 1 ) { test_value = test_value + 0.1 }
A_Value.postUpdate(test_value.toString)
end

Item:
{
“link”: “http://192.168.0.27:8080/rest/items/A_Plus_Moins_Point”,
“state”: “0”,
“editable”: true,
“type”: “Number”,
“name”: “A_Plus_Moins_Point”,
“label”: “A_Plus_Moins_Point”,
“category”: “”,
“tags”: [
“Point”
],
“groupNames”:
}

where is my mistake? is this a bug?
Arpagor

It might help if you’d give us a bit more information…

  • Android-App Version?
  • openHAB-Version?
  • Sitemap-Configuration?
  • Logfiles?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.