Add fixtures for kl420 (#339)

* Add fixtures for kl420

* readme
This commit is contained in:
J. Nick Koston 2022-04-13 14:51:15 -10:00 committed by GitHub
parent 631762b50c
commit d2581bf077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 1 deletions

View File

@ -155,6 +155,7 @@ or the `parse_pcap.py` script contained inside the `devtools` directory.
### Light strips
* KL400
* KL420
* KL430
**Contributions (be it adding missing features, fixing bugs or improving documentation) are more than welcome, feel free to submit pull requests!**

View File

@ -25,7 +25,7 @@ SUPPORTED_DEVICES = glob.glob(
)
LIGHT_STRIPS = {"KL400", "KL430"}
LIGHT_STRIPS = {"KL400", "KL430", "KL420"}
VARIABLE_TEMP = {"LB120", "LB130", "KL120", "KL125", "KL130", "KL135", "KL430"}
COLOR_BULBS = {"LB130", "KL125", "KL130", "KL135", *LIGHT_STRIPS}
BULBS = {

View File

@ -0,0 +1,57 @@
{
"smartlife.iot.common.emeter": {
"get_realtime": {
"err_code": 0,
"power_mw": 1503,
"total_wh": 0
}
},
"system": {
"get_sysinfo": {
"LEF": 1,
"active_mode": "none",
"alias": "Kl420 test",
"ctrl_protocols": {
"name": "Linkie",
"version": "1.0"
},
"description": "Kasa Smart Light Strip, Multicolor",
"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": 0,
"latitude_i": 0,
"length": 50,
"light_state": {
"brightness": 100,
"color_temp": 6500,
"hue": 0,
"mode": "normal",
"on_off": 1,
"saturation": 0
},
"lighting_effect_state": {
"brightness": 50,
"custom": 0,
"enable": 0,
"id": "",
"name": "station"
},
"longitude_i": 0,
"mic_mac": "00:00:00:00:00:00",
"mic_type": "IOT.SMARTBULB",
"model": "KL420L5(US)",
"oemId": "00000000000000000000000000000000",
"preferred_state": [],
"rssi": -44,
"status": "new",
"sw_ver": "1.0.2 Build 211009 Rel.164949"
}
}
}