mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-04 06:32:07 +00:00 
			
		
		
		
	Add KS230(US) 2.0 1.0.11 IOT Fixture (#1430)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				CI / Perform linting checks (3.13) (push) Waiting to run
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			
		
			
				
	
				CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			
		
			
				
	
				CodeQL checks / Analyze (python) (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	CI / Perform linting checks (3.13) (push) Waiting to run
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
				
			CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
				
			CodeQL checks / Analyze (python) (push) Has been cancelled
				
			This commit is contained in:
		@@ -120,6 +120,7 @@ Some newer Kasa devices require authentication. These are marked with [^1] in th
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.1.0[^1]
 | 
			
		||||
- **KS230**
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.0.14
 | 
			
		||||
  - Hardware: 2.0 (US) / Firmware: 1.0.11
 | 
			
		||||
- **KS240**
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.0.4[^1]
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.0.5[^1]
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										112
									
								
								tests/fixtures/iot/KS230(US)_2.0_1.0.11.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								tests/fixtures/iot/KS230(US)_2.0_1.0.11.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,112 @@
 | 
			
		||||
{
 | 
			
		||||
    "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": 1,
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "rule_list": [],
 | 
			
		||||
            "version": 2
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "smartlife.iot.dimmer": {
 | 
			
		||||
        "get_default_behavior": {
 | 
			
		||||
            "double_click": {
 | 
			
		||||
                "mode": "none"
 | 
			
		||||
            },
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "hard_on": {
 | 
			
		||||
                "mode": "last_status"
 | 
			
		||||
            },
 | 
			
		||||
            "long_press": {
 | 
			
		||||
                "mode": "instant_on_off"
 | 
			
		||||
            },
 | 
			
		||||
            "soft_on": {
 | 
			
		||||
                "mode": "last_status"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "get_dimmer_parameters": {
 | 
			
		||||
            "bulb_type": 1,
 | 
			
		||||
            "calibration_type": 0,
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "fadeOffTime": 1000,
 | 
			
		||||
            "fadeOnTime": 1000,
 | 
			
		||||
            "gentleOffTime": 10000,
 | 
			
		||||
            "gentleOnTime": 3000,
 | 
			
		||||
            "minThreshold": 11,
 | 
			
		||||
            "rampRate": 30
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "system": {
 | 
			
		||||
        "get_sysinfo": {
 | 
			
		||||
            "active_mode": "none",
 | 
			
		||||
            "alias": "#MASKED_NAME#",
 | 
			
		||||
            "brightness": 100,
 | 
			
		||||
            "dc_state": 0,
 | 
			
		||||
            "dev_name": "Wi-Fi Smart 3-Way Dimmer",
 | 
			
		||||
            "deviceId": "0000000000000000000000000000000000000000",
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "feature": "TIM",
 | 
			
		||||
            "hwId": "00000000000000000000000000000000",
 | 
			
		||||
            "hw_ver": "2.0",
 | 
			
		||||
            "icon_hash": "",
 | 
			
		||||
            "latitude_i": 0,
 | 
			
		||||
            "led_off": 0,
 | 
			
		||||
            "longitude_i": 0,
 | 
			
		||||
            "mac": "5C:E9:31:00:00:00",
 | 
			
		||||
            "mic_type": "IOT.SMARTPLUGSWITCH",
 | 
			
		||||
            "model": "KS230(US)",
 | 
			
		||||
            "next_action": {
 | 
			
		||||
                "type": -1
 | 
			
		||||
            },
 | 
			
		||||
            "ntc_state": 0,
 | 
			
		||||
            "obd_src": "tplink",
 | 
			
		||||
            "oemId": "00000000000000000000000000000000",
 | 
			
		||||
            "on_time": 0,
 | 
			
		||||
            "preferred_state": [
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 100,
 | 
			
		||||
                    "index": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 75,
 | 
			
		||||
                    "index": 1
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 50,
 | 
			
		||||
                    "index": 2
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 25,
 | 
			
		||||
                    "index": 3
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "relay_state": 0,
 | 
			
		||||
            "rssi": -41,
 | 
			
		||||
            "status": "new",
 | 
			
		||||
            "sw_ver": "1.0.11 Build 240516 Rel.104458",
 | 
			
		||||
            "updating": 0
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user