mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 19:53:34 +00:00
181 lines
4.5 KiB
JSON
181 lines
4.5 KiB
JSON
{
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "wireless",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "schedule",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "countdown",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "antitheft",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "account",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "synchronize",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "sunrise_sunset",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "led",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
}
|
|
]
|
|
},
|
|
"discovery_result": {
|
|
"device_id": "00000000000000000000000000000000",
|
|
"device_model": "P110(UK)",
|
|
"device_type": "SMART.TAPOPLUG",
|
|
"factory_default": false,
|
|
"ip": "127.0.0.123",
|
|
"is_support_iot_cloud": true,
|
|
"mac": "00-00-00-00-00-00",
|
|
"mgt_encrypt_schm": {
|
|
"encrypt_type": "KLAP",
|
|
"http_port": 80,
|
|
"is_support_https": false,
|
|
"lv": 2
|
|
},
|
|
"obd_src": "tplink",
|
|
"owner": "00000000000000000000000000000000"
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"default_states": {
|
|
"state": {},
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "0000000000000000000000000000000000000000",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.3.0 Build 230905 Rel.152200",
|
|
"has_set_location_info": true,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.0",
|
|
"ip": "127.0.0.123",
|
|
"lang": "en_US",
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "00-00-00-00-00-00",
|
|
"model": "P110",
|
|
"nickname": "VGFwaSBTbWFydCBQbHVnIDE=",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_time": 119335,
|
|
"overcurrent_status": "normal",
|
|
"overheated": false,
|
|
"power_protection_status": "normal",
|
|
"region": "Europe/London",
|
|
"rssi": -57,
|
|
"signal_level": 2,
|
|
"specs": "",
|
|
"ssid": "IyNNQVNLRUROQU1FIyM=",
|
|
"time_diff": 0,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_time": {
|
|
"region": "Europe/London",
|
|
"time_diff": 0,
|
|
"timestamp": 1701370224
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 75,
|
|
"past7": 69,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 2029,
|
|
"past7": 1964,
|
|
"today": 1130
|
|
},
|
|
"time_usage": {
|
|
"past30": 2104,
|
|
"past7": 2033,
|
|
"today": 1130
|
|
}
|
|
},
|
|
"get_energy_usage": {
|
|
"current_power": 0,
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2023-11-30 18:50:24",
|
|
"month_energy": 75,
|
|
"month_runtime": 2104,
|
|
"today_energy": 0,
|
|
"today_runtime": 1130
|
|
}
|
|
}
|