Add KL60 US KP105 UK fixture (#233)

* Add KL60 US fixture

* Add KP105 UK fixture

* update test
This commit is contained in:
J. Nick Koston 2021-10-09 04:44:32 -10:00 committed by GitHub
parent e06b9a71e5
commit cf151ead4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 20 deletions

View File

@ -40,7 +40,7 @@ BULBS = {
} }
PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115"} PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115", "KP105"}
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"} STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
DIMMERS = {"HS220"} DIMMERS = {"HS220"}

View File

@ -3,28 +3,26 @@
"get_realtime": { "get_realtime": {
"current_ma": 0, "current_ma": 0,
"err_code": 0, "err_code": 0,
"power_mw": 0, "power_mw": 5200,
"total_wh": 0, "total_wh": 0,
"voltage_mv": 0 "voltage_mv": 0
} }
}, },
"smartlife.iot.smartbulb.lightingservice": { "smartlife.iot.smartbulb.lightingservice": {
"get_light_state": { "get_light_state": {
"dft_on_state": { "brightness": 100,
"brightness": 69,
"color_temp": 2000, "color_temp": 2000,
"err_code": 0,
"hue": 0, "hue": 0,
"mode": "normal", "mode": "normal",
"on_off": 1,
"saturation": 0 "saturation": 0
},
"err_code": 0,
"on_off": 0
} }
}, },
"system": { "system": {
"get_sysinfo": { "get_sysinfo": {
"active_mode": "none", "active_mode": "none",
"alias": "Fil", "alias": "Gold fil",
"ctrl_protocols": { "ctrl_protocols": {
"name": "Linkie", "name": "Linkie",
"version": "1.0" "version": "1.0"
@ -42,15 +40,13 @@
"is_variable_color_temp": 0, "is_variable_color_temp": 0,
"latitude_i": 0, "latitude_i": 0,
"light_state": { "light_state": {
"dft_on_state": { "brightness": 100,
"brightness": 69,
"color_temp": 2000, "color_temp": 2000,
"hue": 0, "hue": 0,
"mode": "normal", "mode": "normal",
"on_off": 1,
"saturation": 0 "saturation": 0
}, },
"on_off": 0
},
"longitude_i": 0, "longitude_i": 0,
"mic_mac": "000000000000", "mic_mac": "000000000000",
"mic_type": "IOT.SMARTBULB", "mic_type": "IOT.SMARTBULB",
@ -86,7 +82,7 @@
"saturation": 0 "saturation": 0
} }
], ],
"rssi": -55, "rssi": -41,
"status": "new", "status": "new",
"sw_ver": "1.1.13 Build 210524 Rel.082619" "sw_ver": "1.1.13 Build 210524 Rel.082619"
} }

View File

@ -0,0 +1,33 @@
{
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Uk plug",
"dev_name": "Smart Wi-Fi Plug",
"deviceId": "0000000000000000000000000000000000000000",
"err_code": 0,
"feature": "TIM",
"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": "KP105(UK)",
"next_action": {
"type": -1
},
"ntc_state": 0,
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"on_time": 0,
"relay_state": 0,
"rssi": -48,
"status": "new",
"sw_ver": "1.0.7 Build 210506 Rel.153510",
"updating": 0
}
}
}