Skip to content

⚙️ Python library to get maps from Tuya robot vacuums

License

Notifications You must be signed in to change notification settings

jaidenlabelle/tuya-vacuum

Repository files navigation

tuya-vacuum

tuya-vacuum is a python library to view maps from Tuya robot vacuums.

Installation

Use the package manager pip to install tuya-vacuum.

pip install tuya-vacuum

Usage

from tuya_vacuum import TuyaVacuum

# Create a new TuyaVacuum instance
vacuum = TuyaVacuum(
    origin="https://openapi.tuyaus.com",
    client_id="<Client ID>",
    client_secret="<Client Secret>",
    device_id="<Device ID>"
)

# Parse the map data
vacuum_map = vacuum.fetch_realtime_map()

# Save the map as an image
image = vacuum_map.to_image()
image.save("output.png")

Compatability List

This is a list of all currently tested devices. Create a new issue to add your device.

Device Support
Lefant M1 Supported

Special Thanks

About

⚙️ Python library to get maps from Tuya robot vacuums

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages