Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding KL400L10(US)_1.0_1.0.10 fixture #1539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The following devices have been tested and confirmed as working. If your device
- **Power Strips**: EP40, EP40M[^1], HS107, HS300, KP200, KP303, KP400
- **Wall Switches**: ES20M, HS200[^2], HS210, HS220[^2], KP405, KS200, KS200M, KS205[^1], KS220, KS220M, KS225[^1], KS230, KS240[^1]
- **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB100, LB110
- **Light Strips**: KL400L5, KL420L5, KL430
- **Light Strips**: KL400L10, KL400L5, KL420L5, KL430
- **Hubs**: KH100[^1]
- **Hub-Connected Devices[^3]**: KE100[^1]

Expand Down
2 changes: 2 additions & 0 deletions SUPPORTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th

### Light Strips

- **KL400L10**
- Hardware: 1.0 (US) / Firmware: 1.0.10
- **KL400L5**
- Hardware: 1.0 (US) / Firmware: 1.0.5
- Hardware: 1.0 (US) / Firmware: 1.0.8
Expand Down
2 changes: 1 addition & 1 deletion tests/device_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
)

# Kasa (IOT-prefixed) bulbs
BULBS_IOT_LIGHT_STRIP = {"KL400L5", "KL430", "KL420L5"}
BULBS_IOT_LIGHT_STRIP = {"KL400L5", "KL400L10", "KL430", "KL420L5"}
BULBS_IOT_VARIABLE_TEMP = {
"LB120",
"LB130",
Expand Down
144 changes: 144 additions & 0 deletions tests/fixtures/iot/KL400L10(US)_1.0_1.0.10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"smartlife.iot.common.cloud": {
"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": "[email protected]"
},
"get_intl_fw_list": {
"err_code": 0,
"fw_list": []
}
},
"smartlife.iot.common.emeter": {
"get_realtime": {
"err_code": 0,
"power_mw": 1800,
"total_wh": 443
}
},
"smartlife.iot.common.schedule": {
"get_next_action": {
"err_code": 0,
"type": -1
},
"get_rules": {
"enable": 0,
"err_code": 0,
"rule_list": [],
"version": 2
}
},
"smartlife.iot.lightStrip": {
"get_default_behavior": {
"err_code": 0,
"hard_on": {
"mode": "last_status"
},
"soft_on": {
"mode": "last_status"
}
},
"get_light_details": {
"color_rendering_index": 90,
"err_code": 0,
"incandescent_equivalent": 60,
"lamp_beam_angle": 220,
"max_lumens": 800,
"max_voltage": 120,
"min_voltage": 100,
"wattage": 10
},
"get_light_state": {
"err_code": 0,
"groups": [
[
0,
0,
251,
0,
10,
0
]
],
"length": 1,
"mode": "normal",
"on_off": 1,
"transition": 500
}
},
"system": {
"get_sysinfo": {
"LEF": 0,
"active_mode": "none",
"alias": "#MASKED_NAME#",
"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": 1,
"light_state": {
"brightness": 10,
"color_temp": 0,
"hue": 251,
"mode": "normal",
"on_off": 1,
"saturation": 0
},
"lighting_effect_state": {
"brightness": 10,
"custom": 0,
"enable": 0,
"id": "ojqpUUxdGHoIugGPknrUcRoyJiItsjuE",
"name": "Lightning"
},
"longitude_i": 0,
"mic_mac": "D8:44:89:00:00:00",
"mic_type": "IOT.SMARTBULB",
"model": "KL400L10(US)",
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"preferred_state": [
{
"brightness": 100,
"color_temp": 0,
"hue": 1,
"index": 0,
"mode": 1,
"saturation": 100
},
{
"brightness": 15,
"color_temp": 0,
"hue": 251,
"index": 1,
"mode": 1,
"saturation": 0
}
],
"rssi": -38,
"status": "new",
"sw_ver": "1.0.10 Build 220929 Rel.170054"
}
}
}
1 change: 1 addition & 0 deletions tests/iot/test_iotbulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ async def test_modify_preset_payloads(dev: IotBulb, preset, payload, mocker):
"saturation": All(int, Range(min=0, max=100)),
"length": Optional(int),
"transition": Optional(int),
"groups": Optional(list[int]),
"dft_on_state": Optional(
{
"brightness": All(int, Range(min=0, max=100)),
Expand Down
Loading