All new JSON APIs and JS bindings functions are implemented. The controlDSUID is no longer visible nor able to set from the APIs (also removed from functions prototypes on JavaScript interface)
Below example calls. JS bindings have added unit tests:
https://localhost:8080/json/apartment/getTemperatureControlConfig?id=27304
{
"result":{
"zones":[
{
"id":27304,
"name":"",
"ControlMode":1,
"EmergencyValue":76,
"CtrlKp":5.0,
"CtrlTs":1,
"CtrlTi":150,
"CtrlKd":0,
"CtrlImin":-13.0,
"CtrlImax":13.0,
"CtrlYmin":0,
"CtrlYmax":100,
"CtrlAntiWindUp":false
}
]
},
"ok":true
}
https://localhost:8080/json/apartment/getTemperatureControlConfig2?id=27304
{
"result":{
"zones":{
"27304":{
"mode":"control",
"targetTemperatures":{
"0":8.0,
"1":22.0,
"2":20.2,
"3":18.0,
"4":17.0,
"5":16.0,
"6":23.0,
"7":50.0,
"8":-38.65,
"9":-39.15,
"10":-39.65,
"11":-40.025
},
"controlMode":{
"emergencyValue":76,
"ctrlKp":5.0,
"ctrlTs":1,
"ctrlTi":150,
"ctrlKd":0,
"ctrlImin":-13.0,
"ctrlImax":13.0,
"ctrlYmin":0,
"ctrlYmax":100,
"ctrlAntiWindUp":false
},
"zoneFollowerMode":{
"referenceZone":1,
"ctrlOffset":24
},
"manualMode":{
"controlValue":24
}
}
}
},
"ok":true
}
https://localhost:8080/json/apartment/getTemperatureControlConfig?id=27304
{
"result":{
"zones":[
{
"id":27304,
"name":"",
"ControlMode":3
}
]
},
"ok":true
}
https://localhost:8080/json/apartment/getTemperatureControlConfig2?id=27304
{
"result":{
"zones":{
"27304":{
"mode":"fixed",
"fixedValues":{
"0":0.0,
"1":100.0,
"2":90.0,
"3":80.0,
"4":70.0,
"5":25.0,
"6":100.0,
"7":0.0,
"8":80.0,
"9":60.0,
"10":40.0,
"11":25.0
},
"controlMode":{
"emergencyValue":76,
"ctrlKp":5.0,
"ctrlTs":1,
"ctrlTi":150,
"ctrlKd":0,
"ctrlImin":-13.0,
"ctrlImax":13.0,
"ctrlYmin":0,
"ctrlYmax":100,
"ctrlAntiWindUp":false
},
"zoneFollowerMode":{
"referenceZone":1,
"ctrlOffset":24
},
"manualMode":{
"controlValue":24
}
}
}
},
"ok":true
}
@rkoehler could you verify that the changes in JS bindings are ok for you? (there are 2 new functions and old functions have changed)
Closes #16378