Difference between revisions of "Translations:API/2/ru"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "<syntaxhighlight lang="json" line> request: {"requestType":"getDevicesList","key":"0000000000000000"} response: { "requestType":"devicesList", "devices": [ {...")
 
(No difference)

Latest revision as of 08:43, 16 January 2022

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (API)
<syntaxhighlight lang="json" line>
request:
{"requestType":"getDevicesList","key":"0000000000000000"}
 
response:
{
   "requestType":"devicesList",
   "devices": [
       {
           "type": "lamp",
           "name": "Ceiling",
           "addr":"401:1"
       },
                      
       {
           "type": "conditioner",
           "name": "AC",
           "addr":"158:200",
           "t-min":"16",
           "t-delta":"16"
       }
 
       ]
}
 
request:
{"requestType":"getDeviceStatus","addr":"310:1","key":"0000000000000000"}
response:
{
   "requestType" : "deviceStatus",
   "status" : {
     "addr" : "310:1",
     "state" : "middle",
     "type" : "jalousie"
   }
}
 
request:
{"requestType":"setDeviceStatus","addr":"310:1","key":"0000000000000000","status":{"state": "on"}}
 
response:
{
  "requestType":"setDeviceStatus",
  "addr":"410:1",
  "status":{
   "state": "on"
  }
   
}
 
request:
{"requestType":"getAllDevicesStatus","key":"0000000000000000"}
 
response:
{
   "requestType":"allDevicesStatus",
   "statuses": [
     {
       "addr":"401:1",
       "state": "off",
     },
      
     {
       "addr":"158:200",
       "state": "on",
       "temp":"25",
       "mode":"cool",
       "fan":"low",
       "vane-ver":"1",
       "vane-hor":"4"
     }  
       ]
}
 
request:
{"requestType":"setDeviceStatusRaw","addr":"310:1","key":"0","status":{"state":"ff00"}}
 
response:
{
   "addr" : "310:1",
   "key" : "0",
   "requestType" : "setDeviceStatusRaw",
   "status" : {
     "state" : "ff00"
}
</syntaxhighlight>
Translation<syntaxhighlight lang="json" line>
request:
{"requestType":"getDevicesList","key":"0000000000000000"}
 
response:
{
   "requestType":"devicesList",
   "devices": [
       {
           "type": "lamp",
           "name": "Ceiling",
           "addr":"401:1"
       },
                      
       {
           "type": "conditioner",
           "name": "AC",
           "addr":"158:200",
           "t-min":"16",
           "t-delta":"16"
       }
 
       ]
}
 
request:
{"requestType":"getDeviceStatus","addr":"310:1","key":"0000000000000000"}
response:
{
   "requestType" : "deviceStatus",
   "status" : {
     "addr" : "310:1",
     "state" : "middle",
     "type" : "jalousie"
   }
}
 
request:
{"requestType":"setDeviceStatus","addr":"310:1","key":"0000000000000000","status":{"state": "on"}}
 
response:
{
  "requestType":"setDeviceStatus",
  "addr":"410:1",
  "status":{
   "state": "on"
  }
   
}
 
request:
{"requestType":"getAllDevicesStatus","key":"0000000000000000"}
 
response:
{
   "requestType":"allDevicesStatus",
   "statuses": [
     {
       "addr":"401:1",
       "state": "off",
     },
      
     {
       "addr":"158:200",
       "state": "on",
       "temp":"25",
       "mode":"cool",
       "fan":"low",
       "vane-ver":"1",
       "vane-hor":"4"
     }  
       ]
}
 
request:
{"requestType":"setDeviceStatusRaw","addr":"310:1","key":"0","status":{"state":"ff00"}}
 
response:
{
   "addr" : "310:1",
   "key" : "0",
   "requestType" : "setDeviceStatusRaw",
   "status" : {
     "state" : "ff00"
}
</syntaxhighlight>
 1request:
 2{"requestType":"getDevicesList","key":"0000000000000000"}
 3 
 4response:
 5{
 6    "requestType":"devicesList",
 7    "devices": [
 8        {
 9            "type": "lamp",
10            "name": "Ceiling",
11            "addr":"401:1"
12        },
13                       
14        {
15            "type": "conditioner",
16            "name": "AC",
17            "addr":"158:200",
18            "t-min":"16",
19            "t-delta":"16"
20        }
21 
22        ]
23}
24 
25request:
26{"requestType":"getDeviceStatus","addr":"310:1","key":"0000000000000000"}
27response:
28{
29   "requestType" : "deviceStatus",
30   "status" : {
31      "addr" : "310:1",
32      "state" : "middle",
33      "type" : "jalousie"
34   }
35}
36 
37request:
38{"requestType":"setDeviceStatus","addr":"310:1","key":"0000000000000000","status":{"state": "on"}}
39 
40response:
41{
42  "requestType":"setDeviceStatus",
43  "addr":"410:1",
44  "status":{
45    "state": "on"
46  }
47   
48}
49 
50request:
51{"requestType":"getAllDevicesStatus","key":"0000000000000000"}
52 
53response:
54{
55    "requestType":"allDevicesStatus",
56    "statuses": [
57      {
58        "addr":"401:1",
59        "state": "off",
60      },
61       
62      {
63        "addr":"158:200",
64        "state": "on",
65        "temp":"25",
66        "mode":"cool",
67        "fan":"low",
68        "vane-ver":"1",
69        "vane-hor":"4"
70      }  
71        ]
72}
73 
74request:
75{"requestType":"setDeviceStatusRaw","addr":"310:1","key":"0","status":{"state":"ff00"}}
76 
77response:
78{
79   "addr" : "310:1",
80   "key" : "0",
81   "requestType" : "setDeviceStatusRaw",
82   "status" : {
83      "state" : "ff00"
84}