python-mobius 0.7.2__py3-none-any.whl → 0.8.0__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.
- mobius/__init__.py +22 -5
- mobius/cli.py +541 -16
- mobius/coap.py +35 -36
- mobius/constants.py +142 -81
- mobius/crc.py +3 -3
- mobius/device.py +839 -602
- mobius/device_status.py +146 -146
- mobius/discovery.py +12 -13
- mobius/dump.py +35 -36
- mobius/frame.py +14 -14
- mobius/manufacturer.py +8 -8
- mobius/mesh_address.py +11 -11
- mobius/mob.py +188 -0
- mobius/modifiers.py +5 -16
- mobius/power.py +7 -7
- mobius/pump_status.py +6 -6
- mobius/relay.py +67 -22
- mobius/schedule.py +164 -16
- {python_mobius-0.7.2.dist-info → python_mobius-0.8.0.dist-info}/METADATA +14 -2
- python_mobius-0.8.0.dist-info/RECORD +24 -0
- python_mobius-0.7.2.dist-info/RECORD +0 -23
- {python_mobius-0.7.2.dist-info → python_mobius-0.8.0.dist-info}/WHEEL +0 -0
- {python_mobius-0.7.2.dist-info → python_mobius-0.8.0.dist-info}/entry_points.txt +0 -0
- {python_mobius-0.7.2.dist-info → python_mobius-0.8.0.dist-info}/licenses/LICENSE +0 -0
mobius/__init__.py
CHANGED
|
@@ -27,6 +27,7 @@ from .constants import (
|
|
|
27
27
|
ErrorState, C2Attribute, PhysicalValueID, VisualID,
|
|
28
28
|
SceneID, OperationState, FsciStatus,
|
|
29
29
|
PumpMode, PumpOverrideMode, RampType, PumpParam, PUMP_PARAM_SIZE, PUMP_MODE_PARAMS,
|
|
30
|
+
supported_pump_modes,
|
|
30
31
|
FirmwareType, FIRMWARE_TYPE_LABELS_ETM, HardwareInfo,
|
|
31
32
|
Color, COLOR_LABELS, RadioType, RADIO_TYPE_LABELS,
|
|
32
33
|
MotorType, MOTOR_TYPE_LABELS, ProductType, PRODUCT_TYPE_LABELS,
|
|
@@ -34,6 +35,9 @@ from .constants import (
|
|
|
34
35
|
from .schedule import (
|
|
35
36
|
LightPrimitive, SchedulePoint, interpolate_light_schedule,
|
|
36
37
|
PumpPrimitiveValue, PumpSchedulePoint, get_active_pump_block,
|
|
38
|
+
light_schedule_to_dict, light_schedule_from_dict,
|
|
39
|
+
pump_schedule_to_dict, pump_schedule_from_dict,
|
|
40
|
+
MAX_PUMP_SCHEDULE_POINT_SIZE,
|
|
37
41
|
)
|
|
38
42
|
from .scenes import Scene, ActiveScene, decode_configured_scenes, decode_active_scene
|
|
39
43
|
from .manufacturer import MOBIUS_COMPANY_ID_ECOTECH, MOBIUS_COMPANY_ID_AQUAILLUMINATION, MOBIUS_COMPANY_IDS, MobiusAdvertisement, parse_manufacturer_data
|
|
@@ -44,7 +48,7 @@ from .modifiers import (
|
|
|
44
48
|
)
|
|
45
49
|
from .power import ChannelPowerInfo, channel_percent_value
|
|
46
50
|
from .pump_status import PumpFlowRange, BatteryBackupInfo, BoostedBatteryInfo
|
|
47
|
-
from .device_status import GroupInfo, CalibrationInfo, AdvancedFeatures, VectraInfo, CoffeeInfo, MaintenanceInfo, DeviceTimeInfo, MeshPeer, Tank, LunarPhaseInfo, MetadataSnapshot
|
|
51
|
+
from .device_status import GroupInfo, CalibrationInfo, AdvancedFeatures, VectraInfo, CoffeeInfo, MaintenanceInfo, DeviceTimeInfo, MeshPeer, Tank, LunarPhaseInfo, MetadataSnapshot, FanThresholds
|
|
48
52
|
from .coap import (
|
|
49
53
|
CoapRequestType, CoapMethod, CoapResponseCode, CoapResponse,
|
|
50
54
|
encode_coap_request, decode_coap_response, COAP_OPCODE, COAP_INDICATION_OPCODE,
|
|
@@ -69,10 +73,15 @@ from .frame import SupportedAttribute
|
|
|
69
73
|
from .dump import (
|
|
70
74
|
dump_attributes, format_attribute_dump_json, parse_attribute_dump_json,
|
|
71
75
|
format_attribute_dump_text, parse_attribute_dump_text, parse_attribute_dump,
|
|
72
|
-
enrich_attribute_dump,
|
|
76
|
+
enrich_attribute_dump, generic_interpretations,
|
|
77
|
+
)
|
|
78
|
+
from .mob import (
|
|
79
|
+
light_schedule_to_mob, mob_to_light_schedule,
|
|
80
|
+
pump_schedule_to_mob, mob_to_pump_schedule, mob_primitive_types,
|
|
81
|
+
MAX_PUMP_PRIMITIVE_SIZE,
|
|
73
82
|
)
|
|
74
83
|
|
|
75
|
-
__version__ = "0.
|
|
84
|
+
__version__ = "0.8.0"
|
|
76
85
|
|
|
77
86
|
__all__ = [
|
|
78
87
|
"__version__",
|
|
@@ -93,12 +102,16 @@ __all__ = [
|
|
|
93
102
|
"ErrorState", "C2Attribute", "PhysicalValueID", "VisualID",
|
|
94
103
|
"SceneID", "OperationState", "FsciStatus",
|
|
95
104
|
"PumpMode", "PumpOverrideMode", "RampType", "PumpParam", "PUMP_PARAM_SIZE", "PUMP_MODE_PARAMS",
|
|
105
|
+
"supported_pump_modes",
|
|
96
106
|
"FirmwareType", "FIRMWARE_TYPE_LABELS_ETM", "HardwareInfo",
|
|
97
107
|
"Color", "COLOR_LABELS", "RadioType", "RADIO_TYPE_LABELS",
|
|
98
108
|
"MotorType", "MOTOR_TYPE_LABELS", "ProductType", "PRODUCT_TYPE_LABELS",
|
|
99
109
|
# schedule
|
|
100
110
|
"LightPrimitive", "SchedulePoint", "interpolate_light_schedule",
|
|
101
111
|
"PumpPrimitiveValue", "PumpSchedulePoint", "get_active_pump_block",
|
|
112
|
+
"light_schedule_to_dict", "light_schedule_from_dict",
|
|
113
|
+
"pump_schedule_to_dict", "pump_schedule_from_dict",
|
|
114
|
+
"MAX_PUMP_SCHEDULE_POINT_SIZE",
|
|
102
115
|
# scenes
|
|
103
116
|
"Scene", "ActiveScene", "decode_configured_scenes", "decode_active_scene",
|
|
104
117
|
# manufacturer
|
|
@@ -112,7 +125,7 @@ __all__ = [
|
|
|
112
125
|
# pump_status
|
|
113
126
|
"PumpFlowRange", "BatteryBackupInfo", "BoostedBatteryInfo",
|
|
114
127
|
# device_status
|
|
115
|
-
"GroupInfo", "CalibrationInfo", "AdvancedFeatures", "VectraInfo", "CoffeeInfo", "MaintenanceInfo", "DeviceTimeInfo", "MeshPeer", "Tank", "LunarPhaseInfo", "MetadataSnapshot",
|
|
128
|
+
"GroupInfo", "CalibrationInfo", "AdvancedFeatures", "VectraInfo", "CoffeeInfo", "MaintenanceInfo", "DeviceTimeInfo", "MeshPeer", "Tank", "LunarPhaseInfo", "MetadataSnapshot", "FanThresholds",
|
|
116
129
|
"CoapRequestType", "CoapMethod", "CoapResponseCode", "CoapResponse",
|
|
117
130
|
"encode_coap_request", "decode_coap_response", "COAP_OPCODE", "COAP_INDICATION_OPCODE",
|
|
118
131
|
"next_coap_token",
|
|
@@ -126,7 +139,11 @@ __all__ = [
|
|
|
126
139
|
"scan_for_mobius_devices", "scan_for_mobius_devices_with_info", "group_by_pan_id",
|
|
127
140
|
"dedupe_by_serial", "find_device_by_serial", "discover_mesh_peers_via_direct_connect",
|
|
128
141
|
"discover_tank",
|
|
129
|
-
"SupportedAttribute", "dump_attributes", "enrich_attribute_dump",
|
|
142
|
+
"SupportedAttribute", "dump_attributes", "enrich_attribute_dump", "generic_interpretations",
|
|
130
143
|
"format_attribute_dump_json", "parse_attribute_dump_json",
|
|
131
144
|
"format_attribute_dump_text", "parse_attribute_dump_text", "parse_attribute_dump",
|
|
145
|
+
# .mob (Template) format
|
|
146
|
+
"light_schedule_to_mob", "mob_to_light_schedule",
|
|
147
|
+
"pump_schedule_to_mob", "mob_to_pump_schedule", "mob_primitive_types",
|
|
148
|
+
"MAX_PUMP_PRIMITIVE_SIZE",
|
|
132
149
|
]
|