From d6c1eb235a141ea578f3c8d38f356dd2eb43f6ea Mon Sep 17 00:00:00 2001 From: ZeliardM Date: Tue, 24 Dec 2024 10:30:35 -0500 Subject: [PATCH 1/3] Add HS210(US) 3.0 1.0.10 IOT Fixture --- SUPPORTED.md | 1 + tests/fixtures/iot/HS210(US)_230_1.0.10.json | 63 ++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 tests/fixtures/iot/HS210(US)_230_1.0.10.json diff --git a/SUPPORTED.md b/SUPPORTED.md index 795d13464..4187bc51a 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -93,6 +93,7 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th - **HS210** - Hardware: 1.0 (US) / Firmware: 1.5.8 - Hardware: 2.0 (US) / Firmware: 1.1.5 + - Hardware: 3.0 (US) / Firmware: 1.0.10 - **HS220** - Hardware: 1.0 (US) / Firmware: 1.5.7 - Hardware: 2.0 (US) / Firmware: 1.0.3 diff --git a/tests/fixtures/iot/HS210(US)_230_1.0.10.json b/tests/fixtures/iot/HS210(US)_230_1.0.10.json new file mode 100644 index 000000000..bba6d0ac6 --- /dev/null +++ b/tests/fixtures/iot/HS210(US)_230_1.0.10.json @@ -0,0 +1,63 @@ +{ + "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": [] + } + }, + "schedule": { + "get_next_action": { + "err_code": 0, + "type": -1 + }, + "get_rules": { + "enable": 0, + "err_code": 0, + "rule_list": [], + "version": 2 + } + }, + "system": { + "get_sysinfo": { + "active_mode": "none", + "alias": "#MASKED_NAME#", + "dev_name": "Smart Wi-Fi 3-Way Light Switch", + "deviceId": "0000000000000000000000000000000000000000", + "err_code": 0, + "feature": "TIM", + "hwId": "00000000000000000000000000000000", + "hw_ver": "3.0", + "icon_hash": "", + "latitude_i": 0, + "led_off": 0, + "longitude_i": 0, + "mac": "60:83:E7:00:00:00", + "mic_type": "IOT.SMARTPLUGSWITCH", + "model": "HS210(US)", + "next_action": { + "type": -1 + }, + "obd_src": "tplink", + "oemId": "00000000000000000000000000000000", + "on_time": 6525, + "relay_state": 1, + "rssi": -31, + "status": "new", + "sw_ver": "1.0.10 Build 240122 Rel.193635", + "updating": 0 + } + } +} \ No newline at end of file From 6adef7d43670bbff9fbef92c597295ab181cea2b Mon Sep 17 00:00:00 2001 From: ZeliardM Date: Tue, 24 Dec 2024 10:34:32 -0500 Subject: [PATCH 2/3] Correct fixture name --- .../iot/{HS210(US)_230_1.0.10.json => HS210(US)_3.0_1.0.10.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/fixtures/iot/{HS210(US)_230_1.0.10.json => HS210(US)_3.0_1.0.10.json} (100%) diff --git a/tests/fixtures/iot/HS210(US)_230_1.0.10.json b/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json similarity index 100% rename from tests/fixtures/iot/HS210(US)_230_1.0.10.json rename to tests/fixtures/iot/HS210(US)_3.0_1.0.10.json From fc9751e8db17792ca474967e7a1ac82cfce3007c Mon Sep 17 00:00:00 2001 From: ZeliardM Date: Tue, 24 Dec 2024 10:37:33 -0500 Subject: [PATCH 3/3] fix end of fixture file --- tests/fixtures/iot/HS210(US)_3.0_1.0.10.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json b/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json index bba6d0ac6..30a401e97 100644 --- a/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +++ b/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json @@ -60,4 +60,4 @@ "updating": 0 } } -} \ No newline at end of file +}