mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-04 06:32:07 +00:00 
			
		
		
		
	Add D100C(US) 1.0 1.1.3 fixture (#1475)
This commit is contained in:
		@@ -202,7 +202,7 @@ The following devices have been tested and confirmed as working. If your device
 | 
			
		||||
- **Bulbs**: L510B, L510E, L530E, L630
 | 
			
		||||
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
 | 
			
		||||
- **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
 | 
			
		||||
- **Doorbells and chimes**: D230
 | 
			
		||||
- **Doorbells and chimes**: D100C, D230
 | 
			
		||||
- **Vacuums**: RV20 Max Plus, RV30 Max
 | 
			
		||||
- **Hubs**: H100, H200
 | 
			
		||||
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
 | 
			
		||||
 
 | 
			
		||||
@@ -292,6 +292,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
 | 
			
		||||
 | 
			
		||||
### Doorbells and chimes
 | 
			
		||||
 | 
			
		||||
- **D100C**
 | 
			
		||||
  - Hardware: 1.0 (US) / Firmware: 1.1.3
 | 
			
		||||
- **D230**
 | 
			
		||||
  - Hardware: 1.20 (EU) / Firmware: 1.1.19
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										258
									
								
								tests/fixtures/smart/D100C(US)_1.0_1.1.3.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										258
									
								
								tests/fixtures/smart/D100C(US)_1.0_1.1.3.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,258 @@
 | 
			
		||||
{
 | 
			
		||||
    "component_nego": {
 | 
			
		||||
        "component_list": [
 | 
			
		||||
            {
 | 
			
		||||
                "id": "device",
 | 
			
		||||
                "ver_code": 2
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "firmware",
 | 
			
		||||
                "ver_code": 2
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "quick_setup",
 | 
			
		||||
                "ver_code": 3
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "time",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "wireless",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "schedule",
 | 
			
		||||
                "ver_code": 2
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "countdown",
 | 
			
		||||
                "ver_code": 2
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "antitheft",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "account",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "synchronize",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "sunrise_sunset",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "led",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "cloud_connect",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "iot_cloud",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "device_local_time",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "default_states",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            }
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "discovery_result": {
 | 
			
		||||
        "error_code": 0,
 | 
			
		||||
        "result": {
 | 
			
		||||
            "device_id": "00000000000000000000000000000000",
 | 
			
		||||
            "device_model": "D100C(US)",
 | 
			
		||||
            "device_type": "SMART.TAPOCHIME",
 | 
			
		||||
            "factory_default": false,
 | 
			
		||||
            "ip": "127.0.0.123",
 | 
			
		||||
            "is_support_iot_cloud": true,
 | 
			
		||||
            "mac": "40-AE-30-00-00-00",
 | 
			
		||||
            "mgt_encrypt_schm": {
 | 
			
		||||
                "encrypt_type": "KLAP",
 | 
			
		||||
                "http_port": 80,
 | 
			
		||||
                "is_support_https": false,
 | 
			
		||||
                "lv": 2
 | 
			
		||||
            },
 | 
			
		||||
            "obd_src": "tplink",
 | 
			
		||||
            "owner": "00000000000000000000000000000000"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "get_auto_update_info": {
 | 
			
		||||
        "enable": true,
 | 
			
		||||
        "random_range": 120,
 | 
			
		||||
        "time": 180
 | 
			
		||||
    },
 | 
			
		||||
    "get_connect_cloud_state": {
 | 
			
		||||
        "status": 0
 | 
			
		||||
    },
 | 
			
		||||
    "get_device_info": {
 | 
			
		||||
        "avatar": "",
 | 
			
		||||
        "device_id": "0000000000000000000000000000000000000000",
 | 
			
		||||
        "fw_id": "00000000000000000000000000000000",
 | 
			
		||||
        "fw_ver": "1.1.3 Build 231221 Rel.154700",
 | 
			
		||||
        "has_set_location_info": true,
 | 
			
		||||
        "hw_id": "00000000000000000000000000000000",
 | 
			
		||||
        "hw_ver": "1.0",
 | 
			
		||||
        "ip": "127.0.0.123",
 | 
			
		||||
        "lang": "en_US",
 | 
			
		||||
        "latitude": 0,
 | 
			
		||||
        "led_off": 0,
 | 
			
		||||
        "longitude": 0,
 | 
			
		||||
        "mac": "40-AE-30-00-00-00",
 | 
			
		||||
        "model": "D100C",
 | 
			
		||||
        "nickname": "I01BU0tFRF9OQU1FIw==",
 | 
			
		||||
        "oem_id": "00000000000000000000000000000000",
 | 
			
		||||
        "region": "America/Chicago",
 | 
			
		||||
        "rssi": -24,
 | 
			
		||||
        "signal_level": 3,
 | 
			
		||||
        "specs": "",
 | 
			
		||||
        "ssid": "I01BU0tFRF9TU0lEIw==",
 | 
			
		||||
        "time_diff": -360,
 | 
			
		||||
        "type": "SMART.TAPOCHIME"
 | 
			
		||||
    },
 | 
			
		||||
    "get_device_time": {
 | 
			
		||||
        "region": "America/Chicago",
 | 
			
		||||
        "time_diff": -360,
 | 
			
		||||
        "timestamp": 1736433406
 | 
			
		||||
    },
 | 
			
		||||
    "get_device_usage": {},
 | 
			
		||||
    "get_fw_download_state": {
 | 
			
		||||
        "auto_upgrade": false,
 | 
			
		||||
        "download_progress": 0,
 | 
			
		||||
        "reboot_time": 5,
 | 
			
		||||
        "status": 0,
 | 
			
		||||
        "upgrade_time": 5
 | 
			
		||||
    },
 | 
			
		||||
    "get_latest_fw": {
 | 
			
		||||
        "fw_size": 0,
 | 
			
		||||
        "fw_ver": "1.1.3 Build 231221 Rel.154700",
 | 
			
		||||
        "hw_id": "",
 | 
			
		||||
        "need_to_upgrade": false,
 | 
			
		||||
        "oem_id": "",
 | 
			
		||||
        "release_date": "",
 | 
			
		||||
        "release_note": "",
 | 
			
		||||
        "type": 0
 | 
			
		||||
    },
 | 
			
		||||
    "get_wireless_scan_info": {
 | 
			
		||||
        "ap_list": [
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 3,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 2,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 1,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "bssid": "000000000000",
 | 
			
		||||
                "channel": 0,
 | 
			
		||||
                "cipher_type": 2,
 | 
			
		||||
                "key_type": "wpa2_psk",
 | 
			
		||||
                "signal_level": 1,
 | 
			
		||||
                "ssid": "I01BU0tFRF9TU0lEIw=="
 | 
			
		||||
            }
 | 
			
		||||
        ],
 | 
			
		||||
        "start_index": 0,
 | 
			
		||||
        "sum": 9,
 | 
			
		||||
        "wep_supported": false
 | 
			
		||||
    },
 | 
			
		||||
    "qs_component_nego": {
 | 
			
		||||
        "component_list": [
 | 
			
		||||
            {
 | 
			
		||||
                "id": "quick_setup",
 | 
			
		||||
                "ver_code": 3
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "sunrise_sunset",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "ble_whole_setup",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "iot_cloud",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "inherit",
 | 
			
		||||
                "ver_code": 1
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                "id": "firmware",
 | 
			
		||||
                "ver_code": 2
 | 
			
		||||
            }
 | 
			
		||||
        ],
 | 
			
		||||
        "extra_info": {
 | 
			
		||||
            "device_model": "D100C",
 | 
			
		||||
            "device_type": "SMART.TAPOCHIME",
 | 
			
		||||
            "is_klap": true
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user