mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-29 19:51:57 +00:00
Some checks failed
CI / Perform linting checks (3.13) (push) Has been cancelled
CodeQL checks / Analyze (python) (push) Has been cancelled
CI / Python 3.11 on macos-latest (push) Has been cancelled
CI / Python 3.12 on macos-latest (push) Has been cancelled
CI / Python 3.13 on macos-latest (push) Has been cancelled
CI / Python 3.11 on ubuntu-latest (push) Has been cancelled
CI / Python 3.12 on ubuntu-latest (push) Has been cancelled
CI / Python 3.13 on ubuntu-latest (push) Has been cancelled
CI / Python 3.11 on windows-latest (push) Has been cancelled
CI / Python 3.12 on windows-latest (push) Has been cancelled
CI / Python 3.13 on windows-latest (push) Has been cancelled
Stale / stale (push) Has been cancelled
Adds device fixture and updates powerprotection module to accept the changed enabled key. --------- Co-authored-by: komodo <komodo@komo.do> Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
3486 lines
108 KiB
JSON
3486 lines
108 KiB
JSON
{
|
|
"child_devices": {
|
|
"SCRUBBED_CHILD_DEVICE_ID_1": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyAx",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2255,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 1,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 0,
|
|
"past7": 0,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 0,
|
|
"energy_wh": 0,
|
|
"power_mw": 0,
|
|
"voltage_mv": 120209
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:43",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1644
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
},
|
|
"SCRUBBED_CHILD_DEVICE_ID_2": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyAy",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2256,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 2,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 0,
|
|
"past7": 0,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 0,
|
|
"energy_wh": 0,
|
|
"power_mw": 0,
|
|
"voltage_mv": 120118
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:44",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1643
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
},
|
|
"SCRUBBED_CHILD_DEVICE_ID_3": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 38
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_3",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyAz",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2256,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 3,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 23,
|
|
"past7": 23,
|
|
"today": 23
|
|
},
|
|
"saved_power": {
|
|
"past30": 13,
|
|
"past7": 13,
|
|
"today": 13
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 335,
|
|
"energy_wh": 23,
|
|
"power_mw": 38617,
|
|
"voltage_mv": 119299
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:44",
|
|
"month_energy": 23,
|
|
"month_runtime": 36,
|
|
"today_energy": 23,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1633
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
},
|
|
"SCRUBBED_CHILD_DEVICE_ID_4": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 1
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_4",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyA0",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2257,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 4,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 0,
|
|
"past7": 0,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 85,
|
|
"energy_wh": 0,
|
|
"power_mw": 1999,
|
|
"voltage_mv": 119801
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:45",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1638
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
},
|
|
"SCRUBBED_CHILD_DEVICE_ID_5": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_5",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyA1",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2257,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 5,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 0,
|
|
"past7": 0,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 0,
|
|
"energy_wh": 0,
|
|
"power_mw": 0,
|
|
"voltage_mv": 120047
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:45",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1642
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
},
|
|
"SCRUBBED_CHILD_DEVICE_ID_6": {
|
|
"component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"get_antitheft_rules": {
|
|
"antitheft_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_auto_off_config": {
|
|
"delay_min": 120,
|
|
"enable": false
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_countdown_rules": {
|
|
"countdown_rule_max_count": 1,
|
|
"enable": false,
|
|
"rule_list": []
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_6",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "2379878FD20427DA56CDE7809167A79E",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": -1879048193,
|
|
"longitude": -1879048193,
|
|
"mac": "A829481CEB5D",
|
|
"model": "P316M",
|
|
"nickname": "U21hcnQgUGx1ZyA2",
|
|
"oem_id": "B956FCA0B4CAEE8BE9E3E923D29DC8A0",
|
|
"on_off": 1,
|
|
"on_time": 2257,
|
|
"original_device_id": "8022F9F21DB6889D90BF8E7AAB04CD47242AAAF9",
|
|
"overcurrent_status": "normal",
|
|
"position": 6,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_usage": {
|
|
"power_usage": {
|
|
"past30": 0,
|
|
"past7": 0,
|
|
"today": 0
|
|
},
|
|
"saved_power": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
},
|
|
"time_usage": {
|
|
"past30": 36,
|
|
"past7": 36,
|
|
"today": 36
|
|
}
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 0,
|
|
"energy_wh": 0,
|
|
"power_mw": 0,
|
|
"voltage_mv": 119868
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:45",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1639
|
|
},
|
|
"get_next_event": {},
|
|
"get_protection_power": {
|
|
"protection_enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_schedule_rules": {
|
|
"enable": false,
|
|
"rule_list": [],
|
|
"schedule_rule_max_count": 32,
|
|
"start_index": 0,
|
|
"sum": 0
|
|
}
|
|
}
|
|
},
|
|
"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": "control_child",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "child_device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "matter",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
]
|
|
},
|
|
"discovery_result": {
|
|
"error_code": 0,
|
|
"result": {
|
|
"device_id": "00000000000000000000000000000000",
|
|
"device_model": "P316M(US)",
|
|
"device_type": "SMART.TAPOPLUG",
|
|
"factory_default": false,
|
|
"ip": "127.0.0.123",
|
|
"is_support_iot_cloud": true,
|
|
"mac": "A8-29-48-00-00-00",
|
|
"mgt_encrypt_schm": {
|
|
"encrypt_type": "KLAP",
|
|
"http_port": 80,
|
|
"is_support_https": false,
|
|
"lv": 2
|
|
},
|
|
"obd_src": "tplink",
|
|
"owner": "00000000000000000000000000000000",
|
|
"protocol_version": 1
|
|
}
|
|
},
|
|
"get_auto_update_info": {
|
|
"enable": true,
|
|
"random_range": 120,
|
|
"time": 180
|
|
},
|
|
"get_child_device_component_list": {
|
|
"child_component_list": [
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_1"
|
|
},
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_2"
|
|
},
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_3"
|
|
},
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_4"
|
|
},
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_5"
|
|
},
|
|
{
|
|
"component_list": [
|
|
{
|
|
"id": "device",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "time",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "device_local_time",
|
|
"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": "cloud_connect",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "default_states",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "localSmart",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "auto_off",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "energy_monitoring",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "current_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "power_protection",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "charging_protection",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_6"
|
|
}
|
|
],
|
|
"start_index": 0,
|
|
"sum": 6
|
|
},
|
|
"get_child_device_list": {
|
|
"child_device_list": [
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_1",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 1,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 2,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_3",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 3,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_4",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 4,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_5",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 5,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
{
|
|
"auto_off_remain_time": 0,
|
|
"auto_off_status": "off",
|
|
"avatar": "plug",
|
|
"bind_count": 1,
|
|
"category": "plug.powerstrip.sub-plug",
|
|
"charging_status": "normal",
|
|
"default_states": {
|
|
"type": "last_states"
|
|
},
|
|
"device_id": "SCRUBBED_CHILD_DEVICE_ID_6",
|
|
"device_on": true,
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"is_usb": false,
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A82948000000",
|
|
"model": "P316M",
|
|
"nickname": "I01BU0tFRF9OQU1FIw==",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"on_off": 1,
|
|
"on_time": 2253,
|
|
"original_device_id": "0000000000000000000000000000000000000000",
|
|
"overcurrent_status": "normal",
|
|
"position": 6,
|
|
"power_protection_status": "normal",
|
|
"region": "America/New_York",
|
|
"slot_number": 6,
|
|
"status_follow_edge": true,
|
|
"type": "SMART.TAPOPLUG"
|
|
}
|
|
],
|
|
"start_index": 0,
|
|
"sum": 6
|
|
},
|
|
"get_connect_cloud_state": {
|
|
"status": 0
|
|
},
|
|
"get_current_power": {
|
|
"current_power": 0
|
|
},
|
|
"get_device_info": {
|
|
"avatar": "",
|
|
"device_id": "0000000000000000000000000000000000000000",
|
|
"fw_id": "00000000000000000000000000000000",
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"has_set_location_info": false,
|
|
"hw_id": "00000000000000000000000000000000",
|
|
"hw_ver": "1.6",
|
|
"ip": "127.0.0.123",
|
|
"lang": "",
|
|
"latitude": 0,
|
|
"longitude": 0,
|
|
"mac": "A8-29-48-00-00-00",
|
|
"model": "P316M",
|
|
"nickname": "",
|
|
"oem_id": "00000000000000000000000000000000",
|
|
"region": "America/New_York",
|
|
"rssi": -47,
|
|
"signal_level": 3,
|
|
"specs": "US",
|
|
"ssid": "I01BU0tFRF9TU0lEIw==",
|
|
"time_diff": -300,
|
|
"type": "SMART.TAPOPLUG"
|
|
},
|
|
"get_device_time": {
|
|
"region": "America/New_York",
|
|
"time_diff": -300,
|
|
"timestamp": 1753309182
|
|
},
|
|
"get_electricity_price_config": {
|
|
"constant_price": 0,
|
|
"time_of_use_config": {
|
|
"summer": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
"winter": {
|
|
"midpeak": 0,
|
|
"offpeak": 0,
|
|
"onpeak": 0,
|
|
"period": [
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"weekday_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"weekend_config": [
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"type": "constant"
|
|
},
|
|
"get_emeter_data": {
|
|
"current_ma": 0,
|
|
"energy_wh": 0,
|
|
"power_mw": 0,
|
|
"voltage_mv": 120209
|
|
},
|
|
"get_emeter_vgain_igain": {
|
|
"data": [
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 0,
|
|
"vgain": 30247
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 1,
|
|
"vgain": 30224
|
|
},
|
|
{
|
|
"igain": 3821,
|
|
"slot_id": 2,
|
|
"vgain": 29991
|
|
},
|
|
{
|
|
"igain": 3803,
|
|
"slot_id": 3,
|
|
"vgain": 30096
|
|
},
|
|
{
|
|
"igain": 3779,
|
|
"slot_id": 4,
|
|
"vgain": 30203
|
|
},
|
|
{
|
|
"igain": 3852,
|
|
"slot_id": 5,
|
|
"vgain": 30158
|
|
}
|
|
]
|
|
},
|
|
"get_energy_usage": {
|
|
"current_power": 0,
|
|
"electricity_charge": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"local_time": "2025-07-23 18:19:43",
|
|
"month_energy": 0,
|
|
"month_runtime": 36,
|
|
"today_energy": 0,
|
|
"today_runtime": 36
|
|
},
|
|
"get_fw_download_state": {
|
|
"auto_upgrade": false,
|
|
"download_progress": 0,
|
|
"reboot_time": 5,
|
|
"status": 0,
|
|
"upgrade_time": 5
|
|
},
|
|
"get_latest_fw": {
|
|
"fw_size": 0,
|
|
"fw_ver": "1.0.5 Build 250306 Rel.151943",
|
|
"hw_id": "",
|
|
"need_to_upgrade": false,
|
|
"oem_id": "",
|
|
"release_date": "",
|
|
"release_note": "",
|
|
"type": 0
|
|
},
|
|
"get_led_info": {
|
|
"led_rule": "always",
|
|
"led_status": true,
|
|
"night_mode": {
|
|
"end_time": 420,
|
|
"night_mode_type": "custom",
|
|
"start_time": 1320
|
|
}
|
|
},
|
|
"get_matter_setup_info": {
|
|
"setup_code": "00000000000",
|
|
"setup_payload": "00:0000000000000000000"
|
|
},
|
|
"get_max_power": {
|
|
"max_power": 1644
|
|
},
|
|
"get_protection_power": {
|
|
"enabled": false,
|
|
"protection_power": 0
|
|
},
|
|
"get_wireless_scan_info": {
|
|
"ap_list": [
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 3,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 3,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 3,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 3,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 2,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
},
|
|
{
|
|
"bssid": "000000000000",
|
|
"channel": 0,
|
|
"cipher_type": 2,
|
|
"key_type": "wpa2_psk",
|
|
"signal_level": 1,
|
|
"ssid": "I01BU0tFRF9TU0lEIw=="
|
|
}
|
|
],
|
|
"start_index": 0,
|
|
"sum": 21,
|
|
"wep_supported": false
|
|
},
|
|
"qs_component_nego": {
|
|
"component_list": [
|
|
{
|
|
"id": "quick_setup",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "sunrise_sunset",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "ble_whole_setup",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "matter",
|
|
"ver_code": 3
|
|
},
|
|
{
|
|
"id": "iot_cloud",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "inherit",
|
|
"ver_code": 1
|
|
},
|
|
{
|
|
"id": "firmware",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "control_child",
|
|
"ver_code": 2
|
|
},
|
|
{
|
|
"id": "child_device",
|
|
"ver_code": 2
|
|
}
|
|
],
|
|
"extra_info": {
|
|
"device_model": "P316M",
|
|
"device_type": "SMART.TAPOPLUG",
|
|
"is_klap": true
|
|
}
|
|
}
|
|
}
|