Add tests for KP200 (#483)

* Add tests for KP200

This one worked out of the box sans the OUI not being in the list

https://github.com/home-assistant/core/pull/97062

* it is a strip
This commit is contained in:
J. Nick Koston 2023-07-22 16:55:42 -05:00 committed by GitHub
parent 117a7ac64a
commit 677ef9c3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View File

@ -145,6 +145,7 @@ If your device is unlisted but working, please open a pull request to update the
* EP40
* HS300
* KP303
* KP200 (in wall)
* KP400
* KP405 (dimmer)

View File

@ -55,7 +55,7 @@ PLUGS = {
"KP401",
"KS200M",
}
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
STRIPS = {"HS107", "HS300", "KP303", "KP200", "KP400", "EP40"}
DIMMERS = {"ES20M", "HS220", "KS220M", "KS230", "KP405"}
DIMMABLE = {*BULBS, *DIMMERS}

View File

@ -0,0 +1,46 @@
{
"system": {
"get_sysinfo": {
"alias": "TP-LINK_Smart Plug_C2D6",
"child_num": 2,
"children": [
{
"alias": "One ",
"id": "80066788DFFFD572D9F2E4A5A6847669213E039F00",
"next_action": {
"type": -1
},
"on_time": 43,
"state": 1
},
{
"alias": "Two ",
"id": "80066788DFFFD572D9F2E4A5A6847669213E039F01",
"next_action": {
"type": -1
},
"on_time": 44,
"state": 1
}
],
"deviceId": "0000000000000000000000000000000000000000",
"err_code": 0,
"feature": "TIM",
"hwId": "00000000000000000000000000000000",
"hw_ver": "3.0",
"latitude_i": 0,
"led_off": 0,
"longitude_i": 0,
"mac": "00:00:00:00:00:00",
"mic_type": "IOT.SMARTPLUGSWITCH",
"model": "KP200(US)",
"ntc_state": 0,
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"rssi": -50,
"status": "new",
"sw_ver": "1.0.3 Build 221021 Rel.183354",
"updating": 0
}
}
}