python-kasa 0.6.2.1__py3-none-any.whl → 0.7.0.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kasa/__init__.py +90 -27
- kasa/aestransport.py +51 -34
- kasa/cli.py +326 -130
- kasa/device.py +414 -0
- kasa/device_factory.py +83 -44
- kasa/device_type.py +7 -3
- kasa/deviceconfig.py +16 -9
- kasa/discover.py +100 -81
- kasa/emeterstatus.py +7 -5
- kasa/exceptions.py +41 -26
- kasa/feature.py +201 -0
- kasa/httpclient.py +21 -14
- kasa/interfaces/__init__.py +16 -0
- kasa/interfaces/fan.py +20 -0
- kasa/interfaces/led.py +38 -0
- kasa/interfaces/light.py +138 -0
- kasa/interfaces/lighteffect.py +80 -0
- kasa/interfaces/lightpreset.py +76 -0
- kasa/iot/__init__.py +18 -0
- kasa/{effects.py → iot/effects.py} +4 -2
- kasa/{smartbulb.py → iot/iotbulb.py} +103 -147
- kasa/{smartdevice.py → iot/iotdevice.py} +176 -286
- kasa/{smartdimmer.py → iot/iotdimmer.py} +45 -33
- kasa/iot/iotlightstrip.py +71 -0
- kasa/{modules/module.py → iot/iotmodule.py} +22 -42
- kasa/iot/iotplug.py +94 -0
- kasa/{smartstrip.py → iot/iotstrip.py} +57 -75
- kasa/{modules → iot/modules}/__init__.py +10 -2
- kasa/{modules → iot/modules}/ambientlight.py +31 -3
- kasa/{modules → iot/modules}/antitheft.py +1 -0
- kasa/{modules → iot/modules}/cloud.py +25 -6
- kasa/{modules → iot/modules}/countdown.py +1 -0
- kasa/iot/modules/emeter.py +210 -0
- kasa/iot/modules/led.py +32 -0
- kasa/iot/modules/light.py +263 -0
- kasa/iot/modules/lighteffect.py +122 -0
- kasa/iot/modules/lightpreset.py +151 -0
- kasa/{modules → iot/modules}/motion.py +8 -8
- kasa/{modules → iot/modules}/rulemodule.py +11 -12
- kasa/{modules → iot/modules}/schedule.py +1 -0
- kasa/{modules → iot/modules}/time.py +5 -4
- kasa/{modules → iot/modules}/usage.py +10 -8
- kasa/iotprotocol.py +22 -20
- kasa/klaptransport.py +25 -15
- kasa/module.py +136 -0
- kasa/modulemapping.py +25 -0
- kasa/modulemapping.pyi +96 -0
- kasa/protocol.py +6 -4
- kasa/smart/__init__.py +6 -0
- kasa/smart/effects.py +429 -0
- kasa/smart/modules/__init__.py +57 -0
- kasa/smart/modules/alarm.py +142 -0
- kasa/smart/modules/autooff.py +96 -0
- kasa/smart/modules/batterysensor.py +54 -0
- kasa/smart/modules/brightness.py +66 -0
- kasa/smart/modules/childdevice.py +10 -0
- kasa/smart/modules/cloud.py +42 -0
- kasa/smart/modules/color.py +96 -0
- kasa/smart/modules/colortemperature.py +78 -0
- kasa/smart/modules/contactsensor.py +42 -0
- kasa/smart/modules/devicemodule.py +22 -0
- kasa/smart/modules/energy.py +101 -0
- kasa/smart/modules/fan.py +80 -0
- kasa/smart/modules/firmware.py +216 -0
- kasa/smart/modules/frostprotection.py +59 -0
- kasa/smart/modules/humiditysensor.py +55 -0
- kasa/smart/modules/led.py +49 -0
- kasa/smart/modules/light.py +166 -0
- kasa/smart/modules/lighteffect.py +115 -0
- kasa/smart/modules/lightpreset.py +142 -0
- kasa/smart/modules/lightstripeffect.py +135 -0
- kasa/smart/modules/lighttransition.py +183 -0
- kasa/smart/modules/reportmode.py +36 -0
- kasa/smart/modules/temperaturecontrol.py +177 -0
- kasa/smart/modules/temperaturesensor.py +77 -0
- kasa/smart/modules/time.py +57 -0
- kasa/smart/modules/waterleaksensor.py +66 -0
- kasa/smart/smartchilddevice.py +65 -0
- kasa/smart/smartdevice.py +653 -0
- kasa/smart/smartmodule.py +112 -0
- kasa/smartprotocol.py +107 -41
- kasa/tests/conftest.py +27 -562
- kasa/tests/device_fixtures.py +427 -0
- kasa/tests/discovery_fixtures.py +197 -0
- kasa/tests/fakeprotocol_iot.py +64 -6
- kasa/tests/fakeprotocol_smart.py +215 -22
- kasa/tests/fixtureinfo.py +154 -0
- kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +221 -0
- kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +547 -0
- kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +391 -0
- kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +1557 -0
- kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +899 -0
- kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +479 -0
- kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +449 -0
- kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +173 -0
- kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +204 -0
- kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +566 -0
- kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +170 -0
- kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +171 -0
- kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +171 -0
- kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +526 -0
- kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +533 -0
- kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +530 -0
- kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
- kasa/tests/smart/__init__.py +0 -0
- kasa/tests/smart/features/__init__.py +0 -0
- kasa/tests/smart/features/test_brightness.py +55 -0
- kasa/tests/smart/features/test_colortemp.py +30 -0
- kasa/tests/smart/modules/__init__.py +0 -0
- kasa/tests/smart/modules/test_contact.py +28 -0
- kasa/tests/smart/modules/test_fan.py +79 -0
- kasa/tests/smart/modules/test_firmware.py +108 -0
- kasa/tests/smart/modules/test_humidity.py +28 -0
- kasa/tests/smart/modules/test_light_effect.py +41 -0
- kasa/tests/smart/modules/test_temperature.py +47 -0
- kasa/tests/smart/modules/test_temperaturecontrol.py +137 -0
- kasa/tests/smart/modules/test_waterleak.py +42 -0
- kasa/tests/test_aestransport.py +115 -23
- kasa/tests/test_bulb.py +116 -86
- kasa/tests/test_childdevice.py +19 -7
- kasa/tests/test_cli.py +453 -99
- kasa/tests/test_common_modules.py +242 -0
- kasa/tests/test_device.py +268 -0
- kasa/tests/test_device_factory.py +61 -35
- kasa/tests/test_device_type.py +1 -1
- kasa/tests/test_deviceconfig.py +2 -2
- kasa/tests/test_dimmer.py +42 -33
- kasa/tests/test_discovery.py +112 -63
- kasa/tests/test_emeter.py +14 -10
- kasa/tests/test_feature.py +205 -0
- kasa/tests/test_httpclient.py +9 -9
- kasa/tests/test_iotdevice.py +286 -0
- kasa/tests/test_klapprotocol.py +94 -37
- kasa/tests/test_lightstrip.py +24 -19
- kasa/tests/test_plug.py +46 -8
- kasa/tests/test_protocol.py +8 -10
- kasa/tests/test_readme_examples.py +87 -26
- kasa/tests/test_smartdevice.py +203 -311
- kasa/tests/test_smartprotocol.py +130 -25
- kasa/tests/test_strip.py +15 -6
- kasa/tests/test_usage.py +1 -1
- kasa/xortransport.py +15 -12
- {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev1.dist-info}/METADATA +45 -143
- python_kasa-0.7.0.dev1.dist-info/RECORD +239 -0
- kasa/modules/emeter.py +0 -111
- kasa/smartlightstrip.py +0 -143
- kasa/smartplug.py +0 -91
- kasa/tapo/__init__.py +0 -7
- kasa/tapo/childdevice.py +0 -41
- kasa/tapo/tapobulb.py +0 -262
- kasa/tapo/tapodevice.py +0 -409
- kasa/tapo/tapoplug.py +0 -45
- kasa/tests/fixtures/HS105(US)_1.0_mocked.json +0 -47
- kasa/tests/fixtures/HS110(EU)_2.0_mocked.json +0 -50
- kasa/tests/fixtures/HS110(US)_1.0_mocked.json +0 -50
- kasa/tests/fixtures/HS200(US)_1.0_mocked.json +0 -47
- kasa/tests/fixtures/HS220(US)_1.0_mocked.json +0 -75
- kasa/tests/fixtures/LB100(US)_1.0_mocked.json +0 -103
- kasa/tests/fixtures/LB120(US)_1.0_mocked.json +0 -103
- kasa/tests/fixtures/LB130(US)_1.0_mocked.json +0 -104
- python_kasa-0.6.2.1.dist-info/RECORD +0 -167
- {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev1.dist-info}/LICENSE +0 -0
- {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev1.dist-info}/WHEEL +0 -0
- {python_kasa-0.6.2.1.dist-info → python_kasa-0.7.0.dev1.dist-info}/entry_points.txt +0 -0
kasa/tapo/tapoplug.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"""Module for a TAPO Plug."""
|
|
2
|
-
import logging
|
|
3
|
-
from datetime import datetime, timedelta
|
|
4
|
-
from typing import Any, Dict, Optional, cast
|
|
5
|
-
|
|
6
|
-
from ..deviceconfig import DeviceConfig
|
|
7
|
-
from ..smartdevice import DeviceType
|
|
8
|
-
from ..smartprotocol import SmartProtocol
|
|
9
|
-
from .tapodevice import TapoDevice
|
|
10
|
-
|
|
11
|
-
_LOGGER = logging.getLogger(__name__)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class TapoPlug(TapoDevice):
|
|
15
|
-
"""Class to represent a TAPO Plug."""
|
|
16
|
-
|
|
17
|
-
def __init__(
|
|
18
|
-
self,
|
|
19
|
-
host: str,
|
|
20
|
-
*,
|
|
21
|
-
config: Optional[DeviceConfig] = None,
|
|
22
|
-
protocol: Optional[SmartProtocol] = None,
|
|
23
|
-
) -> None:
|
|
24
|
-
super().__init__(host=host, config=config, protocol=protocol)
|
|
25
|
-
self._device_type = DeviceType.Plug
|
|
26
|
-
|
|
27
|
-
@property
|
|
28
|
-
def state_information(self) -> Dict[str, Any]:
|
|
29
|
-
"""Return the key state information."""
|
|
30
|
-
return {
|
|
31
|
-
**super().state_information,
|
|
32
|
-
**{
|
|
33
|
-
"On since": self.on_since,
|
|
34
|
-
"auto_off_status": self._info.get("auto_off_status"),
|
|
35
|
-
"auto_off_remain_time": self._info.get("auto_off_remain_time"),
|
|
36
|
-
},
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@property
|
|
40
|
-
def on_since(self) -> Optional[datetime]:
|
|
41
|
-
"""Return the time that the device was turned on or None if turned off."""
|
|
42
|
-
if not self._info.get("device_on"):
|
|
43
|
-
return None
|
|
44
|
-
on_time = cast(float, self._info.get("on_time"))
|
|
45
|
-
return datetime.now().replace(microsecond=0) - timedelta(seconds=on_time)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"get_realtime": {
|
|
4
|
-
"err_code": -1,
|
|
5
|
-
"err_msg": "module not support"
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"smartlife.iot.common.emeter": {
|
|
9
|
-
"err_code": -1,
|
|
10
|
-
"err_msg": "module not support"
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"err_code": -1,
|
|
14
|
-
"err_msg": "module not support"
|
|
15
|
-
},
|
|
16
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
17
|
-
"err_code": -1,
|
|
18
|
-
"err_msg": "module not support"
|
|
19
|
-
},
|
|
20
|
-
"system": {
|
|
21
|
-
"get_sysinfo": {
|
|
22
|
-
"active_mode": "schedule",
|
|
23
|
-
"alias": "Mock hs105",
|
|
24
|
-
"dev_name": "Smart Wi-Fi Plug Mini",
|
|
25
|
-
"deviceId": "F0723FAFC1FA27FC755B9F228A2297D921FEBCD1",
|
|
26
|
-
"err_code": 0,
|
|
27
|
-
"feature": "TIM",
|
|
28
|
-
"hwId": "51E17031929D5FEF9147091AD67B954A",
|
|
29
|
-
"hw_ver": "1.0",
|
|
30
|
-
"icon_hash": "",
|
|
31
|
-
"INVALIDlatitude": 79.7779,
|
|
32
|
-
"latitude_i": 79.7779,
|
|
33
|
-
"led_off": 0,
|
|
34
|
-
"INVALIDlongitude": 90.8844,
|
|
35
|
-
"longitude_i": 90.8844,
|
|
36
|
-
"mac": "50:c7:bf:ac:c0:6a",
|
|
37
|
-
"model": "HS105(US)",
|
|
38
|
-
"oemId": "990ADB7AEDE871C41D1B7613D1FE7A76",
|
|
39
|
-
"on_time": 0,
|
|
40
|
-
"relay_state": 0,
|
|
41
|
-
"rssi": -65,
|
|
42
|
-
"sw_ver": "1.2.9 Build 170808 Rel.145916",
|
|
43
|
-
"type": "IOT.SMARTPLUGSWITCH",
|
|
44
|
-
"updating": 0
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"get_realtime": {
|
|
4
|
-
"current_ma": 125,
|
|
5
|
-
"err_code": 0,
|
|
6
|
-
"power_mw": 3140,
|
|
7
|
-
"total_wh": 51493,
|
|
8
|
-
"voltage_mv": 122049
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"smartlife.iot.common.emeter": {
|
|
12
|
-
"err_code": -1,
|
|
13
|
-
"err_msg": "module not support"
|
|
14
|
-
},
|
|
15
|
-
"smartlife.iot.dimmer": {
|
|
16
|
-
"err_code": -1,
|
|
17
|
-
"err_msg": "module not support"
|
|
18
|
-
},
|
|
19
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
20
|
-
"err_code": -1,
|
|
21
|
-
"err_msg": "module not support"
|
|
22
|
-
},
|
|
23
|
-
"system": {
|
|
24
|
-
"get_sysinfo": {
|
|
25
|
-
"active_mode": "schedule",
|
|
26
|
-
"alias": "Mock hs110v2",
|
|
27
|
-
"dev_name": "Smart Wi-Fi Plug With Energy Monitoring",
|
|
28
|
-
"deviceId": "A466BCDB5026318939145B7CC7EF18D8C1D3A954",
|
|
29
|
-
"err_code": 0,
|
|
30
|
-
"feature": "TIM:ENE",
|
|
31
|
-
"hwId": "1F7FABB46373CA51E3AFDE5930ECBB36",
|
|
32
|
-
"hw_ver": "2.0",
|
|
33
|
-
"icon_hash": "",
|
|
34
|
-
"INVALIDlatitude": -60.4599,
|
|
35
|
-
"latitude_i": -60.4599,
|
|
36
|
-
"led_off": 0,
|
|
37
|
-
"INVALIDlongitude": 76.1249,
|
|
38
|
-
"longitude_i": 76.1249,
|
|
39
|
-
"mac": "50:c7:bf:b9:40:08",
|
|
40
|
-
"model": "HS110(EU)",
|
|
41
|
-
"oemId": "BB668B949FA4559655F1187DD56622BD",
|
|
42
|
-
"on_time": 0,
|
|
43
|
-
"relay_state": 0,
|
|
44
|
-
"rssi": -65,
|
|
45
|
-
"sw_ver": "1.5.2 Build 180130 Rel.085820",
|
|
46
|
-
"type": "IOT.SMARTPLUGSWITCH",
|
|
47
|
-
"updating": 0
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"get_realtime": {
|
|
4
|
-
"current": 0.1256,
|
|
5
|
-
"err_code": 0,
|
|
6
|
-
"power": 3.14,
|
|
7
|
-
"total": 51.493,
|
|
8
|
-
"voltage": 122.049119
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"smartlife.iot.common.emeter": {
|
|
12
|
-
"err_code": -1,
|
|
13
|
-
"err_msg": "module not support"
|
|
14
|
-
},
|
|
15
|
-
"smartlife.iot.dimmer": {
|
|
16
|
-
"err_code": -1,
|
|
17
|
-
"err_msg": "module not support"
|
|
18
|
-
},
|
|
19
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
20
|
-
"err_code": -1,
|
|
21
|
-
"err_msg": "module not support"
|
|
22
|
-
},
|
|
23
|
-
"system": {
|
|
24
|
-
"get_sysinfo": {
|
|
25
|
-
"active_mode": "schedule",
|
|
26
|
-
"alias": "Mock hs110",
|
|
27
|
-
"dev_name": "Wi-Fi Smart Plug With Energy Monitoring",
|
|
28
|
-
"deviceId": "11A5FD4A0FA1FCE5468F55D23CE77D1753A93E11",
|
|
29
|
-
"err_code": 0,
|
|
30
|
-
"feature": "TIM:ENE",
|
|
31
|
-
"hwId": "6C56A17315351DD0EDE0BDB1D9EBBD66",
|
|
32
|
-
"hw_ver": "1.0",
|
|
33
|
-
"icon_hash": "",
|
|
34
|
-
"latitude": 82.2866,
|
|
35
|
-
"latitude_i": 82.2866,
|
|
36
|
-
"led_off": 0,
|
|
37
|
-
"longitude": 10.0036,
|
|
38
|
-
"longitude_i": 10.0036,
|
|
39
|
-
"mac": "50:c7:bf:66:29:29",
|
|
40
|
-
"model": "HS110(US)",
|
|
41
|
-
"oemId": "F7DFC14D43DA806B55DB66D21F212B60",
|
|
42
|
-
"on_time": 0,
|
|
43
|
-
"relay_state": 0,
|
|
44
|
-
"rssi": -65,
|
|
45
|
-
"sw_ver": "1.0.8 Build 151113 Rel.24658",
|
|
46
|
-
"type": "IOT.SMARTPLUGSWITCH",
|
|
47
|
-
"updating": 0
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"get_realtime": {
|
|
4
|
-
"err_code": -1,
|
|
5
|
-
"err_msg": "module not support"
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"smartlife.iot.common.emeter": {
|
|
9
|
-
"err_code": -1,
|
|
10
|
-
"err_msg": "module not support"
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"err_code": -1,
|
|
14
|
-
"err_msg": "module not support"
|
|
15
|
-
},
|
|
16
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
17
|
-
"err_code": -1,
|
|
18
|
-
"err_msg": "module not support"
|
|
19
|
-
},
|
|
20
|
-
"system": {
|
|
21
|
-
"get_sysinfo": {
|
|
22
|
-
"active_mode": "schedule",
|
|
23
|
-
"alias": "Mock hs200",
|
|
24
|
-
"dev_name": "Wi-Fi Smart Light Switch",
|
|
25
|
-
"deviceId": "EC565185337CF59A4C9A73442AAD5F11C6E91716",
|
|
26
|
-
"err_code": 0,
|
|
27
|
-
"feature": "TIM",
|
|
28
|
-
"hwId": "4B5DB5E42F13728107D075EF5C3ECFA1",
|
|
29
|
-
"hw_ver": "1.0",
|
|
30
|
-
"icon_hash": "",
|
|
31
|
-
"latitude": 58.7882,
|
|
32
|
-
"latitude_i": 58.7882,
|
|
33
|
-
"led_off": 0,
|
|
34
|
-
"longitude": 107.7225,
|
|
35
|
-
"longitude_i": 107.7225,
|
|
36
|
-
"mac": "50:c7:bf:95:4b:45",
|
|
37
|
-
"model": "HS200(US)",
|
|
38
|
-
"oemId": "D2A5D690B25980755216FD684AF8CD88",
|
|
39
|
-
"on_time": 0,
|
|
40
|
-
"relay_state": 0,
|
|
41
|
-
"rssi": -65,
|
|
42
|
-
"sw_ver": "1.1.0 Build 160521 Rel.085826",
|
|
43
|
-
"type": "IOT.SMARTPLUGSWITCH",
|
|
44
|
-
"updating": 0
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"get_realtime": {
|
|
4
|
-
"err_code": -1,
|
|
5
|
-
"err_msg": "module not support"
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"smartlife.iot.common.emeter": {
|
|
9
|
-
"err_code": -1,
|
|
10
|
-
"err_msg": "module not support"
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"get_dimmer_parameters": {
|
|
14
|
-
"bulb_type": 1,
|
|
15
|
-
"err_code": 0,
|
|
16
|
-
"fadeOffTime": 3000,
|
|
17
|
-
"fadeOnTime": 3000,
|
|
18
|
-
"gentleOffTime": 510000,
|
|
19
|
-
"gentleOnTime": 3000,
|
|
20
|
-
"minThreshold": 0,
|
|
21
|
-
"rampRate": 30
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
25
|
-
"err_code": -1,
|
|
26
|
-
"err_msg": "module not support"
|
|
27
|
-
},
|
|
28
|
-
"system": {
|
|
29
|
-
"get_sysinfo": {
|
|
30
|
-
"active_mode": "count_down",
|
|
31
|
-
"alias": "Mock hs220",
|
|
32
|
-
"brightness": 50,
|
|
33
|
-
"dev_name": "Smart Wi-Fi Dimmer",
|
|
34
|
-
"deviceId": "98E16F2D5ED204F3094CF472260237133DC0D547",
|
|
35
|
-
"err_code": 0,
|
|
36
|
-
"feature": "TIM",
|
|
37
|
-
"hwId": "231004CCCDB6C0B8FC7A3260C3470257",
|
|
38
|
-
"hw_ver": "1.0",
|
|
39
|
-
"icon_hash": "",
|
|
40
|
-
"INVALIDlatitude": 11.6210,
|
|
41
|
-
"latitude_i": 11.6210,
|
|
42
|
-
"led_off": 0,
|
|
43
|
-
"INVALIDlongitude": 42.2074,
|
|
44
|
-
"longitude_i": 42.2074,
|
|
45
|
-
"mac": "50:c7:bf:af:75:5d",
|
|
46
|
-
"mic_type": "IOT.SMARTPLUGSWITCH",
|
|
47
|
-
"model": "HS220(US)",
|
|
48
|
-
"oemId": "8FBD0F3CCF7E82836DC7996C524EF772",
|
|
49
|
-
"on_time": 0,
|
|
50
|
-
"preferred_state": [
|
|
51
|
-
{
|
|
52
|
-
"brightness": 100,
|
|
53
|
-
"index": 0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"brightness": 75,
|
|
57
|
-
"index": 1
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"brightness": 50,
|
|
61
|
-
"index": 2
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"brightness": 25,
|
|
65
|
-
"index": 3
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"relay_state": 0,
|
|
69
|
-
"rssi": -65,
|
|
70
|
-
"sw_ver": "1.5.7 Build 180912 Rel.104837",
|
|
71
|
-
"type": "IOT.SMARTPLUGSWITCH",
|
|
72
|
-
"updating": 0
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"err_code": -1,
|
|
4
|
-
"err_msg": "module not support"
|
|
5
|
-
},
|
|
6
|
-
"smartlife.iot.common.emeter": {
|
|
7
|
-
"get_realtime": {
|
|
8
|
-
"err_code": 0,
|
|
9
|
-
"power_mw": 10800
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"err_code": -1,
|
|
14
|
-
"err_msg": "module not support"
|
|
15
|
-
},
|
|
16
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
17
|
-
"get_light_state": {
|
|
18
|
-
"dft_on_state": {
|
|
19
|
-
"brightness": 100,
|
|
20
|
-
"color_temp": 2700,
|
|
21
|
-
"hue": 0,
|
|
22
|
-
"mode": "normal",
|
|
23
|
-
"saturation": 0
|
|
24
|
-
},
|
|
25
|
-
"err_code": 0,
|
|
26
|
-
"on_off": 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"system": {
|
|
30
|
-
"get_sysinfo": {
|
|
31
|
-
"active_mode": "none",
|
|
32
|
-
"alias": "Mock lb100",
|
|
33
|
-
"ctrl_protocols": {
|
|
34
|
-
"name": "Linkie",
|
|
35
|
-
"version": "1.0"
|
|
36
|
-
},
|
|
37
|
-
"description": "Smart Wi-Fi LED Bulb with Dimmable Light",
|
|
38
|
-
"dev_state": "normal",
|
|
39
|
-
"deviceId": "15BD5A6C4B729A7C0D4D46ADDFA7E2600793C56A",
|
|
40
|
-
"disco_ver": "1.0",
|
|
41
|
-
"err_code": 0,
|
|
42
|
-
"heapsize": 302452,
|
|
43
|
-
"hwId": "1B0DF0A2EFE6251DBE726D1D2167C78F",
|
|
44
|
-
"hw_ver": "1.0",
|
|
45
|
-
"is_color": 0,
|
|
46
|
-
"is_dimmable": 1,
|
|
47
|
-
"is_factory": false,
|
|
48
|
-
"is_variable_color_temp": 0,
|
|
49
|
-
"latitude": -51.8361,
|
|
50
|
-
"latitude_i": -51.8361,
|
|
51
|
-
"light_state": {
|
|
52
|
-
"dft_on_state": {
|
|
53
|
-
"brightness": 100,
|
|
54
|
-
"color_temp": 2700,
|
|
55
|
-
"hue": 0,
|
|
56
|
-
"mode": "normal",
|
|
57
|
-
"saturation": 0
|
|
58
|
-
},
|
|
59
|
-
"err_code": 0,
|
|
60
|
-
"on_off": 0
|
|
61
|
-
},
|
|
62
|
-
"longitude": -34.0697,
|
|
63
|
-
"longitude_i": -34.0697,
|
|
64
|
-
"mac": "50:c7:bf:51:10:65",
|
|
65
|
-
"mic_type": "IOT.SMARTBULB",
|
|
66
|
-
"model": "LB100(US)",
|
|
67
|
-
"oemId": "C9CF655C9A5AA101E66EBA5B382E40CC",
|
|
68
|
-
"on_time": 0,
|
|
69
|
-
"preferred_state": [
|
|
70
|
-
{
|
|
71
|
-
"brightness": 100,
|
|
72
|
-
"color_temp": 2700,
|
|
73
|
-
"hue": 0,
|
|
74
|
-
"index": 0,
|
|
75
|
-
"saturation": 0
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"brightness": 75,
|
|
79
|
-
"color_temp": 2700,
|
|
80
|
-
"hue": 0,
|
|
81
|
-
"index": 1,
|
|
82
|
-
"saturation": 0
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"brightness": 25,
|
|
86
|
-
"color_temp": 2700,
|
|
87
|
-
"hue": 0,
|
|
88
|
-
"index": 2,
|
|
89
|
-
"saturation": 0
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"brightness": 1,
|
|
93
|
-
"color_temp": 2700,
|
|
94
|
-
"hue": 0,
|
|
95
|
-
"index": 3,
|
|
96
|
-
"saturation": 0
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"rssi": -65,
|
|
100
|
-
"sw_ver": "1.4.3 Build 170504 Rel.144921"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"err_code": -1,
|
|
4
|
-
"err_msg": "module not support"
|
|
5
|
-
},
|
|
6
|
-
"smartlife.iot.common.emeter": {
|
|
7
|
-
"get_realtime": {
|
|
8
|
-
"err_code": 0,
|
|
9
|
-
"power_mw": 10800
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"err_code": -1,
|
|
14
|
-
"err_msg": "module not support"
|
|
15
|
-
},
|
|
16
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
17
|
-
"get_light_state": {
|
|
18
|
-
"dft_on_state": {
|
|
19
|
-
"brightness": 100,
|
|
20
|
-
"color_temp": 2700,
|
|
21
|
-
"hue": 0,
|
|
22
|
-
"mode": "normal",
|
|
23
|
-
"saturation": 0
|
|
24
|
-
},
|
|
25
|
-
"err_code": 0,
|
|
26
|
-
"on_off": 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"system": {
|
|
30
|
-
"get_sysinfo": {
|
|
31
|
-
"active_mode": "none",
|
|
32
|
-
"alias": "Mock lb120",
|
|
33
|
-
"ctrl_protocols": {
|
|
34
|
-
"name": "Linkie",
|
|
35
|
-
"version": "1.0"
|
|
36
|
-
},
|
|
37
|
-
"description": "Smart Wi-Fi LED Bulb with Tunable White Light",
|
|
38
|
-
"dev_state": "normal",
|
|
39
|
-
"deviceId": "62FD818E5B66A509D571D07D0F00FA4DD6468494",
|
|
40
|
-
"disco_ver": "1.0",
|
|
41
|
-
"err_code": 0,
|
|
42
|
-
"heapsize": 302452,
|
|
43
|
-
"hwId": "CC0588817E251DF996F1848ED331F543",
|
|
44
|
-
"hw_ver": "1.0",
|
|
45
|
-
"is_color": 0,
|
|
46
|
-
"is_dimmable": 1,
|
|
47
|
-
"is_factory": false,
|
|
48
|
-
"is_variable_color_temp": 1,
|
|
49
|
-
"latitude": -76.9197,
|
|
50
|
-
"latitude_i": -76.9197,
|
|
51
|
-
"light_state": {
|
|
52
|
-
"dft_on_state": {
|
|
53
|
-
"brightness": 100,
|
|
54
|
-
"color_temp": 2700,
|
|
55
|
-
"hue": 0,
|
|
56
|
-
"mode": "normal",
|
|
57
|
-
"saturation": 0
|
|
58
|
-
},
|
|
59
|
-
"err_code": 0,
|
|
60
|
-
"on_off": 0
|
|
61
|
-
},
|
|
62
|
-
"longitude": 164.7293,
|
|
63
|
-
"longitude_i": 164.7293,
|
|
64
|
-
"mac": "50:c7:bf:dc:62:13",
|
|
65
|
-
"mic_type": "IOT.SMARTBULB",
|
|
66
|
-
"model": "LB120(US)",
|
|
67
|
-
"oemId": "05D0D97951F565579A7F5A70A57AED0B",
|
|
68
|
-
"on_time": 0,
|
|
69
|
-
"preferred_state": [
|
|
70
|
-
{
|
|
71
|
-
"brightness": 100,
|
|
72
|
-
"color_temp": 2700,
|
|
73
|
-
"hue": 0,
|
|
74
|
-
"index": 0,
|
|
75
|
-
"saturation": 0
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"brightness": 75,
|
|
79
|
-
"color_temp": 2700,
|
|
80
|
-
"hue": 0,
|
|
81
|
-
"index": 1,
|
|
82
|
-
"saturation": 0
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"brightness": 25,
|
|
86
|
-
"color_temp": 2700,
|
|
87
|
-
"hue": 0,
|
|
88
|
-
"index": 2,
|
|
89
|
-
"saturation": 0
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"brightness": 1,
|
|
93
|
-
"color_temp": 2700,
|
|
94
|
-
"hue": 0,
|
|
95
|
-
"index": 3,
|
|
96
|
-
"saturation": 0
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"rssi": -65,
|
|
100
|
-
"sw_ver": "1.1.0 Build 160630 Rel.085319"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emeter": {
|
|
3
|
-
"err_code": -1,
|
|
4
|
-
"err_msg": "module not support"
|
|
5
|
-
},
|
|
6
|
-
"smartlife.iot.common.emeter": {
|
|
7
|
-
"get_realtime": {
|
|
8
|
-
"err_code": 0,
|
|
9
|
-
"power_mw": 10800
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"smartlife.iot.dimmer": {
|
|
13
|
-
"err_code": -1,
|
|
14
|
-
"err_msg": "module not support"
|
|
15
|
-
},
|
|
16
|
-
"smartlife.iot.smartbulb.lightingservice": {
|
|
17
|
-
"get_light_state": {
|
|
18
|
-
"dft_on_state": {
|
|
19
|
-
"brightness": 100,
|
|
20
|
-
"color_temp": 2700,
|
|
21
|
-
"hue": 0,
|
|
22
|
-
"mode": "normal",
|
|
23
|
-
"saturation": 0
|
|
24
|
-
},
|
|
25
|
-
"err_code": 0,
|
|
26
|
-
"on_off": 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"system": {
|
|
30
|
-
"get_sysinfo": {
|
|
31
|
-
"active_mode": "none",
|
|
32
|
-
"alias": "Mock lb130",
|
|
33
|
-
"ctrl_protocols": {
|
|
34
|
-
"name": "Linkie",
|
|
35
|
-
"version": "1.0"
|
|
36
|
-
},
|
|
37
|
-
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
|
38
|
-
"dev_state": "normal",
|
|
39
|
-
"deviceId": "50BE9E7B6F26CA75D495C13EAA459C491768F143",
|
|
40
|
-
"disco_ver": "1.0",
|
|
41
|
-
"err_code": 0,
|
|
42
|
-
"heapsize": 302452,
|
|
43
|
-
"hwId": "C8AD962B53417C2845CC10CE25C00BB1",
|
|
44
|
-
"hw_ver": "1.0",
|
|
45
|
-
"is_color": 1,
|
|
46
|
-
"is_dimmable": 1,
|
|
47
|
-
"is_factory": false,
|
|
48
|
-
"is_variable_color_temp": 1,
|
|
49
|
-
"latitude": 76.8649,
|
|
50
|
-
"latitude_i": 76.8649,
|
|
51
|
-
"light_state": {
|
|
52
|
-
"dft_on_state": {
|
|
53
|
-
"brightness": 100,
|
|
54
|
-
"color_temp": 2700,
|
|
55
|
-
"hue": 0,
|
|
56
|
-
"mode": "normal",
|
|
57
|
-
"saturation": 0
|
|
58
|
-
},
|
|
59
|
-
"err_code": 0,
|
|
60
|
-
"on_off": 0
|
|
61
|
-
},
|
|
62
|
-
"longitude": -40.7284,
|
|
63
|
-
"longitude_i": -40.7284,
|
|
64
|
-
"INVALIDmac": "50:c7:bf:ac:f6:19",
|
|
65
|
-
"mic_mac": "50C7BFACF619",
|
|
66
|
-
"mic_type": "IOT.SMARTBULB",
|
|
67
|
-
"model": "LB130(US)",
|
|
68
|
-
"oemId": "CF78964560AAB75A43F15D2E468B63EF",
|
|
69
|
-
"on_time": 0,
|
|
70
|
-
"preferred_state": [
|
|
71
|
-
{
|
|
72
|
-
"brightness": 100,
|
|
73
|
-
"color_temp": 2700,
|
|
74
|
-
"hue": 0,
|
|
75
|
-
"index": 0,
|
|
76
|
-
"saturation": 0
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"brightness": 75,
|
|
80
|
-
"color_temp": 2700,
|
|
81
|
-
"hue": 0,
|
|
82
|
-
"index": 1,
|
|
83
|
-
"saturation": 0
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"brightness": 25,
|
|
87
|
-
"color_temp": 2700,
|
|
88
|
-
"hue": 0,
|
|
89
|
-
"index": 2,
|
|
90
|
-
"saturation": 0
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"brightness": 1,
|
|
94
|
-
"color_temp": 2700,
|
|
95
|
-
"hue": 0,
|
|
96
|
-
"index": 3,
|
|
97
|
-
"saturation": 0
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"rssi": -65,
|
|
101
|
-
"sw_ver": "1.6.0 Build 170703 Rel.141938"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|