mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
8cb5c2e180
Some checks failed
CI / Perform linting checks (3.13) (push) Waiting to run
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
CodeQL checks / Analyze (python) (push) Has been cancelled
This PR does a few related things to dump_devinfo: - Store the raw discovery result in the fixture. - Consolidate redaction logic so it's not duplicated in dump_devinfo. - Update existing fixtures to: - Store raw discovery result under `result` - Use `SCRUBBED_CHILD_DEVICE_ID` everywhere - Have correct values as per the consolidated redactors.
185 lines
5.0 KiB
JSON
185 lines
5.0 KiB
JSON
{
|
|
"cnCloud": {
|
|
"get_info": {
|
|
"binded": 1,
|
|
"cld_connection": 1,
|
|
"err_code": 0,
|
|
"fwDlPage": "",
|
|
"fwNotifyType": -1,
|
|
"illegalType": 0,
|
|
"server": "n-devs.tplinkcloud.com",
|
|
"stopConnect": 0,
|
|
"tcspInfo": "",
|
|
"tcspStatus": 1,
|
|
"username": "user@example.com"
|
|
},
|
|
"get_intl_fw_list": {
|
|
"err_code": 0,
|
|
"fw_list": []
|
|
}
|
|
},
|
|
"schedule": {
|
|
"get_next_action": {
|
|
"err_code": 0,
|
|
"type": -1
|
|
},
|
|
"get_rules": {
|
|
"enable": 1,
|
|
"err_code": 0,
|
|
"rule_list": [],
|
|
"version": 2
|
|
}
|
|
},
|
|
"smartlife.iot.LAS": {
|
|
"get_adc_value": {
|
|
"err_code": 0,
|
|
"type": 2,
|
|
"value": 0
|
|
},
|
|
"get_config": {
|
|
"devs": [
|
|
{
|
|
"dark_index": 0,
|
|
"enable": 1,
|
|
"hw_id": 0,
|
|
"level_array": [
|
|
{
|
|
"adc": 390,
|
|
"name": "cloudy",
|
|
"value": 15
|
|
},
|
|
{
|
|
"adc": 300,
|
|
"name": "overcast",
|
|
"value": 11
|
|
},
|
|
{
|
|
"adc": 222,
|
|
"name": "dawn",
|
|
"value": 8
|
|
},
|
|
{
|
|
"adc": 222,
|
|
"name": "twilight",
|
|
"value": 8
|
|
},
|
|
{
|
|
"adc": 111,
|
|
"name": "total darkness",
|
|
"value": 4
|
|
},
|
|
{
|
|
"adc": 2400,
|
|
"name": "custom",
|
|
"value": 94
|
|
}
|
|
],
|
|
"max_adc": 2550,
|
|
"min_adc": 0
|
|
}
|
|
],
|
|
"err_code": 0,
|
|
"ver": "1.0"
|
|
},
|
|
"get_current_brt": {
|
|
"err_code": 0,
|
|
"value": 0
|
|
},
|
|
"get_dark_status": {
|
|
"bDark": 1,
|
|
"err_code": 0
|
|
}
|
|
},
|
|
"smartlife.iot.PIR": {
|
|
"get_adc_value": {
|
|
"err_code": 0,
|
|
"value": 2107
|
|
},
|
|
"get_config": {
|
|
"array": [
|
|
80,
|
|
50,
|
|
20,
|
|
0
|
|
],
|
|
"cold_time": 120000,
|
|
"enable": 0,
|
|
"err_code": 0,
|
|
"max_adc": 4095,
|
|
"min_adc": 0,
|
|
"trigger_index": 1,
|
|
"version": "1.0"
|
|
}
|
|
},
|
|
"smartlife.iot.dimmer": {
|
|
"get_default_behavior": {
|
|
"double_click": {
|
|
"mode": "unknown"
|
|
},
|
|
"err_code": 0,
|
|
"long_press": {
|
|
"mode": "unknown"
|
|
}
|
|
},
|
|
"get_dimmer_parameters": {
|
|
"bulb_type": 1,
|
|
"err_code": 0,
|
|
"fadeOffTime": 0,
|
|
"fadeOnTime": 0,
|
|
"gentleOffTime": 10000,
|
|
"gentleOnTime": 3000,
|
|
"minThreshold": 5,
|
|
"rampRate": 30
|
|
}
|
|
},
|
|
"system": {
|
|
"get_sysinfo": {
|
|
"active_mode": "none",
|
|
"alias": "#MASKED_NAME#",
|
|
"brightness": 100,
|
|
"dev_name": "Wi-Fi Smart Dimmer with sensor",
|
|
"deviceId": "0000000000000000000000000000000000000000",
|
|
"err_code": 0,
|
|
"feature": "TIM",
|
|
"hwId": "00000000000000000000000000000000",
|
|
"hw_ver": "1.0",
|
|
"icon_hash": "",
|
|
"latitude_i": 0,
|
|
"led_off": 0,
|
|
"longitude_i": 0,
|
|
"mac": "28:87:BA:00:00:00",
|
|
"mic_type": "IOT.SMARTPLUGSWITCH",
|
|
"model": "ES20M(US)",
|
|
"next_action": {
|
|
"type": -1
|
|
},
|
|
"obd_src": "tplink",
|
|
"oemId": "00000000000000000000000000000000",
|
|
"on_time": 0,
|
|
"preferred_state": [
|
|
{
|
|
"brightness": 100,
|
|
"index": 0
|
|
},
|
|
{
|
|
"brightness": 75,
|
|
"index": 1
|
|
},
|
|
{
|
|
"brightness": 50,
|
|
"index": 2
|
|
},
|
|
{
|
|
"brightness": 25,
|
|
"index": 3
|
|
}
|
|
],
|
|
"relay_state": 0,
|
|
"rssi": -57,
|
|
"status": "new",
|
|
"sw_ver": "1.0.11 Build 240514 Rel.110351",
|
|
"updating": 0
|
|
}
|
|
}
|
|
}
|