mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-26 16:46:23 +00:00
Add fixture for KP405 Smart Dimmer Plug (#470)
* Add files via upload * Add to KP405 to dimmers, update README --------- Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
This commit is contained in:
parent
afd54d11d3
commit
b83986bd51
@ -144,6 +144,7 @@ If your device is unlisted but working, please open a pull request to update the
|
|||||||
* HS300
|
* HS300
|
||||||
* KP303
|
* KP303
|
||||||
* KP400
|
* KP400
|
||||||
|
* KP405 (dimmer)
|
||||||
|
|
||||||
### Wall switches
|
### Wall switches
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ PLUGS = {
|
|||||||
"KS200M",
|
"KS200M",
|
||||||
}
|
}
|
||||||
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
|
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
|
||||||
DIMMERS = {"ES20M", "HS220", "KS220M", "KS230"}
|
DIMMERS = {"ES20M", "HS220", "KS220M", "KS230", "KP405"}
|
||||||
|
|
||||||
DIMMABLE = {*BULBS, *DIMMERS}
|
DIMMABLE = {*BULBS, *DIMMERS}
|
||||||
WITH_EMETER = {"HS110", "HS300", "KP115", "KP125", *BULBS}
|
WITH_EMETER = {"HS110", "HS300", "KP115", "KP125", *BULBS}
|
||||||
|
65
kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json
vendored
Normal file
65
kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
"smartlife.iot.dimmer": {
|
||||||
|
"get_dimmer_parameters": {
|
||||||
|
"bulb_type": 1,
|
||||||
|
"calibration_type": 0,
|
||||||
|
"err_code": 0,
|
||||||
|
"fadeOffTime": 1000,
|
||||||
|
"fadeOnTime": 1000,
|
||||||
|
"gentleOffTime": 10000,
|
||||||
|
"gentleOnTime": 3000,
|
||||||
|
"minThreshold": 1,
|
||||||
|
"rampRate": 30
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"system": {
|
||||||
|
"get_sysinfo": {
|
||||||
|
"active_mode": "none",
|
||||||
|
"alias": "Porch Lights",
|
||||||
|
"brightness": 50,
|
||||||
|
"dev_name": "Kasa Smart Wi-Fi Outdoor Plug-In Dimmer",
|
||||||
|
"deviceId": "0000000000000000000000000000000000000000",
|
||||||
|
"err_code": 0,
|
||||||
|
"feature": "TIM",
|
||||||
|
"hwId": "00000000000000000000000000000000",
|
||||||
|
"hw_ver": "1.0",
|
||||||
|
"icon_hash": "",
|
||||||
|
"latitude_i": 0,
|
||||||
|
"led_off": 1,
|
||||||
|
"longitude_i": 0,
|
||||||
|
"mac": "00:00:00:00:00:00",
|
||||||
|
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||||
|
"model": "KP405(US)",
|
||||||
|
"next_action": {
|
||||||
|
"type": -1
|
||||||
|
},
|
||||||
|
"ntc_state": 0,
|
||||||
|
"obd_src": "tplink",
|
||||||
|
"oemId": "00000000000000000000000000000000",
|
||||||
|
"on_time": 0,
|
||||||
|
"preferred_state": [
|
||||||
|
{
|
||||||
|
"brightness": 100,
|
||||||
|
"index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 75,
|
||||||
|
"index": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 50,
|
||||||
|
"index": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"brightness": 25,
|
||||||
|
"index": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"relay_state": 0,
|
||||||
|
"rssi": -64,
|
||||||
|
"status": "new",
|
||||||
|
"sw_ver": "1.0.5 Build 221108 Rel.181739",
|
||||||
|
"updating": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user