From 422194e5ebe4a8c78e96e10ae422382c55285b58 Mon Sep 17 00:00:00 2001 From: "Teemu R." Date: Fri, 27 Nov 2026 23:57:42 +0100 Subject: [PATCH] Mark known unsupported firmware versions in the supported device lists (#1865) Some of our fixtures (EP25, KP125M, P110, P110M, RV20 Max Plus, S505D) are from firmware versions using TPAP encryption, which is not currently supported, but the generated device lists present them as working. This PR marks such versions as not supported in the device lists, and adds a warning for TPAP users that enabling third-party compatibility in the official app may help on some devices. --- README.md | 16 +++--- SUPPORTED.md | 20 ++++--- devtools/generate_supported.py | 96 ++++++++++++++++++++++++++-------- 3 files changed, 96 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index a4c0e07c..3e906e36 100644 --- a/README.md +++ b/README.md @@ -178,15 +178,18 @@ The following devices have been tested and confirmed as working. If your device > [!NOTE] > The hub attached Tapo buttons S200B and S200D do not currently support alerting when the button is pressed. -> [!NOTE] +> [!WARNING] > Some firmware versions of Tapo Cameras will not authenticate unless you enable "Tapo Lab" > "Third-Party Compatibility" in the native Tapo app. > Alternatively, you can factory reset and then prevent the device from accessing the internet. +> +> Devices using the TPAP encryption, found on some newer devices and/or firmware versions, are not currently supported. +> Enabling third-party compatibility may help on some of them as well. ### Supported Kasa devices -- **Plugs**: EP10, EP25[^2], HS100[^2], HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M[^1], KP401 +- **Plugs**: EP10, EP25[^2][^4], HS100[^2], HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M[^1][^4], KP401 - **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[^2], KS240[^1] - **Bulbs**: KL110, KL110B, KL120, KL125, KL130, KL135, KL50, KL60, LB100, LB110, LB130 @@ -196,21 +199,22 @@ The following devices have been tested and confirmed as working. If your device ### Supported Tapo[^1] devices -- **Plugs**: P100, P105, P110, P110M, P115, P116M, P125M, P135, TP10, TP15 +- **Plugs**: P100, P105, P110[^4], P110M[^4], P115, P116M, P125M, P135, TP10, TP15 - **Power Strips**: P210M, P300, P304M, P306, P316M, TP25 -- **Wall Switches**: S210, S220, S500, S500D, S505, S505D, S515D, TS15 +- **Wall Switches**: S210, S220, S500, S500D, S505, S505D[^4], S515D, TS15 - **Bulbs**: L430C, L430P, L510B, L510E, L530B, L530E, L530EA, L535E, L630 - **Light Strips**: L900-10, L900-5, L920-5, L930-5 - **Cameras**: C100, C101, C110, C200, C210, C220, C225, C325WB, C460, C520WS, C720, TC40, TC65, TC70 - **Doorbells and chimes**: D100C, D130, D230, TD21 -- **Vacuums**: RV20 Max Plus, RV30 Max +- **Vacuums**: RV20 Max Plus[^4], RV30 Max - **Hubs**: H100, H200 - **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315 - [^1]: Model requires authentication [^2]: Newer versions require authentication [^3]: Devices may work across TAPO/KASA branded hubs +[^4]: Some versions are not supported, see SUPPORTED.md + See [supported devices in our documentation](SUPPORTED.md) for more detailed information about tested hardware and software versions. diff --git a/SUPPORTED.md b/SUPPORTED.md index 5468e6b2..82860480 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -5,9 +5,13 @@ The following devices have been tested and confirmed as working. If your device > [!NOTE] > The hub attached Tapo buttons S200B and S200D do not currently support alerting when the button is pressed. -> [!NOTE] +> [!WARNING] > Some firmware versions of Tapo Cameras will not authenticate unless you enable "Tapo Lab" > "Third-Party Compatibility" in the native Tapo app. > Alternatively, you can factory reset and then prevent the device from accessing the internet. +> +> Devices using the TPAP encryption, found on some newer devices and/or firmware versions, are not currently supported. +> Enabling third-party compatibility may help on some of them as well. +> Firmware versions known to use it are marked as not supported in the list below. @@ -24,7 +28,7 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th - Hardware: 2.6 (US) / Firmware: 1.0.1[^1] - Hardware: 2.6 (US) / Firmware: 1.0.2[^1] - Hardware: 2.6 (US) / Firmware: 1.0.3[^1] - - Hardware: 2.6 (US) / Firmware: 1.4.1[^1] + - Hardware: 2.6 (US) / Firmware: 1.4.1[^1] (not supported: TPAP encryption) - **HS100** - Hardware: 1.0 (UK) / Firmware: 1.2.6 - Hardware: 4.1 (UK) / Firmware: 1.1.0[^1] @@ -57,7 +61,7 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th - **KP125M** - Hardware: 1.0 (US) / Firmware: 1.1.3[^1] - Hardware: 1.0 (US) / Firmware: 1.2.3[^1] - - Hardware: 1.0 (US) / Firmware: 1.4.1[^1] + - Hardware: 1.0 (US) / Firmware: 1.4.1[^1] (not supported: TPAP encryption) - **KP401** - Hardware: 1.0 (US) / Firmware: 1.0.0 @@ -225,12 +229,12 @@ All Tapo devices require authentication.
Hub-Connected Devices may work acros - Hardware: 1.0 (AU) / Firmware: 1.3.1 - Hardware: 1.0 (EU) / Firmware: 1.0.7 - Hardware: 1.0 (EU) / Firmware: 1.2.3 - - Hardware: 1.0 (EU) / Firmware: 1.4.0 + - Hardware: 1.0 (EU) / Firmware: 1.4.0 (not supported: TPAP encryption) - Hardware: 1.0 (UK) / Firmware: 1.3.0 - **P110M** - Hardware: 1.0 (AU) / Firmware: 1.2.3 - Hardware: 1.0 (EU) / Firmware: 1.2.3 - - Hardware: 1.0 (FR) / Firmware: 1.4.1 + - Hardware: 1.0 (FR) / Firmware: 1.4.1 (not supported: TPAP encryption) - **P115** - Hardware: 1.0 (EU) / Firmware: 1.2.3 - Hardware: 1.0 (US) / Firmware: 1.1.3 @@ -278,7 +282,7 @@ All Tapo devices require authentication.
Hub-Connected Devices may work acros - Hardware: 1.0 (US) / Firmware: 1.0.2 - **S505D** - Hardware: 1.0 (US) / Firmware: 1.1.0 - - Hardware: 1.0 (US) / Firmware: 1.4.0 + - Hardware: 1.0 (US) / Firmware: 1.4.0 (not supported: TPAP encryption) - **S515D** - Hardware: 1.6 (US) / Firmware: 1.0.4 - **TS15** @@ -377,7 +381,7 @@ All Tapo devices require authentication.
Hub-Connected Devices may work acros - **RV20 Max Plus** - Hardware: 1.0 (EU) / Firmware: 1.0.7 - - Hardware: 1.0 (EU) / Firmware: 1.3.0 + - Hardware: 1.0 (EU) / Firmware: 1.3.0 (not supported: TPAP encryption) - **RV30 Max** - Hardware: 1.0 (US) / Firmware: 1.2.0 @@ -418,5 +422,5 @@ All Tapo devices require authentication.
Hub-Connected Devices may work acros - Hardware: 1.0 (US) / Firmware: 1.8.0 - [^1]: Model requires authentication + diff --git a/devtools/generate_supported.py b/devtools/generate_supported.py index 669a2de2..e1758f75 100755 --- a/devtools/generate_supported.py +++ b/devtools/generate_supported.py @@ -23,6 +23,7 @@ class SupportedVersion(NamedTuple): hw: str fw: str auth: bool + unsupported: str = "" # The order of devices in this dict drives the display order @@ -44,15 +45,40 @@ DEVICE_TYPE_TO_PRODUCT_GROUP = { DeviceType.Thermostat: "Hub-Connected Devices", } +# Footnotes shared by README.md and SUPPORTED.md, a block defines those it uses +FOOTNOTES = { + "auth": (1, "Model requires authentication"), + "auth_newer": (2, "Newer versions require authentication"), + "hub": (3, "Devices may work across TAPO/KASA branded hubs"), + "unsupported": (4, "Some versions are not supported, see SUPPORTED.md"), +} + + +def _fn(key: str) -> str: + return f"[^{FOOTNOTES[key][0]}]" + + +# Fixtures of versions known not to work, keyed by path below FIXTURE_FOLDER, +# with the reason shown in SUPPORTED.md +UNSUPPORTED_VERSIONS = { + "smart/EP25(US)_2.6_1.4.1.json": "TPAP encryption", + "smart/KP125M(US)_1.0_1.4.1.json": "TPAP encryption", + "smart/P110(EU)_1.0_1.4.0.json": "TPAP encryption", + "smart/P110M(FR)_1.0_1.4.1.json": "TPAP encryption", + "smart/RV20 Max Plus(EU)_1.0_1.3.0.json": "TPAP encryption", + "smart/S505D(US)_1.0_1.4.0.json": "TPAP encryption", +} + SUPPORTED_FILENAME = "SUPPORTED.md" README_FILENAME = "README.md" -IOT_FOLDER = "tests/fixtures/iot/" -SMART_FOLDER = "tests/fixtures/smart/" -SMART_CHILD_FOLDER = "tests/fixtures/smart/child" -SMARTCAM_FOLDER = "tests/fixtures/smartcam/" -SMARTCAM_CHILD_FOLDER = "tests/fixtures/smartcam/child" +FIXTURE_FOLDER = Path("tests/fixtures") +IOT_FOLDER = FIXTURE_FOLDER / "iot" +SMART_FOLDER = FIXTURE_FOLDER / "smart" +SMART_CHILD_FOLDER = SMART_FOLDER / "child" +SMARTCAM_FOLDER = FIXTURE_FOLDER / "smartcam" +SMARTCAM_CHILD_FOLDER = SMARTCAM_FOLDER / "child" def generate_supported(args): @@ -66,11 +92,14 @@ def generate_supported(args): supported = {"kasa": {}, "tapo": {}} - _get_supported_devices(supported, IOT_FOLDER, IotDevice) - _get_supported_devices(supported, SMART_FOLDER, SmartDevice) - _get_supported_devices(supported, SMART_CHILD_FOLDER, SmartDevice) - _get_supported_devices(supported, SMARTCAM_FOLDER, SmartCamDevice) - _get_supported_devices(supported, SMARTCAM_CHILD_FOLDER, SmartCamChild) + seen: set[str] = set() + _get_supported_devices(supported, IOT_FOLDER, IotDevice, seen) + _get_supported_devices(supported, SMART_FOLDER, SmartDevice, seen) + _get_supported_devices(supported, SMART_CHILD_FOLDER, SmartDevice, seen) + _get_supported_devices(supported, SMARTCAM_FOLDER, SmartCamDevice, seen) + _get_supported_devices(supported, SMARTCAM_CHILD_FOLDER, SmartCamChild, seen) + if stale := UNSUPPORTED_VERSIONS.keys() - seen: + raise ValueError(f"UNSUPPORTED_VERSIONS has no fixture for: {sorted(stale)}") readme_updated = _update_supported_file( README_FILENAME, _supported_summary(supported), print_diffs @@ -131,7 +160,7 @@ def _supported_detail(supported): "## $brand devices\n\n$preamble\n\n$types\n", "### $type_\n\n$models\n", "- **$model**\n$versions", - " - Hardware: $hw$region / Firmware: $fw$auth_flag\n", + " - Hardware: $hw$region / Firmware: $fw$auth_flag$unsupported\n", ) @@ -147,7 +176,7 @@ def _supported_text( for brand, types in supported.items(): preamble_text = ( "Some newer Kasa devices require authentication. " - + "These are marked with [^1] in the list below." + + f"These are marked with {_fn('auth')} in the list below." if brand == "kasa" else "All Tapo devices require authentication." ) @@ -156,7 +185,7 @@ def _supported_text( + "hubs even if they don't work across the native apps." ) brand_text = brand.capitalize() - brand_auth = r"[^1]" if brand == "tapo" else "" + brand_auth = _fn("auth") if brand == "tapo" else "" types_text = "" for supported_type, models in sorted( # Sort by device type order in the enum @@ -166,46 +195,68 @@ def _supported_text( models_list = [] models_text = "" for model, versions in sorted(models.items()): - auth_count = 0 + auth_count = unsupported_count = 0 versions_text = "" for version in sorted(versions): region_text = f" ({version.region})" if version.region else "" auth_count += 1 if version.auth else 0 - vauth_flag = r"[^1]" if version.auth and brand == "kasa" else "" + unsupported_count += 1 if version.unsupported else 0 + vauth_flag = _fn("auth") if version.auth and brand == "kasa" else "" if version_template: versions_text += versst.substitute( hw=version.hw, fw=version.fw, region=region_text, auth_flag=vauth_flag, + unsupported=f" (not supported: {version.unsupported})" + if version.unsupported + else "", ) if brand == "kasa" and auth_count > 0: - auth_flag = r"[^1]" if auth_count == len(versions) else r"[^2]" + auth_flag = ( + _fn("auth") + if auth_count == len(versions) + else _fn("auth_newer") + ) else: auth_flag = "" if model_template: models_text += modelt.substitute( model=model, versions=versions_text, auth_flag=auth_flag ) - else: - models_list.append(f"{model}{auth_flag}") + elif unsupported_count < len(versions): + # The summary lists supported models only + unsupported_flag = _fn("unsupported") if unsupported_count else "" + models_list.append(f"{model}{auth_flag}{unsupported_flag}") models_text = models_text if models_text else ", ".join(models_list) - type_asterix = r"[^3]" if supported_type == "Hub-Connected Devices" else "" + if not models_text: + continue + type_asterix = ( + _fn("hub") if supported_type == "Hub-Connected Devices" else "" + ) types_text += typest.substitute( type_=supported_type, type_asterix=type_asterix, models=models_text ) brands += brandt.substitute( brand=brand_text, types=types_text, auth=brand_auth, preamble=preamble_text ) - return brands + footnotes = "".join( + f"[^{num}]: {text}\n" + for num, text in sorted(FOOTNOTES.values()) + if f"[^{num}]" in brands + ) + return brands + footnotes def _get_supported_devices( supported: dict[str, Any], - fixture_location: str, + fixture_location: Path, device_cls: type[IotDevice | SmartDevice | SmartCamDevice], + seen: set[str], ): - for file in Path(fixture_location).glob("*.json"): + for file in fixture_location.glob("*.json"): + fixture_path = file.relative_to(FIXTURE_FOLDER).as_posix() + seen.add(fixture_path) with file.open() as f: fixture_data = json.load(f) @@ -223,6 +274,7 @@ def _get_supported_devices( hw=model_info.hardware_version, fw=model_info.firmware_version, auth=model_info.requires_auth, + unsupported=UNSUPPORTED_VERSIONS.get(fixture_path, ""), ) )