tuya-vacuum is a python library to view maps from Tuya robot vacuums.
Use the package manager pip to install tuya-vacuum.
pip install tuya-vacuum
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")
This is a list of all currently tested devices. Create a new issue to add your device.
Device | Support |
---|---|
Lefant M1 | Supported |