From bd4826f1b3339e535b08b567b5d17b93a10858e3 Mon Sep 17 00:00:00 2001 From: Jordan Waters <7208804+1waterrj@users.noreply.github.com> Date: Mon, 26 Oct 2026 19:26:35 -0400 Subject: [PATCH] Add HS103(US) hw 5.0 fw 1.0.3 fixture (#1818) --- SUPPORTED.md | 1 + tests/fixtures/iot/HS103(US)_5.0_1.0.3.json | 73 +++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 tests/fixtures/iot/HS103(US)_5.0_1.0.3.json diff --git a/SUPPORTED.md b/SUPPORTED.md index 6f64ffaa..0146bb6a 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -32,6 +32,7 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th - Hardware: 1.0 (US) / Firmware: 1.5.7 - Hardware: 2.1 (US) / Firmware: 1.1.2 - Hardware: 2.1 (US) / Firmware: 1.1.4 + - Hardware: 5.0 (US) / Firmware: 1.0.3 - **HS105** - Hardware: 1.0 (US) / Firmware: 1.5.6 - **HS110** diff --git a/tests/fixtures/iot/HS103(US)_5.0_1.0.3.json b/tests/fixtures/iot/HS103(US)_5.0_1.0.3.json new file mode 100644 index 00000000..4a8e0b81 --- /dev/null +++ b/tests/fixtures/iot/HS103(US)_5.0_1.0.3.json @@ -0,0 +1,73 @@ +{ + "cnCloud": { + "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": "user@example.com" + }, + "get_intl_fw_list": { + "err_code": 0, + "fw_list": [ + { + "fwLocation": 0, + "fwReleaseDate": "2026-02-28", + "fwReleaseLog": "Modifications and Bug Fixes:\n1. Improved time synchronization accuracy.\n2. Enhanced device local communication security.\n3. Enhanced device stability.", + "fwReleaseLogUrl": "undefined yet", + "fwTitle": "Hi, a new firmware with performance improvement is available for your HS103.", + "fwType": 1, + "fwUrl": "http://ota-download.tplinkcloud.com/firmware/HS103_FCC_1.1.3_Build_250908_Rel.112508_2025-09-08_11.26.24_1772244428745.bin", + "fwVer": "1.1.3 Build 250908 Rel.112508" + } + ] + } + }, + "schedule": { + "get_next_action": { + "err_code": 0, + "type": -1 + }, + "get_rules": { + "enable": 1, + "err_code": 0, + "rule_list": [], + "version": 2 + } + }, + "system": { + "get_sysinfo": { + "active_mode": "none", + "alias": "#MASKED_NAME#", + "dev_name": "Smart Wi-Fi Plug Mini", + "deviceId": "0000000000000000000000000000000000000000", + "err_code": 0, + "feature": "TIM", + "hwId": "00000000000000000000000000000000", + "hw_ver": "5.0", + "icon_hash": "", + "latitude_i": 0, + "led_off": 0, + "longitude_i": 0, + "mac": "00:5F:67:00:00:00", + "mic_type": "IOT.SMARTPLUGSWITCH", + "model": "HS103(US)", + "next_action": { + "type": -1 + }, + "oemId": "00000000000000000000000000000000", + "on_time": 0, + "relay_state": 0, + "rssi": -57, + "status": "new", + "sw_ver": "1.0.3 Build 201015 Rel.142523", + "updating": 0 + } + } +}