-
Notifications
You must be signed in to change notification settings - Fork 255
Xiaomi Yeelight Bedside Lamp
Jevgeni Kiski edited this page May 4, 2019
·
3 revisions
JSON payloads and responses that are available for yeelink.light.bslamp1
Acquired by reverse engineering app -> device communication and inspecting firmware file.
Some methods have duplicates in the list. Probably they act differently and accept different argument lengths.
Request:
{
"id":581,
"method":"miIO.info",
"params":[]
}
Response:
{
"result":{
"life":6955,
"token":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"mac":"AA:BB:CC:DD:EE:F1",
"fw_ver":"1.5.9_0170",
"hw_ver":"MTK7697",
"uid":"1971339949",
"model":"yeelink.light.bslamp1",
"wifi_fw_ver":"20180702211408",
"config_type":"app",
"ap":{
"rssi":-52,
"ssid":"WiFi",
"bssid":"AA:BB:CC:DD:EE:F0"
},
"netif":{
"localIp":"192.168.1.2",
"mask":"255.255.255.0",
"gw":"192.168.1.1",
"gw_mac":"AA:BB:CC:DD:EE:FF"
},
"mmfree":55168
},
"id":581
}
Request:
{"id":451,"method":"miIO.get_ota_state","params":[]}
Response:
{"result":["idle"],"id":451}
Request:
{"id":451,"method":"miIO.get_ota_progress","params":[]}
Response:
{"result":[101],"id":451}
Request:
{
"id":451,
"method":"miIO.config_router",
"params":[ ???? ]
}
Request:
{"id": 451, "method": "miIO.bind_stat", "params": []}
Response:
{"result":["ok"],"id":451}
Request:
{"id": 451, "method": "bind_key", "params": []}
Response:
{"result":["ok"],"id":451}
Request:
{"id": 451, "method": "miIO.wifi_assoc_state", "params": []}
Response:
{"result":{"state":"CONNECTING","auth_fail_count":0,"conn_succes_count":1,"conn_fail_count":0,"dhcp_fail_count":0},"id":451}
Response hangs
Request:
{"id": 451, "method": "get_aging_status", "params": []}
Response:
{"result":[0, 5, 1],"id":451}
Response hangs
Request:
{"id": 451, "method": "get_ps", "params": ["1"]}
Response:
{"result":[""],"id":451}
Request:
{"id": 451, "method": "cron_get", "params": [0]}
Response:
{"result":[],"id":451}
Hangs when executed
Request:
{"id": 451, "method": "miIO.ble_get_version", "params": []}
Response:
{"result":["1.5.9_0170"],"id":451}
Navigation
- Home
- Vacuum Robots
- Lumi Aqara Camera (experimental)
- Lumi Aqara Gateway (new Version, without Homekit)
- Documentation
- Dustcloud