Add KP115 fixture (#202)

This commit is contained in:
Teemu R 2021-09-21 19:20:59 +02:00 committed by GitHub
parent 151976bb04
commit 47a1405bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 2 deletions

View File

@ -119,6 +119,7 @@ or the `parse_pcap.py` script contained inside the `devtools` directory.
* HS105
* HS107
* HS110
* KP115
### Power Strips

View File

@ -30,12 +30,12 @@ COLOR_BULBS = {"LB130", "KL125", "KL130", *LIGHT_STRIPS}
BULBS = {"KL60", "LB100", *VARIABLE_TEMP, *COLOR_BULBS, *LIGHT_STRIPS}
PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10"}
PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115"}
STRIPS = {"HS107", "HS300", "KP303", "KP400"}
DIMMERS = {"HS220"}
DIMMABLE = {*BULBS, *DIMMERS}
WITH_EMETER = {"HS110", "HS300", *BULBS}
WITH_EMETER = {"HS110", "HS300", "KP115", *BULBS}
ALL_DEVICES = BULBS.union(PLUGS).union(STRIPS).union(DIMMERS)

View File

@ -0,0 +1,42 @@
{
"emeter": {
"get_realtime": {
"current_ma": 0,
"err_code": 0,
"power_mw": 0,
"total_wh": 0,
"voltage_mv": 231561
}
},
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "TP-LINK_Smart Plug_330B",
"dev_name": "Smart Wi-Fi Plug Mini",
"deviceId": "0000000000000000000000000000000000000000",
"err_code": 0,
"feature": "TIM:ENE",
"hwId": "00000000000000000000000000000000",
"hw_ver": "1.0",
"icon_hash": "",
"latitude_i": 0,
"led_off": 0,
"longitude_i": 0,
"mac": "00:00:00:00:00:00",
"mic_type": "IOT.SMARTPLUGSWITCH",
"model": "KP115(EU)",
"next_action": {
"type": -1
},
"ntc_state": 0,
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"on_time": 197,
"relay_state": 1,
"rssi": -70,
"status": "new",
"sw_ver": "1.0.16 Build 210205 Rel.163735",
"updating": 0
}
}
}