mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-04 06:32:07 +00:00 
			
		
		
		
	Add fixtures for LB110, KL110, EP40, KL430, KP115 (#224)
* Add fixtures for LB110, KL110, EP40 * update schema * kl430 fixture * Add KP115 US fixture
This commit is contained in:
		
							
								
								
									
										89
									
								
								kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										89
									
								
								kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,89 @@
 | 
			
		||||
{
 | 
			
		||||
    "smartlife.iot.common.emeter": {
 | 
			
		||||
        "get_realtime": {
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "power_mw": 0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "smartlife.iot.smartbulb.lightingservice": {
 | 
			
		||||
        "get_light_state": {
 | 
			
		||||
            "dft_on_state": {
 | 
			
		||||
                "brightness": 95,
 | 
			
		||||
                "color_temp": 2700,
 | 
			
		||||
                "hue": 0,
 | 
			
		||||
                "mode": "normal",
 | 
			
		||||
                "saturation": 0
 | 
			
		||||
            },
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "on_off": 0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "system": {
 | 
			
		||||
        "get_sysinfo": {
 | 
			
		||||
            "active_mode": "none",
 | 
			
		||||
            "alias": "Bulb3",
 | 
			
		||||
            "ctrl_protocols": {
 | 
			
		||||
                "name": "Linkie",
 | 
			
		||||
                "version": "1.0"
 | 
			
		||||
            },
 | 
			
		||||
            "description": "Smart Wi-Fi LED Bulb with Dimmable Light",
 | 
			
		||||
            "dev_state": "normal",
 | 
			
		||||
            "deviceId": "0000000000000000000000000000000000000000",
 | 
			
		||||
            "disco_ver": "1.0",
 | 
			
		||||
            "err_code": 0,
 | 
			
		||||
            "heapsize": 291620,
 | 
			
		||||
            "hwId": "00000000000000000000000000000000",
 | 
			
		||||
            "hw_ver": "1.0",
 | 
			
		||||
            "is_color": 0,
 | 
			
		||||
            "is_dimmable": 1,
 | 
			
		||||
            "is_factory": false,
 | 
			
		||||
            "is_variable_color_temp": 0,
 | 
			
		||||
            "light_state": {
 | 
			
		||||
                "dft_on_state": {
 | 
			
		||||
                    "brightness": 95,
 | 
			
		||||
                    "color_temp": 2700,
 | 
			
		||||
                    "hue": 0,
 | 
			
		||||
                    "mode": "normal",
 | 
			
		||||
                    "saturation": 0
 | 
			
		||||
                },
 | 
			
		||||
                "on_off": 0
 | 
			
		||||
            },
 | 
			
		||||
            "mic_mac": "000000000000",
 | 
			
		||||
            "mic_type": "IOT.SMARTBULB",
 | 
			
		||||
            "model": "KL110(US)",
 | 
			
		||||
            "oemId": "00000000000000000000000000000000",
 | 
			
		||||
            "preferred_state": [
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 100,
 | 
			
		||||
                    "color_temp": 2700,
 | 
			
		||||
                    "hue": 0,
 | 
			
		||||
                    "index": 0,
 | 
			
		||||
                    "saturation": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 75,
 | 
			
		||||
                    "color_temp": 2700,
 | 
			
		||||
                    "hue": 0,
 | 
			
		||||
                    "index": 1,
 | 
			
		||||
                    "saturation": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 25,
 | 
			
		||||
                    "color_temp": 2700,
 | 
			
		||||
                    "hue": 0,
 | 
			
		||||
                    "index": 2,
 | 
			
		||||
                    "saturation": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "brightness": 1,
 | 
			
		||||
                    "color_temp": 2700,
 | 
			
		||||
                    "hue": 0,
 | 
			
		||||
                    "index": 3,
 | 
			
		||||
                    "saturation": 0
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "rssi": -64,
 | 
			
		||||
            "sw_ver": "1.8.11 Build 191113 Rel.105336"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user