mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-05 07:38:19 +00:00
dump_devinfo improvements (#657)
* dump_devinfo improvements * Scrub only the last three bytes for mac addresses * Add --target to allow creating fixtures based on discovery * Save fixtures directly to correct location, add --basedir to allow defining the location of repository root * Add --autosave to disable prompting for saving * Update fixtures for devices I have * Add fixture for HS110 hw 4.0 fw 1.0.4 * Improve help strings * Fix tests * Update devtools README * Default to discovery if no host/target given
This commit is contained in:
30
kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json
vendored
30
kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json
vendored
@@ -2,24 +2,24 @@
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 1300
|
||||
"power_mw": 2500
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 5,
|
||||
"color_temp": 2700,
|
||||
"brightness": 17,
|
||||
"color_temp": 2500,
|
||||
"err_code": 0,
|
||||
"hue": 1,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 1
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "bedroom",
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
@@ -29,7 +29,7 @@
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 332316,
|
||||
"heapsize": 334708,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
@@ -37,20 +37,20 @@
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"light_state": {
|
||||
"brightness": 5,
|
||||
"color_temp": 2700,
|
||||
"hue": 1,
|
||||
"brightness": 17,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 1
|
||||
"saturation": 0
|
||||
},
|
||||
"mic_mac": "000000000000",
|
||||
"mic_mac": "1C3BF3000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL130(EU)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 10,
|
||||
"brightness": 50,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
@@ -78,7 +78,7 @@
|
||||
"saturation": 75
|
||||
}
|
||||
],
|
||||
"rssi": -62,
|
||||
"rssi": -60,
|
||||
"sw_ver": "1.8.8 Build 190613 Rel.123436"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user