SergiuToporjinschi / node-red-contrib-heater-controller

Heater controller for node-red dashboard
GNU General Public License v3.0
18 stars 17 forks source link

OnSlider_Release event #26

Closed Jeins98 closed 4 years ago

Jeins98 commented 4 years ago

Is there any way to get the targetValue after the slider released? I want not to getting values while the slider is moving

SergiuToporjinschi commented 4 years ago

@Jeins98 for me is doing this, if you put a debug after it you will see that is sending the value only when you are releasing the mouse button.

SergiuToporjinschi commented 4 years ago
{ 
   "payload":{ 
      "currentTemp":21.6,
      "targetValue":13,
      "isUserCustom":true,
      "currentSchedule":{ 
         "temp":22,
         "day":"Sunday",
         "time":"20:00"
      },
      "nextSchedule":{ 
         "temp":19,
         "day":"Sunday",
         "time":"23:59"
      },
      "currentHeaterStatus":"off",
      "userTargetValue":13,
      "isUserCustomLocked":true
   },
   "topic":"",
   "socketid":"JLgYTSEn1jWeGX-HAAAT",
   "_msgid":"9eab81a8.ba37c"
}

userTargetValue