Repository navigation
JSON Interface
-
Set valves -
-
URL : http://ip/setvalve Request Method: POST
-
Payload : "valve": valvenr,"value": value
-
Example : { "valve": 1, "value": 21 }
-
-
Set tValue -
-
URL : http://ip/setvalve Request Method: POST
-
Payload : {"valve": valvenr,"ctrlValue": value}
-
Example : { "valve": 1, "ctrlValue": 21.2 }
-
-
Set tTarget -
-
URL : http://ip/setvalve Request Method: POST
-
Payload : {"valve": valvenr,"ctrlTarget": value}
-
Example : { "valve": 1, "ctrlTarget": 22 }
Any post requests can be combined
- Example : { "valve": 1, "ctrlValue": 21.2, "ctrlTarget": 22 }
-
Please note that tTarget and tValue json posts only works if the value and target source is set to json in the valve control section
-
Get valves -
- URL : http://ip/valves Request Method: GET
- Response : { "valves": [ { "idx": 1, "name": "Wohn", "state": 1, "pos": 2, "meanCur": 19, "targetPos": 2, "tTarget": 21.0, "tValue": 18.0 } ] }
-
Set valve control config -
-
URL : http://ip/valvesctrlconfig Request Method: POST
-
Payload : {"valves": ["no": 4,"active":0,"allow":1,"tSource":1,"vSource":3,"link":0,"offset":0,"scheme":0,"ti":4,"ts":900,"xp":24,"ki":0.01,"startAZ":0,"endAZ":100]}
-
Regarding to the size limit you can send max. 3 items in the array per post
-
Set valve control config of all valves
- URL : http://ip/valvesctrlconfig Request Method: POST
- Payload : {"active":0,"allow":1,"tSource":1,"vSource":3,"scheme":0,"startAZ":0,"endAZ":100}
You can define any combination of the key/value pairs Please note that here is no array and no valve number defined