Commands

Important

The ability to manage over a local network without a security token is blocked by default for security reasons. This may be relevant, for example, when using local control in public places. If this security measure is not needed, disable it on the device by setting the bLc parameter to oFF. Otherwise, requests for changes without this token will not be executed.

The cmd key is used to get or reset device parameters, schedules, time, and telemetry. Possible values:

Example {"cmd":1}

Parameters request

Answer:

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "par":[[0,6,"536112000"],[1,6,"536112000"],
         [2,2,"1"],[3,2,"0"],[5,1,"30"],
         [7,1,"5"],[17,4,"175"],[18,2,"2"],
         [19,2,"10"],[21,1,"0"],[23,2,"6"],
         [25,2,"15"],[26,1,"45"],[27,1,"5"],
         [28,2,"16"],[29,1,"0"],[31,1,"8"],
         [52,4,"0"],[53,4,"480"],[55,2,"24"],
         [80,1,"0"],[81,1,"0"],[82,1,"0"],
         [109,7,"0"],[114,7,"0"],[115,7,"0"],
         [117,7,"0"],[118,7,"0"],[120,7,"0"],
         [121,7,"0"],[124,7,"0"],[125,7,"0"]]
}

Example {"cmd":2}

Schedule request

Answer:

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "tt":{
         "0":[[360,300],[480,250],[1020,300],[1320,250]],
         "1":[[360,300],[480,250],[1020,300],[1320,250]],
         "2":[[360,300],[480,250],[1020,300],[1320,250]],
         "3":[[360,300],[480,250],[1020,300],[1320,250]],
         "4":[[360,300],[480,250],[1020,300],[1320,250]],
         "5":[[480,300],[1380,250]],
         "6":[[480,300],[1380,250]]
        }
}

Example {"cmd":3}

Time getting request

Answer:

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "time":"634993283"
}

Where time - time in seconds from 01.01.2000 00:00

Example {"cmd":4}

Telemetry request

Answer:

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "f.0":"1","f.3":"0","f.4":"0","f.7":"0",
   "f.9":"0","f.10":"0","f.11":"0","f.12":"0",
   "f.13":"0","f.16":"0","f.20":"0","m.0":"0",
   "m.1":"0","m.2":"65","m.3":"2","m.5":"0",
   "o.0":"-57","o.1":"1","par.26":"45","par.27":"5",
   "t.0":"470","t.1":"392","t.5":"400","t.7":"640","time":"812112348"
}

Example {"cmd":5}

Parameters reset request. Request must include «sn». When blocking from the local network ([114,7,”1”]) is active, the «auth» and «time» keys must be included in the request Security.

{"cmd":5,"sn":"404CCAAAD4E8A89860609800000149" }

Answer when blocking is inactive ([114,7,”0”]):

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "par":[[0,6,"536112000"],[1,6,"536112000"],
         [2,2,"1"],[3,2,"0"],[5,1,"30"],
         [7,1,"5"],[17,4,"175"],[18,2,"2"],
         [19,2,"10"],[21,1,"0"],[23,2,"6"],
         [25,2,"15"],[26,1,"45"],[27,1,"5"],
         [28,2,"16"],[29,1,"0"],[31,1,"8"],
         [52,4,"0"],[53,4,"480"],[55,2,"24"],
         [80,1,"0"],[81,1,"0"],[82,1,"0"],
         [109,7,"0"],[114,7,"0"],[115,7,"0"],
         [117,7,"0"],[118,7,"0"],[120,7,"0"],
         [121,7,"0"],[124,7,"0"],[125,7,"0"]]
}

When blocking is active ([114,7,”1”]):

Answer:

{"success":"block"}

Example {"cmd":6}

Schedule reset request reset request. Request must include «sn». When blocking from the local network ([114,7,”1”]) is active, the «auth» and «time» keys must be included in the request Security.

Answer:

{
   "sn":"404CCAAAD4E8A89860609800000149",
   "tt":{
         "0":[[360,300],[480,250],[1020,300],[1320,250]],
         "1":[[360,300],[480,250],[1020,300],[1320,250]],
         "2":[[360,300],[480,250],[1020,300],[1320,250]],
         "3":[[360,300],[480,250],[1020,300],[1320,250]],
         "4":[[360,300],[480,250],[1020,300],[1320,250]],
         "5":[[480,300],[1380,250]],
         "6":[[480,300],[1380,250]]
        }
}

When blocking is active ([114,7,”1”]):

Answer:

{"success":"block"}

Подразделы команд: