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