pyvesync 3.5.1__tar.gz → 3.6.0__tar.gz

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.
Files changed (61) hide show
  1. {pyvesync-3.5.1/src/pyvesync.egg-info → pyvesync-3.6.0}/PKG-INFO +13 -7
  2. {pyvesync-3.5.1 → pyvesync-3.6.0}/README.md +10 -4
  3. {pyvesync-3.5.1 → pyvesync-3.6.0}/pyproject.toml +3 -3
  4. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/auth.py +13 -3
  5. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/fryer_base.py +37 -8
  6. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/purifier_base.py +415 -1
  7. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/const.py +180 -8
  8. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/device_container.py +1 -1
  9. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/device_map.py +383 -10
  10. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesynchumidifier.py +6 -0
  11. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesynckitchen.py +218 -49
  12. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesyncoutlet.py +276 -39
  13. pyvesync-3.6.0/src/pyvesync/devices/vesyncpurifier.py +2320 -0
  14. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/bypass_models.py +11 -0
  15. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/outlet_models.py +75 -1
  16. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/purifier_models.py +150 -3
  17. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/errors.py +11 -2
  18. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/helpers.py +15 -7
  19. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/logs.py +24 -0
  20. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/vesync.py +217 -44
  21. {pyvesync-3.5.1 → pyvesync-3.6.0/src/pyvesync.egg-info}/PKG-INFO +13 -7
  22. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync.egg-info/requires.txt +2 -2
  23. pyvesync-3.5.1/src/pyvesync/devices/vesyncpurifier.py +0 -1131
  24. {pyvesync-3.5.1 → pyvesync-3.6.0}/LICENSE +0 -0
  25. {pyvesync-3.5.1 → pyvesync-3.6.0}/MANIFEST.in +0 -0
  26. {pyvesync-3.5.1 → pyvesync-3.6.0}/requirements.txt +0 -0
  27. {pyvesync-3.5.1 → pyvesync-3.6.0}/setup.cfg +0 -0
  28. {pyvesync-3.5.1 → pyvesync-3.6.0}/setup.py +0 -0
  29. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/__init__.py +0 -0
  30. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/__init__.py +0 -0
  31. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/bulb_base.py +0 -0
  32. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/fan_base.py +0 -0
  33. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/humidifier_base.py +0 -0
  34. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/outlet_base.py +0 -0
  35. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/switch_base.py +0 -0
  36. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/thermostat_base.py +0 -0
  37. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/base_devices/vesyncbasedevice.py +0 -0
  38. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/__init__.py +0 -0
  39. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesyncbulb.py +0 -0
  40. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesyncfan.py +0 -0
  41. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesyncswitch.py +0 -0
  42. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/devices/vesyncthermostat.py +0 -0
  43. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/__init__.py +0 -0
  44. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/base_models.py +0 -0
  45. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/bulb_models.py +0 -0
  46. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/fan_models.py +0 -0
  47. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/fryer_models.py +0 -0
  48. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/home_models.py +0 -0
  49. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/humidifier_models.py +0 -0
  50. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/switch_models.py +0 -0
  51. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/thermostat_models.py +0 -0
  52. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/models/vesync_models.py +0 -0
  53. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/py.typed +0 -0
  54. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/__init__.py +0 -0
  55. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/colors.py +0 -0
  56. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/device_mixins.py +0 -0
  57. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/utils/enum_utils.py +0 -0
  58. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync/vesynchome.py +0 -0
  59. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync.egg-info/SOURCES.txt +0 -0
  60. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync.egg-info/dependency_links.txt +0 -0
  61. {pyvesync-3.5.1 → pyvesync-3.6.0}/src/pyvesync.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyvesync
3
- Version: 3.5.1
3
+ Version: 3.6.0
4
4
  Summary: pyvesync is a library to manage Etekcity Devices, Cosori Air Fryers, and Levoit Air Purifiers run on the VeSync app.
5
5
  Author: Mark Perdue
6
6
  Author-email: Joe Trabulsy <webdjoe@gmail.com>
@@ -23,7 +23,7 @@ Requires-Dist: pytest-cov; extra == "dev"
23
23
  Requires-Dist: pyyaml; extra == "dev"
24
24
  Requires-Dist: pylint; extra == "dev"
25
25
  Requires-Dist: mypy; extra == "dev"
26
- Requires-Dist: ruff==0.15.21; extra == "dev"
26
+ Requires-Dist: ruff==0.17.6; extra == "dev"
27
27
  Requires-Dist: pre-commit; extra == "dev"
28
28
  Requires-Dist: tox; extra == "dev"
29
29
  Requires-Dist: requests; extra == "dev"
@@ -31,7 +31,7 @@ Requires-Dist: aiofiles; extra == "dev"
31
31
  Provides-Extra: docs
32
32
  Requires-Dist: mkdocstrings-python; extra == "docs"
33
33
  Requires-Dist: mkdocs; extra == "docs"
34
- Requires-Dist: ruff==0.15.21; extra == "docs"
34
+ Requires-Dist: ruff==0.17.6; extra == "docs"
35
35
  Requires-Dist: Pygments; extra == "docs"
36
36
  Requires-Dist: mkdocs-material; extra == "docs"
37
37
  Requires-Dist: mkdocstrings; extra == "docs"
@@ -260,9 +260,10 @@ pip install pyvesync
260
260
  4. Voltson Smart WiFi Outlet - Round (10A model ESW10-USA)
261
261
  5. Voltson Smart WiFi Outlet - Rectangle (15A model ESW15-USA)
262
262
  6. Two Plug Outdoor Outlet (ESO15-TB) (Each plug is a separate `VeSyncOutlet` object, energy readings are for both plugs combined)
263
- 7. BSDOG / Greensun Smart Outlet Series (BSDOG01, BSDOG02, WYSMTOD16A, WM-PLUG and more)
264
- 8. WHOGPLUG / Greensun Smart Plug
265
- 9. WYLDR Smart Plug (WYLDR16A1081) (Supports energy monitoring but not energy history)
263
+ 7. BSDOG / Greensun Smart Outlet Series (BSDOG01, BSDOG02, WYSMTOD16A, WM-PLUG and more). A BSDOG02 on config module `BS_WFBO_OTL_BSDOG02_UN` uses the WHOG class.
264
+ 8. WHOGPLUG / Greensun Smart Plug (WHOGPLUG, WYZYOGMINIPLUG, WYZYOG-HWPLUG16A). A WHOGPLUG on config module `WH_WFBO_OTL_S_WHOGPLUG_UN` uses the BSDOG class.
265
+ 9. WYLDR Smart Plug (WYLDR16A1080, WYLDR16A1081)
266
+ 10. Sagewe 15A Smart Plug with Energy Monitoring (F3s202-USVC)
266
267
 
267
268
  <!--SUPPORTED OUTLETS END-->
268
269
 
@@ -287,6 +288,10 @@ pip install pyvesync
287
288
  7. Vital 100S / 200S
288
289
  8. Everest Air
289
290
  9. Sprout Air Purifier
291
+ 10. Vital Pet Pro (LAP-P501S)
292
+ 11. Vital Pet (LAP-P201S-WUS)
293
+ 12. Core 300S MaxAQ / Eleva 300X (LAP-C341S)
294
+ 13. Eleva 500X (LAP-C511S)
290
295
 
291
296
  ### Etekcity / Valceno Bulbs
292
297
 
@@ -319,6 +324,7 @@ pip install pyvesync
319
324
  4. Cosori Dual Blaze 6.8 Quart Air Fryer (CAF-P583S)
320
325
  5. Cosori Dual Air Fryer (CAF-TF101S)
321
326
  6. Cosori Turbo Tower Pro Smart Air Fryer (CAF-DC111S-AEU)
327
+ 7. Cosori Smart 5.8 Quart Air Fryer (CS358-AF)
322
328
 
323
329
  ### Thermostats
324
330
 
@@ -523,7 +529,7 @@ if __name__ == "__main__":
523
529
  Contributions — from humans and AI coding assistants alike — must follow three rules. These keep the library correct and maintainable. See the [contributing guide](https://webdjoe.github.io/pyvesync/latest/development/contributing) for full detail.
524
530
 
525
531
  1. **Follow the intended architecture.** New devices are added through the three-tier hierarchy (base class → concrete device + API mixin → device map), with state in the device's `DeviceState` subclass, models in `models/`, and constants in `pyvesync.const`. API request/response shapes must come from a real packet capture — never invented.
526
- 2. **Verify on real hardware before merge.** New device support and any change to device behavior must be tested on the physical device, and the pull request must state the model and firmware version tested. Testing only through Home Assistant does not count.
532
+ 2. **Verify on real hardware before merge.** New device support and any change to device behavior must be tested on the physical device, and the pull request must state the model tested. Testing only through Home Assistant does not count.
527
533
  3. **One change per pull request.** Each PR must be a single feature, fix, or edit. Large or mixed PRs that bundle unrelated changes will be asked to be broken up before review.
528
534
 
529
535
  > **Using an AI assistant?** Agent instructions live in [`AGENTS.md`](AGENTS.md), which Codex and most tools read directly; [`CLAUDE.md`](CLAUDE.md) imports it for Claude Code. Point your assistant at it and the [contributing guide](https://webdjoe.github.io/pyvesync/latest/development/contributing). You are responsible for the result: it must follow the architecture, must not fabricate API fields, must not be submitted without real-device testing, and must be a single focused change.
@@ -212,9 +212,10 @@ pip install pyvesync
212
212
  4. Voltson Smart WiFi Outlet - Round (10A model ESW10-USA)
213
213
  5. Voltson Smart WiFi Outlet - Rectangle (15A model ESW15-USA)
214
214
  6. Two Plug Outdoor Outlet (ESO15-TB) (Each plug is a separate `VeSyncOutlet` object, energy readings are for both plugs combined)
215
- 7. BSDOG / Greensun Smart Outlet Series (BSDOG01, BSDOG02, WYSMTOD16A, WM-PLUG and more)
216
- 8. WHOGPLUG / Greensun Smart Plug
217
- 9. WYLDR Smart Plug (WYLDR16A1081) (Supports energy monitoring but not energy history)
215
+ 7. BSDOG / Greensun Smart Outlet Series (BSDOG01, BSDOG02, WYSMTOD16A, WM-PLUG and more). A BSDOG02 on config module `BS_WFBO_OTL_BSDOG02_UN` uses the WHOG class.
216
+ 8. WHOGPLUG / Greensun Smart Plug (WHOGPLUG, WYZYOGMINIPLUG, WYZYOG-HWPLUG16A). A WHOGPLUG on config module `WH_WFBO_OTL_S_WHOGPLUG_UN` uses the BSDOG class.
217
+ 9. WYLDR Smart Plug (WYLDR16A1080, WYLDR16A1081)
218
+ 10. Sagewe 15A Smart Plug with Energy Monitoring (F3s202-USVC)
218
219
 
219
220
  <!--SUPPORTED OUTLETS END-->
220
221
 
@@ -239,6 +240,10 @@ pip install pyvesync
239
240
  7. Vital 100S / 200S
240
241
  8. Everest Air
241
242
  9. Sprout Air Purifier
243
+ 10. Vital Pet Pro (LAP-P501S)
244
+ 11. Vital Pet (LAP-P201S-WUS)
245
+ 12. Core 300S MaxAQ / Eleva 300X (LAP-C341S)
246
+ 13. Eleva 500X (LAP-C511S)
242
247
 
243
248
  ### Etekcity / Valceno Bulbs
244
249
 
@@ -271,6 +276,7 @@ pip install pyvesync
271
276
  4. Cosori Dual Blaze 6.8 Quart Air Fryer (CAF-P583S)
272
277
  5. Cosori Dual Air Fryer (CAF-TF101S)
273
278
  6. Cosori Turbo Tower Pro Smart Air Fryer (CAF-DC111S-AEU)
279
+ 7. Cosori Smart 5.8 Quart Air Fryer (CS358-AF)
274
280
 
275
281
  ### Thermostats
276
282
 
@@ -475,7 +481,7 @@ if __name__ == "__main__":
475
481
  Contributions — from humans and AI coding assistants alike — must follow three rules. These keep the library correct and maintainable. See the [contributing guide](https://webdjoe.github.io/pyvesync/latest/development/contributing) for full detail.
476
482
 
477
483
  1. **Follow the intended architecture.** New devices are added through the three-tier hierarchy (base class → concrete device + API mixin → device map), with state in the device's `DeviceState` subclass, models in `models/`, and constants in `pyvesync.const`. API request/response shapes must come from a real packet capture — never invented.
478
- 2. **Verify on real hardware before merge.** New device support and any change to device behavior must be tested on the physical device, and the pull request must state the model and firmware version tested. Testing only through Home Assistant does not count.
484
+ 2. **Verify on real hardware before merge.** New device support and any change to device behavior must be tested on the physical device, and the pull request must state the model tested. Testing only through Home Assistant does not count.
479
485
  3. **One change per pull request.** Each PR must be a single feature, fix, or edit. Large or mixed PRs that bundle unrelated changes will be asked to be broken up before review.
480
486
 
481
487
  > **Using an AI assistant?** Agent instructions live in [`AGENTS.md`](AGENTS.md), which Codex and most tools read directly; [`CLAUDE.md`](CLAUDE.md) imports it for Claude Code. Point your assistant at it and the [contributing guide](https://webdjoe.github.io/pyvesync/latest/development/contributing). You are responsible for the result: it must follow the architecture, must not fabricate API fields, must not be submitted without real-device testing, and must be a single focused change.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyvesync"
7
- version = "3.5.1"
7
+ version = "3.6.0"
8
8
  description = "pyvesync is a library to manage Etekcity Devices, Cosori Air Fryers, and Levoit Air Purifiers run on the VeSync app."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -36,7 +36,7 @@ dev = [
36
36
  "pyyaml",
37
37
  "pylint",
38
38
  "mypy",
39
- "ruff==0.15.21",
39
+ "ruff==0.17.6",
40
40
  "pre-commit",
41
41
  "tox",
42
42
  "requests",
@@ -45,7 +45,7 @@ dev = [
45
45
  docs = [
46
46
  "mkdocstrings-python",
47
47
  "mkdocs",
48
- "ruff==0.15.21",
48
+ "ruff==0.17.6",
49
49
  "Pygments",
50
50
  "mkdocs-material",
51
51
  "mkdocstrings",
@@ -25,6 +25,7 @@ from pyvesync.utils.errors import (
25
25
  VeSyncLoginError,
26
26
  VeSyncServerError,
27
27
  )
28
+ from pyvesync.utils.logs import LibraryLogger
28
29
 
29
30
  if TYPE_CHECKING:
30
31
  from pyvesync.vesync import VeSync
@@ -153,6 +154,10 @@ class VeSyncAuth:
153
154
  async def reauthenticate(self) -> bool:
154
155
  """Re-authenticate using stored username and password.
155
156
 
157
+ The current credentials stay in place while the login runs, and also if
158
+ it fails, so requests can still be built and the login tried again. They
159
+ are replaced when the login succeeds.
160
+
156
161
  Returns:
157
162
  True if re-authentication successful, False otherwise
158
163
 
@@ -162,9 +167,11 @@ class VeSyncAuth:
162
167
  VeSyncServerError: If server returns an error
163
168
  """
164
169
  had_saved_credentials = self.credentials_saved
165
- self.clear_credentials()
166
170
  success = await self.login()
167
- logger.debug('Re-authentication successful for user: %s', self._username)
171
+ logger.debug(
172
+ 'Re-authentication successful for user: %s',
173
+ LibraryLogger.redact_value(self._username),
174
+ )
168
175
  if had_saved_credentials:
169
176
  await self.save_credentials_to_file(self._token_file_path)
170
177
  return success
@@ -314,7 +321,10 @@ class VeSyncAuth:
314
321
 
315
322
  # Step 2: Exchange authorization code for token
316
323
  await self._exchange_authorization_code(auth_code)
317
- logger.debug('Login successful for user: %s', self._username)
324
+ logger.debug(
325
+ 'Login successful for user: %s',
326
+ LibraryLogger.redact_value(self._username),
327
+ )
318
328
  except (VeSyncLoginError, VeSyncAPIResponseError, VeSyncServerError):
319
329
  raise
320
330
  except Exception as exc:
@@ -85,7 +85,8 @@ class FryerState(DeviceState):
85
85
  the next update.
86
86
  recipe (str | None): The recipe name the device reports. A local
87
87
  command sets it only on dual-chamber fryers.
88
- ready_start (bool): Not used by the library; always False.
88
+ ready_start (bool): Not used by the library; always False. It does
89
+ not reflect the ``ready_start`` argument of the start methods.
89
90
  sync_chambers (bool): True only when the device reports the app's Sync
90
91
  mode (``syncType`` 2). Dual-chamber fryers only, always False
91
92
  otherwise: set by ``update()``, by a successful ``set_mode()`` /
@@ -197,7 +198,8 @@ class FryerState(DeviceState):
197
198
  def can_resume(self) -> bool:
198
199
  """Return True if the status is paused (cook or preheat stop).
199
200
 
200
- Only the CS137/CS158 implements ``resume()``.
201
+ The CS137/CS158 also reports these statuses while a ``ready_start``
202
+ program waits for its start button. ``READY`` is not paused.
201
203
  """
202
204
  return self.cook_status in RESUMABLE_STATUSES
203
205
 
@@ -286,6 +288,10 @@ class FryerState(DeviceState):
286
288
  preheat = self.preheat_time_remaining
287
289
  cook = self.cook_last_time
288
290
  return None if preheat is None or cook is None else preheat + cook
291
+ if self.cook_status == AirFryerCookStatus.READY and self.preheat_last_time:
292
+ # A waiting program with preheat runs the preheat first.
293
+ cook = self.cook_last_time
294
+ return None if cook is None else self.preheat_last_time + cook
289
295
  return self.cook_time_remaining if self.is_in_cook_mode else None
290
296
 
291
297
  def _clear_preheat(self) -> None:
@@ -1230,6 +1236,11 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1230
1236
  otherwise the cook resume. The remaining time carries over, so a
1231
1237
  resume while running does not restart the countdown.
1232
1238
 
1239
+ While a ``ready_start`` program waits for the start button, the
1240
+ CS137/CS158 sends the same command and the CAF-DC111S-AEU sends
1241
+ ``resumeWork`` and leaves the ``READY`` chamber unchanged. No capture
1242
+ shows whether either starts the waiting cook.
1243
+
1233
1244
  Arguments:
1234
1245
  chamber (AirFryerChamber | int): The chamber to resume for. Default
1235
1246
  is ``CHAMBER_1``.
@@ -1241,7 +1252,7 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1241
1252
  logger.info('resume not supported by this fryer.')
1242
1253
  return False
1243
1254
 
1244
- async def set_mode(
1255
+ async def set_mode( # noqa: PLR0913
1245
1256
  self,
1246
1257
  cook_time: int,
1247
1258
  cook_temp: int,
@@ -1250,6 +1261,7 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1250
1261
  preheat_time: int | None = None,
1251
1262
  cook_mode: str | None = None,
1252
1263
  chamber: AirFryerChamber | int = AirFryerChamber.CHAMBER_1,
1264
+ ready_start: bool = True,
1253
1265
  ) -> bool:
1254
1266
  """Start a cook with the given time and temperature.
1255
1267
 
@@ -1285,11 +1297,17 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1285
1297
  chamber (AirFryerChamber | int): The chamber to cook in. Default is
1286
1298
  ``CHAMBER_1``. A chamber not in ``supported_chambers`` returns
1287
1299
  False without a request.
1300
+ ready_start (bool): True (the default) sends the cook without
1301
+ starting it: the fryer shows it and waits for its start
1302
+ button (status ``READY``; the CS137/CS158 reports
1303
+ ``COOK_STOP``, or ``PREHEAT_STOP`` with a preheat). False
1304
+ starts the cook at once.
1288
1305
 
1289
1306
  Returns:
1290
1307
  bool: True if the command was successful, False otherwise.
1291
1308
  """
1292
1309
  del cook_time, cook_temp, chamber, preheat_time, cook_mode, temp_unit
1310
+ del ready_start
1293
1311
  logger.warning('set_mode method not implemented for base fryer class.')
1294
1312
  return False
1295
1313
 
@@ -1299,6 +1317,7 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1299
1317
  chamber_2: AirFryerPresetRecipe | None = None,
1300
1318
  *,
1301
1319
  sync_type: AirFryerSyncType = AirFryerSyncType.SYNC,
1320
+ ready_start: bool = True,
1302
1321
  ) -> bool:
1303
1322
  """Start a recipe in each chamber, or one recipe in both.
1304
1323
 
@@ -1317,12 +1336,15 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1317
1336
  sync_type (AirFryerSyncType): ``SYNC`` for separate recipes that
1318
1337
  finish together, ``OFF`` for separate recipes that each run on
1319
1338
  their own time, or ``MATCH`` for identical settings.
1339
+ ready_start (bool): True (the default) sends the cook without
1340
+ starting it: the fryer shows it and waits for its start
1341
+ button (status ``READY``). False starts the cook at once.
1320
1342
 
1321
1343
  Returns:
1322
1344
  bool: True if the command was successful. An unsupported fryer or
1323
1345
  an invalid combination returns False without a request.
1324
1346
  """
1325
- del chamber_1, chamber_2, sync_type
1347
+ del chamber_1, chamber_2, sync_type, ready_start
1326
1348
  logger.debug('Separate chamber modes are not configured for %s', self.device_name)
1327
1349
  return False
1328
1350
 
@@ -1331,6 +1353,7 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1331
1353
  recipe: AirFryerPresetRecipe,
1332
1354
  *,
1333
1355
  chamber: AirFryerChamber | int = AirFryerChamber.CHAMBER_1,
1356
+ ready_start: bool = True,
1334
1357
  ) -> bool:
1335
1358
  """Start a cook from a recipe.
1336
1359
 
@@ -1348,6 +1371,11 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1348
1371
  chamber (AirFryerChamber | int): The chamber to cook in. Default is
1349
1372
  ``CHAMBER_1``. A chamber not in ``supported_chambers`` returns
1350
1373
  False without a request.
1374
+ ready_start (bool): True (the default) sends the cook without
1375
+ starting it: the fryer shows it and waits for its start
1376
+ button (status ``READY``; the CS137/CS158 reports
1377
+ ``COOK_STOP``, or ``PREHEAT_STOP`` with a preheat). False
1378
+ starts the cook at once.
1351
1379
 
1352
1380
  Returns:
1353
1381
  bool: True if the command was successful, False otherwise.
@@ -1357,7 +1385,7 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1357
1385
  ``dataclasses.replace``. See
1358
1386
  [AirFryerPresetRecipe][pyvesync.const.AirFryerPresetRecipe].
1359
1387
  """
1360
- del recipe, chamber
1388
+ del recipe, chamber, ready_start
1361
1389
  logger.warning(
1362
1390
  'set_mode_from_recipe method not implemented for base fryer class.'
1363
1391
  )
@@ -1368,9 +1396,10 @@ class VeSyncFryer(VeSyncBaseDevice[FryerState]):
1368
1396
  ) -> bool:
1369
1397
  """Start cooking after the preheat has finished.
1370
1398
 
1371
- Only the CS137/CS158 (``VeSyncAirFryer158``) supports this; other
1372
- fryers return False without a request. The last known
1373
- ``cook_status`` must be ``PREHEAT_END``, so call ``update()`` after
1399
+ The CS137/CS158 (``VeSyncAirFryer158``) and the CS358
1400
+ (``VeSyncAirFryer358``) support this; other fryers return False
1401
+ without a request. The last known ``cook_status`` must be
1402
+ ``PREHEAT_END``, so call ``update()`` after
1374
1403
  the preheat finishes; otherwise it returns False without a request.
1375
1404
 
1376
1405
  Args: