Registry / communication / pymammotion

pymammotion

JSON →
library0.7.87pypypiunverified

A Python library for controlling Mammotion robotic lawn mowers (Luba, Yuka) over local network. Version 0.7.87 requires Python >=3.14. Provides async device discovery, message parsing, and command sending. Development is active, but the API is still evolving.

pip install pymammotion
INSTALL
IMPORT
SIG · PYMAMMOTION
P
pymammotion
communicationpythonv0.7.87
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MammotionDiscovery
✓ from pymammotion import MammotionDiscovery
✗ from pymammotion.discovery import MammotionDiscovery

Discover Mammotion devices on the local network.

import asyncio from pymammotion.discovery import MammotionDiscovery async def main(): discovery = MammotionDiscovery() devices = await discovery.discover() for device in devices: print(f"Found: {device.name}") asyncio.run(main())
Debug
Known issues
breakingBefore version 0.7.0, the main class was `Mammotion` directly from `pymammotion`. It has been replaced by separate `MammotionDiscovery`, `MammotionDevice`, etc. Old code importing `from pymammotion import Mammotion` will break.
fix
Update imports to use the new submodules: from pymammotion.discovery import MammotionDiscovery, etc.
affects: <0.7.0
deprecatedThe `mower` module is deprecated in favor of `device`. Using `from pymammotion.mower import ...` will still work but prints a deprecation warning.
fix
Replace `from pymammotion.mower import ...` with `from pymammotion.device import ...`.
affects: >=0.6.0 <0.8.0
gotchaDiscovery uses UDP broadcast and may not work across subnets or VPNs. Ensure your device is on the same network segment.
fix
Run discovery on the same LAN. Use static IP configuration if cross-subnet is needed.
affects: all
Upgrade
Version history
0.7.87latest on PyPI · released May 1, 2026
Audit
Dependencies
constructrequiredBinary protocol parsing
aiohttprequiredAsync HTTP communication
cryptographyrequiredEncryption/decryption of device commands
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
pymammotion — pip install pymammotion · libregistry