mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 11:43:34 +00:00
d30d00a3ff
* Preliminary support for light strips * Add color temperature range and cleanup, thanks to @darkoppressor * Use lightstrip instead of {led,light}strip consistently everywhere * The cli flag is now --lightstrip * add apidocs * Add fixture file for KL430 Signed-off-by: Kevin Wells <darkoppressor@gmail.com> * Add discovery support, expose effect and length of the strip * use set_light_state instead of transition_light_state * Add tests for lightstrip * add doctests * Add KL430 to supported devices in README Co-authored-by: Kevin Wells <darkoppressor@gmail.com>
71 lines
2.0 KiB
JSON
71 lines
2.0 KiB
JSON
{
|
|
"emeter": {
|
|
"err_code": -1,
|
|
"err_msg": "module not support"
|
|
},
|
|
"smartlife.iot.common.emeter": {
|
|
"get_realtime": {
|
|
"current_ma": 0,
|
|
"err_code": 0,
|
|
"power_mw": 8729,
|
|
"total_wh": 21,
|
|
"voltage_mv": 0
|
|
}
|
|
},
|
|
"smartlife.iot.dimmer": {
|
|
"err_code": -1,
|
|
"err_msg": "module not support"
|
|
},
|
|
"smartlife.iot.smartbulb.lightingservice": {
|
|
"err_code": -1,
|
|
"err_msg": "module not support"
|
|
},
|
|
"system": {
|
|
"get_sysinfo": {
|
|
"active_mode": "none",
|
|
"alias": "KL430 pantry lightstrip",
|
|
"ctrl_protocols": {
|
|
"name": "Linkie",
|
|
"version": "1.0"
|
|
},
|
|
"description": "Kasa Smart Light Strip, Multicolor",
|
|
"dev_state": "normal",
|
|
"deviceId": "0000000000000000000000000000000000000000",
|
|
"disco_ver": "1.0",
|
|
"err_code": 0,
|
|
"hwId": "00000000000000000000000000000000",
|
|
"hw_ver": "1.0",
|
|
"is_color": 1,
|
|
"is_dimmable": 1,
|
|
"is_factory": false,
|
|
"is_variable_color_temp": 1,
|
|
"latitude_i": 0,
|
|
"length": 16,
|
|
"light_state": {
|
|
"brightness": 50,
|
|
"color_temp": 3630,
|
|
"hue": 0,
|
|
"mode": "normal",
|
|
"on_off": 1,
|
|
"saturation": 0
|
|
},
|
|
"lighting_effect_state": {
|
|
"brightness": 50,
|
|
"custom": 0,
|
|
"enable": 0,
|
|
"id": "",
|
|
"name": ""
|
|
},
|
|
"longitude_i": 0,
|
|
"mic_mac": "CC32E5230F55",
|
|
"mic_type": "IOT.SMARTBULB",
|
|
"model": "KL430(US)",
|
|
"oemId": "00000000000000000000000000000000",
|
|
"preferred_state": [],
|
|
"rssi": -56,
|
|
"status": "new",
|
|
"sw_ver": "1.0.10 Build 200522 Rel.104340"
|
|
}
|
|
}
|
|
}
|