pymammotion 0.5.24__py3-none-any.whl → 0.5.26__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.

@@ -19,18 +19,22 @@ class DeviceNonWorkingHours(DataClassORJSONMixin):
19
19
  start_time: str = ""
20
20
  end_time: str = ""
21
21
 
22
+
22
23
  @dataclass
23
24
  class LampInfo(DataClassORJSONMixin):
24
25
  lamp_bright: int = 0
25
26
  manual_light: bool = False
26
27
  night_light: bool = False
27
28
 
29
+
28
30
  @dataclass
29
31
  class MowerInfo(DataClassORJSONMixin):
30
32
  blade_status: bool = False
31
33
  rain_detection: bool = False
32
34
  traversal_mode: int = 0
33
35
  turning_mode: int = 0
36
+ blade_mode: int = 0
37
+ blade_rpm: int = 0
34
38
  side_led: SideLight = field(default_factory=SideLight)
35
39
  collector_installation_status: bool = False
36
40
  model: str = ""
@@ -10,6 +10,14 @@ class CuttingMode(IntEnum):
10
10
  no_grid = 3
11
11
 
12
12
 
13
+ class CuttingSpeedMode(IntEnum):
14
+ """speed"""
15
+
16
+ normal = 0
17
+ slow = 1
18
+ fast = 2
19
+
20
+
13
21
  class BorderPatrolMode(IntEnum):
14
22
  """"""
15
23
 
@@ -18,6 +18,7 @@ from pymammotion.data.mqtt.status import ThingStatusMessage
18
18
  from pymammotion.event.event import DataEvent
19
19
  from pymammotion.proto import (
20
20
  AppGetAllAreaHashName,
21
+ AppGetCutterWorkMode,
21
22
  DeviceFwInfo,
22
23
  DeviceProductTypeInfoT,
23
24
  DrvDevInfoResp,
@@ -254,6 +255,12 @@ class StateManager:
254
255
 
255
256
  def _update_driver_data(self, message) -> None:
256
257
  """Update driver data."""
258
+ driver_msg = betterproto2.which_one_of(message.driver, "SubDrvMsg")
259
+ match driver_msg[0]:
260
+ case "current_cutter_mode":
261
+ cutter_work_mode: AppGetCutterWorkMode = driver_msg[1]
262
+ self._device.mower_state.cutter_mode = cutter_work_mode.current_cutter_mode
263
+ self._device.mower_state.cutter_rpm = cutter_work_mode.current_cutter_rpm
257
264
 
258
265
  def _update_net_data(self, message) -> None:
259
266
  """Update network data."""
@@ -276,7 +283,7 @@ class StateManager:
276
283
  """Media and video states."""
277
284
  mul_msg = betterproto2.which_one_of(message.mul, "SubMul")
278
285
  match mul_msg[0]:
279
- case "Getlamprsp":
286
+ case "get_lamp_rsp":
280
287
  lamp_resp: Getlamprsp = mul_msg[1]
281
288
  self._device.mower_state.lamp_info.lamp_bright = lamp_resp.lamp_bright
282
289
  if lamp_resp.get_ids in (1126, 1127):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.5.24
3
+ Version: 0.5.26
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -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=2qi0Fv5F_wUZmCxiqDaPjqwz5isKGNODw7ynOfzrLLE,8290
30
30
  pymammotion/data/model/device_config.py,sha256=DTnoePsMwJrKVXqGeKvbZQjs8Zab61U5T3b-c-w0WlM,2654
31
- pymammotion/data/model/device_info.py,sha256=Et7WtUnoDEUOGKvHSoPyJJHOWKoTYnKMsvak36Of_1w,1341
31
+ pymammotion/data/model/device_info.py,sha256=vjqHlRbHOyEkkaIoTwAp14CZMY5R5o609SbThfOO-gg,1390
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
@@ -37,7 +37,7 @@ pymammotion/data/model/execute_boarder.py,sha256=9rd_h4fbcsXxgnLOd2rO2hWyD1abnTG
37
37
  pymammotion/data/model/generate_route_information.py,sha256=pgjqURwmEIzjCMbl4Z5JDDkfxyUAdry1KhPfyir3-mU,777
38
38
  pymammotion/data/model/hash_list.py,sha256=t9pY5JkL8Ky5YE4y6FowsiBeEZJPFl8XrPvW21xavEE,12121
39
39
  pymammotion/data/model/location.py,sha256=PwmITejfI4pm7PI4rzqSuuHetwle6IJr_CV95435s2M,871
40
- pymammotion/data/model/mowing_modes.py,sha256=RY4vNYwnrVjJyjDD2DKZG4B9K9z0GuHbtavWjCc2oVk,1078
40
+ pymammotion/data/model/mowing_modes.py,sha256=4rMn1H8w2iU2aBwpmAhPh_sT81yqrocrWWUIaU7DCIc,1171
41
41
  pymammotion/data/model/rapid_state.py,sha256=mIdhAG_LZXpVcybxqTLgLXkNOmVmDTn04B9PGIDA8Ls,1251
42
42
  pymammotion/data/model/raw_data.py,sha256=x2xuqVC8CQuV3ui3QK4G5EqRET9EsNljHLHR11ByYgo,6471
43
43
  pymammotion/data/model/region_data.py,sha256=VokMRqB_o4OFL1TWAM90Fvm-1z4jcYrw3X2o760qpx4,2949
@@ -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=i9TSTGQeDtUCgUWuunQI_tbm76x0F5L8CkCZ0E_ixms,13565
50
+ pymammotion/data/state_manager.py,sha256=1hWa9f2hecQN3GnQM8LGEYlBGDyF0Q1fUZVSzNMeMAI,13991
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
@@ -130,7 +130,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
130
130
  pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
131
131
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
132
132
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
133
- pymammotion-0.5.24.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
134
- pymammotion-0.5.24.dist-info/METADATA,sha256=Wj7OG5shjN_rQ6QoBC3LgH-wnAr0PsLIjEhj6uQ5Sb4,3872
135
- pymammotion-0.5.24.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
136
- pymammotion-0.5.24.dist-info/RECORD,,
133
+ pymammotion-0.5.26.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
134
+ pymammotion-0.5.26.dist-info/METADATA,sha256=3O5THlKnuYz57s9LQVDQLQi13TR7gyLilHgAz0k2yBY,3872
135
+ pymammotion-0.5.26.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
136
+ pymammotion-0.5.26.dist-info/RECORD,,