Add KP125 test fixture and support note. (#350)

* Add KP125 test fixture and support note.

Signed-off-by: James Alseth <james@jalseth.me>

* mark KP125 having an emeter

Co-authored-by: Teemu R <tpr@iki.fi>
This commit is contained in:
James Alseth 2022-06-26 18:39:57 -07:00 committed by GitHub
parent 8e6cfd003e
commit 91ba1d5ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 2 deletions

View File

@ -122,6 +122,7 @@ or the `parse_pcap.py` script contained inside the `devtools` directory.
* KP100 * KP100
* KP105 * KP105
* KP115 * KP115
* KP125
* KP401 * KP401
### Power Strips ### Power Strips

View File

@ -49,15 +49,16 @@ PLUGS = {
"HS210", "HS210",
"EP10", "EP10",
"KP100", "KP100",
"KP115",
"KP105", "KP105",
"KP115",
"KP125",
"KP401", "KP401",
} }
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"} STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
DIMMERS = {"HS220", "KS220M"} DIMMERS = {"HS220", "KS220M"}
DIMMABLE = {*BULBS, *DIMMERS} DIMMABLE = {*BULBS, *DIMMERS}
WITH_EMETER = {"HS110", "HS300", "KP115", *BULBS} WITH_EMETER = {"HS110", "HS300", "KP115", "KP125", *BULBS}
ALL_DEVICES = BULBS.union(PLUGS).union(STRIPS).union(DIMMERS) ALL_DEVICES = BULBS.union(PLUGS).union(STRIPS).union(DIMMERS)

View File

@ -0,0 +1,42 @@
{
"emeter": {
"get_realtime": {
"current_ma": 978,
"err_code": 0,
"power_mw": 100277,
"total_wh": 12170,
"voltage_mv": 119425
}
},
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Test plug",
"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": "KP125(US)",
"next_action": {
"type": -1
},
"ntc_state": 0,
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"on_time": 301,
"relay_state": 1,
"rssi": -41,
"status": "configured",
"sw_ver": "1.0.6 Build 210928 Rel.185924",
"updating": 0
}
}
}