mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-01-17 01:02:42 +00:00
Add some device fixtures (#948)
Adds some device fixtures by courtesy of @jimboca, thanks! This is a slightly patched and rebased version of #441. --------- Co-authored-by: JimBo <jimboca3@gmail.com> Co-authored-by: sdb9696 <steven.beth@gmail.com>
This commit is contained in:
61
kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json
vendored
61
kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json
vendored
@@ -7,8 +7,8 @@
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 8729,
|
||||
"total_wh": 21,
|
||||
"power_mw": 2725,
|
||||
"total_wh": 1193,
|
||||
"voltage_mv": 0
|
||||
}
|
||||
},
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"active_mode": "schedule",
|
||||
"alias": "Bedroom Lightstrip",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
@@ -42,27 +42,66 @@
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"brightness": 50,
|
||||
"color_temp": 3630,
|
||||
"brightness": 15,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 50,
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "",
|
||||
"name": ""
|
||||
"id": "bCTItKETDFfrKANolgldxfgOakaarARs",
|
||||
"name": "Flicker"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "CC32E5230F55",
|
||||
"mic_mac": "CC32E5000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -56,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"id": "QglBhMShPHUAuxLqzNEefFrGiJwahOmz",
|
||||
"index": 0,
|
||||
"mode": 2
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"id": "bCTItKETDFfrKANolgldxfgOakaarARs",
|
||||
"index": 1,
|
||||
"mode": 2
|
||||
},
|
||||
{
|
||||
"brightness": 34,
|
||||
"color_temp": 0,
|
||||
"hue": 7,
|
||||
"index": 2,
|
||||
"mode": 1,
|
||||
"saturation": 49
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 0,
|
||||
"hue": 4,
|
||||
"index": 3,
|
||||
"mode": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 15,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"index": 4,
|
||||
"mode": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.10 Build 200522 Rel.104340"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user