From fdadeebaa9aa5fdc512108b6fd9a246407f7dc90 Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Tue, 29 Oct 2024 08:58:47 +0000 Subject: [PATCH] Add S200B(EU) fw 1.11.0 fixture (#1205) Adds a note about button presses not being supported. --- README.md | 5 +- SUPPORTED.md | 6 + kasa/tests/device_fixtures.py | 2 +- .../smart/child/S200B(EU)_1.0_1.11.0.json | 115 ++++++++++++++++++ 4 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 kasa/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json diff --git a/README.md b/README.md index 6e883dbc..70c3127e 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,9 @@ Please refer to [our contributing guidelines](https://python-kasa.readthedocs.io The following devices have been tested and confirmed as working. If your device is unlisted but working, please consider [contributing a fixture file](https://python-kasa.readthedocs.io/en/latest/contribute.html#contributing-fixture-files). +> [!NOTE] +> The hub attached Tapo buttons S200B and S200D do not currently support alerting when the button is pressed. + ### Supported Kasa devices @@ -195,7 +198,7 @@ The following devices have been tested and confirmed as working. If your device - **Bulbs**: L510B, L510E, L530E - **Light Strips**: L900-10, L900-5, L920-5, L930-5 - **Hubs**: H100 -- **Hub-Connected Devices\*\*\***: T100, T110, T300, T310, T315 +- **Hub-Connected Devices\*\*\***: S200B, T100, T110, T300, T310, T315 \*   Model requires authentication
diff --git a/SUPPORTED.md b/SUPPORTED.md index f80362fb..cb995eca 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -2,6 +2,10 @@ The following devices have been tested and confirmed as working. If your device is unlisted but working, please open a pull request to update the list and add a fixture file (use `python -m devtools.dump_devinfo` to generate one). +> [!NOTE] +> The hub attached Tapo buttons S200B and S200D do not currently support alerting when the button is pressed. + + ## Kasa devices @@ -237,6 +241,8 @@ All Tapo devices require authentication.
Hub-Connected Devices may work acros ### Hub-Connected Devices +- **S200B** + - Hardware: 1.0 (EU) / Firmware: 1.11.0 - **T100** - Hardware: 1.0 (EU) / Firmware: 1.12.0 - **T110** diff --git a/kasa/tests/device_fixtures.py b/kasa/tests/device_fixtures.py index a2ef92c5..fec386d6 100644 --- a/kasa/tests/device_fixtures.py +++ b/kasa/tests/device_fixtures.py @@ -119,7 +119,7 @@ DIMMERS = { } HUBS_SMART = {"H100", "KH100"} -SENSORS_SMART = {"T310", "T315", "T300", "T100", "T110"} +SENSORS_SMART = {"T310", "T315", "T300", "T100", "T110", "S200B"} THERMOSTATS_SMART = {"KE100"} WITH_EMETER_IOT = {"HS110", "HS300", "KP115", "KP125", *BULBS_IOT} diff --git a/kasa/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json b/kasa/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json new file mode 100644 index 00000000..9df75fd7 --- /dev/null +++ b/kasa/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json @@ -0,0 +1,115 @@ +{ + "component_nego": { + "component_list": [ + { + "id": "device", + "ver_code": 2 + }, + { + "id": "quick_setup", + "ver_code": 3 + }, + { + "id": "trigger_log", + "ver_code": 1 + }, + { + "id": "time", + "ver_code": 1 + }, + { + "id": "device_local_time", + "ver_code": 1 + }, + { + "id": "account", + "ver_code": 1 + }, + { + "id": "synchronize", + "ver_code": 1 + }, + { + "id": "cloud_connect", + "ver_code": 1 + }, + { + "id": "iot_cloud", + "ver_code": 1 + }, + { + "id": "firmware", + "ver_code": 1 + }, + { + "id": "localSmart", + "ver_code": 1 + }, + { + "id": "battery_detect", + "ver_code": 1 + }, + { + "id": "double_click", + "ver_code": 1 + } + ] + }, + "get_auto_update_info": -1001, + "get_connect_cloud_state": { + "status": 0 + }, + "get_device_info": { + "at_low_battery": false, + "avatar": "button", + "bind_count": 2, + "category": "subg.trigger.button", + "device_id": "SCRUBBED_CHILD_DEVICE_ID_1", + "fw_ver": "1.11.0 Build 230821 Rel.113553", + "hw_id": "00000000000000000000000000000000", + "hw_ver": "1.0", + "jamming_rssi": -120, + "jamming_signal_level": 1, + "lastOnboardingTimestamp": 1714016798, + "mac": "202351000000", + "model": "S200B", + "nickname": "I01BU0tFRF9OQU1FIw==", + "oem_id": "00000000000000000000000000000000", + "parent_device_id": "0000000000000000000000000000000000000000", + "region": "Europe/London", + "report_interval": 16, + "rssi": -55, + "signal_level": 3, + "specs": "EU", + "status": "online", + "status_follow_edge": false, + "type": "SMART.TAPOSENSOR" + }, + "get_device_time": -1001, + "get_device_usage": -1001, + "get_double_click_info": { + "enable": false + }, + "get_fw_download_state": { + "cloud_cache_seconds": 1, + "download_progress": 0, + "reboot_time": 5, + "status": 0, + "upgrade_time": 5 + }, + "get_latest_fw": { + "fw_ver": "1.12.0 Build 231121 Rel.092444", + "hw_id": "00000000000000000000000000000000", + "need_to_upgrade": true, + "oem_id": "00000000000000000000000000000000", + "release_date": "2024-04-02", + "release_note": "Modifications and Bug Fixes:\n1. Optimized low battery notification.\n2. Fixed some minor bugs.", + "type": 2 + }, + "get_trigger_logs": { + "logs": [], + "start_id": 0, + "sum": 0 + }, + "qs_component_nego": -1001 +}