mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-27 17:16:24 +00:00
Add fixture file for KL135 (#263)
* Create new fixture file for KL135 * Add KL135 to COLOR_BULBS and VARIABLE_TEMP lists
This commit is contained in:
parent
a468d520c0
commit
6b18c5cd55
@ -26,8 +26,8 @@ SUPPORTED_DEVICES = glob.glob(
|
|||||||
|
|
||||||
|
|
||||||
LIGHT_STRIPS = {"KL400", "KL430"}
|
LIGHT_STRIPS = {"KL400", "KL430"}
|
||||||
VARIABLE_TEMP = {"LB120", "LB130", "KL120", "KL125", "KL130", "KL430"}
|
VARIABLE_TEMP = {"LB120", "LB130", "KL120", "KL125", "KL130", "KL135", "KL430"}
|
||||||
COLOR_BULBS = {"LB130", "KL125", "KL130", *LIGHT_STRIPS}
|
COLOR_BULBS = {"LB130", "KL125", "KL130", "KL135", *LIGHT_STRIPS}
|
||||||
BULBS = {
|
BULBS = {
|
||||||
"KL50",
|
"KL50",
|
||||||
"KL60",
|
"KL60",
|
||||||
|
89
kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json
vendored
Normal file
89
kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json
vendored
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
"smartlife.iot.common.emeter": {
|
||||||
|
"get_realtime": {
|
||||||
|
"err_code": 0,
|
||||||
|
"power_mw": 900,
|
||||||
|
"total_wh": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"smartlife.iot.smartbulb.lightingservice": {
|
||||||
|
"get_light_state": {
|
||||||
|
"brightness": 1,
|
||||||
|
"color_temp": 0,
|
||||||
|
"err_code": 0,
|
||||||
|
"hue": 37,
|
||||||
|
"mode": "normal",
|
||||||
|
"on_off": 1,
|
||||||
|
"saturation": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"system": {
|
||||||
|
"get_sysinfo": {
|
||||||
|
"active_mode": "none",
|
||||||
|
"alias": "KL135 Bulb",
|
||||||
|
"ctrl_protocols": {
|
||||||
|
"name": "Linkie",
|
||||||
|
"version": "1.0"
|
||||||
|
},
|
||||||
|
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||||
|
"dev_state": "normal",
|
||||||
|
"deviceId": "0000000000000000000000000000000000000000",
|
||||||
|
"disco_ver": "1.0",
|
||||||
|
"err_code": 0,
|
||||||
|
"hwId": "00000000000000000000000000000000",
|
||||||
|
"hw_ver": "1.0",
|
||||||
|
"is_color": 1,
|
||||||
|
"is_dimmable": 1,
|
||||||
|
"is_factory": false,
|
||||||
|
"is_variable_color_temp": 1,
|
||||||
|
"latitude_i": 0,
|
||||||
|
"light_state": {
|
||||||
|
"brightness": 1,
|
||||||
|
"color_temp": 0,
|
||||||
|
"hue": 37,
|
||||||
|
"mode": "normal",
|
||||||
|
"on_off": 1,
|
||||||
|
"saturation": 100
|
||||||
|
},
|
||||||
|
"longitude_i": 0,
|
||||||
|
"mic_mac": "000000000000",
|
||||||
|
"mic_type": "IOT.SMARTBULB",
|
||||||
|
"model": "KL135(US)",
|
||||||
|
"obd_src": "tplink",
|
||||||
|
"oemId": "00000000000000000000000000000000",
|
||||||
|
"preferred_state": [
|
||||||
|
{
|
||||||
|
"brightness": 50,
|
||||||
|
"color_temp": 2700,
|
||||||
|
"hue": 0,
|
||||||
|
"index": 0,
|
||||||
|
"saturation": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 100,
|
||||||
|
"color_temp": 0,
|
||||||
|
"hue": 0,
|
||||||
|
"index": 1,
|
||||||
|
"saturation": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 100,
|
||||||
|
"color_temp": 0,
|
||||||
|
"hue": 120,
|
||||||
|
"index": 2,
|
||||||
|
"saturation": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 1,
|
||||||
|
"color_temp": 0,
|
||||||
|
"hue": 37,
|
||||||
|
"index": 3,
|
||||||
|
"saturation": 100
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rssi": -69,
|
||||||
|
"status": "new",
|
||||||
|
"sw_ver": "1.0.6 Build 210330 Rel.173743"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user