1.Overview
WiFiPower Switch Remote Power On/Off(available under networking).
II. Request Method
III. Parameter Description
Attribute Type Constraint Explanation
accountSid String Required Account ID (accountSid and authToken are assigned by Lock Manager when applying for developer account)
timestamp String Required Request timestamp
communityNo String Required Community No.
type String Required Type (1 Power supply; 2 Power off)
mac String Required WiFiPower-OnMac address of switch
endTime String Optional Power supply end time (required when type equals 1; format: 2607291823, representing July 29, 2026 at 18:23)
IV. Request URL
V. Generate Parameter Signature
Ⅰ. Add authToken parameter to POST key-value pairs (accountSid and authToken are assigned by Lock Manager when applying for developer account) to obtain original signature data.
Ⅱ. Sort the original signature data in dictionary order by parameter name.
Ⅲ. Concatenate in order using "key1=value1&key2=value2..." format, key/value must be encoded in x-www-form-urlencode format.
Ⅳ. Calculate the SHA1 value of the string to obtain the parameter signature sig.
Note: this authToken should not be submitted to the network with the POST parameter.
VI. Request Example (Raw)
POST http://api.uclbrt.com/Home/Records/powerWifiSwitch?sig=d56ade1486d925717dc946181f6147c815494f21 HTTP/1.1
Host: api.uclbrt.com
Connection: Keep-Alive
Accept: application/json
Content-Length: 205
Content-Type: application/x-www-form-urlencoded
 
accountSid=98651082ab89c3f1b50f35caf794179f&timestamp=1590379366&communityNo=1316879946&type=1&mac=441BF6ED190A&endTime=2607291823
VII. Response Result
Success:
{"status":200,"info":"success"}
Failure:
{"status":4007,"info":"Device not supported"}
VIII. SDK
Hardware Consulting
Software
After-sales
Hotline
400-0900843