pymammotion 0.5.16__py3-none-any.whl → 0.5.17__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- pymammotion/data/model/device_info.py +6 -0
- pymammotion/data/state_manager.py +9 -2
- {pymammotion-0.5.16.dist-info → pymammotion-0.5.17.dist-info}/METADATA +1 -1
- {pymammotion-0.5.16.dist-info → pymammotion-0.5.17.dist-info}/RECORD +6 -6
- {pymammotion-0.5.16.dist-info → pymammotion-0.5.17.dist-info}/LICENSE +0 -0
- {pymammotion-0.5.16.dist-info → pymammotion-0.5.17.dist-info}/WHEEL +0 -0
|
@@ -19,6 +19,11 @@ class DeviceNonWorkingHours(DataClassORJSONMixin):
|
|
|
19
19
|
start_time: str = ""
|
|
20
20
|
end_time: str = ""
|
|
21
21
|
|
|
22
|
+
@dataclass
|
|
23
|
+
class LampInfo(DataClassORJSONMixin):
|
|
24
|
+
lamp_bright: int = 0
|
|
25
|
+
manual_light: bool = False
|
|
26
|
+
night_light: bool = False
|
|
22
27
|
|
|
23
28
|
@dataclass
|
|
24
29
|
class MowerInfo(DataClassORJSONMixin):
|
|
@@ -35,6 +40,7 @@ class MowerInfo(DataClassORJSONMixin):
|
|
|
35
40
|
sub_model_id: str = ""
|
|
36
41
|
ble_mac: str = ""
|
|
37
42
|
wifi_mac: str = ""
|
|
43
|
+
lamp_info: LampInfo = field(default_factory=LampInfo)
|
|
38
44
|
|
|
39
45
|
|
|
40
46
|
@dataclass
|
|
@@ -32,7 +32,7 @@ from pymammotion.proto import (
|
|
|
32
32
|
NavUnableTimeSet,
|
|
33
33
|
SvgMessageAckT,
|
|
34
34
|
TimeCtrlLight,
|
|
35
|
-
WifiIotStatusReport,
|
|
35
|
+
WifiIotStatusReport, Getlamprsp,
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
logger = logging.getLogger(__name__)
|
|
@@ -263,7 +263,14 @@ class StateManager:
|
|
|
263
263
|
self._device.mower_state.wifi_mac = get_network_info_resp.wifi_mac
|
|
264
264
|
|
|
265
265
|
def _update_mul_data(self, message) -> None:
|
|
266
|
-
|
|
266
|
+
"""Media and video states."""
|
|
267
|
+
mul_msg = betterproto.which_one_of(message.net, "SubMul")
|
|
268
|
+
match mul_msg[0]:
|
|
269
|
+
case "Getlamprsp":
|
|
270
|
+
lamp_resp: Getlamprsp = mul_msg[1]
|
|
271
|
+
self._device.mower_state.lamp_info.lamp_bright = lamp_resp.lamp_bright
|
|
272
|
+
self._device.mower_state.lamp_info.night_light = True if lamp_resp.lamp_ctrl.value > 0 else False
|
|
273
|
+
self._device.mower_state.lamp_info.manual_light = True if lamp_resp.lamp_manual_ctrl.value > 0 else False
|
|
267
274
|
|
|
268
275
|
def _update_ota_data(self, message) -> None:
|
|
269
276
|
pass
|
|
@@ -28,7 +28,7 @@ pymammotion/data/model/__init__.py,sha256=UVRbSXGOjYnWv30ZEvzT5QRpdVqAbyeToo-t0Q
|
|
|
28
28
|
pymammotion/data/model/account.py,sha256=vJM-KTf2q6eBfVC-UlNHBSmJvqHiCawZ40vnuhXhaz8,140
|
|
29
29
|
pymammotion/data/model/device.py,sha256=4e5q3slI7fjpizr0DsZIFcJoiCnQtRv0ty_dliDScH8,8288
|
|
30
30
|
pymammotion/data/model/device_config.py,sha256=DTnoePsMwJrKVXqGeKvbZQjs8Zab61U5T3b-c-w0WlM,2654
|
|
31
|
-
pymammotion/data/model/device_info.py,sha256=
|
|
31
|
+
pymammotion/data/model/device_info.py,sha256=Et7WtUnoDEUOGKvHSoPyJJHOWKoTYnKMsvak36Of_1w,1341
|
|
32
32
|
pymammotion/data/model/device_limits.py,sha256=m8HdxD-RaAkPm7jHYb9GLxMEH9IfzBPz0ZypmsLnId4,1946
|
|
33
33
|
pymammotion/data/model/enums.py,sha256=NLImBbeqwbwBLbABC_NbBzk4M8OxhUTcto6QcGZVNOc,1707
|
|
34
34
|
pymammotion/data/model/errors.py,sha256=lBHq2cE8P5fc6Q4JXgrkJXzFKTWgxsoPOyMlTaJWbWk,396
|
|
@@ -47,7 +47,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
|
|
|
47
47
|
pymammotion/data/mqtt/event.py,sha256=pj65y93ACcTzUIJkHZC6s_pRFBYaNMSU1wyYRhiGvw4,5571
|
|
48
48
|
pymammotion/data/mqtt/properties.py,sha256=laud9rE-JqBHWKZ44Dov2yMkp3Ld8ghpBwlZ4_3g9uQ,4321
|
|
49
49
|
pymammotion/data/mqtt/status.py,sha256=qwZPevIzScePA_25nbRWMN7IhU-MhhtIl7fcZKAJfIc,1102
|
|
50
|
-
pymammotion/data/state_manager.py,sha256=
|
|
50
|
+
pymammotion/data/state_manager.py,sha256=ChT4k_Mjags7z3EMk4XWd1MZeL3Cvep_1aTdJpvWJFo,12641
|
|
51
51
|
pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
|
|
52
52
|
pymammotion/event/event.py,sha256=Z8WYxv_-5khEqKjL1w4c_Et24G1Kdm8QFuIBylD3h3U,3021
|
|
53
53
|
pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -128,7 +128,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
|
|
|
128
128
|
pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
|
|
129
129
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
|
130
130
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
|
131
|
-
pymammotion-0.5.
|
|
132
|
-
pymammotion-0.5.
|
|
133
|
-
pymammotion-0.5.
|
|
134
|
-
pymammotion-0.5.
|
|
131
|
+
pymammotion-0.5.17.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
132
|
+
pymammotion-0.5.17.dist-info/METADATA,sha256=xoN2mPqAqKJRmPYuPKqdLtcK7lx6ZMbDZBH-2cYxOmU,3871
|
|
133
|
+
pymammotion-0.5.17.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
134
|
+
pymammotion-0.5.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|