Lavviebotaio
Asynchronous Python library for the PurrSong API utilized by LavvieBot S litter boxes, LavvieScanners, and LavvieTags.
This package provides an API client for the PurrSong API allowing you to fetch the status of Lavviebot S litter boxes, LavvieScanners, LavvieTags, and cats associated with a PurrSong account.
The API is not published by PurrSong, so it may break without notice.
Installation
pip3 install lavviebotaio
This package depdends on aiohttp, and requires Python 3.9 or greater.
Usage
import asyncio
from lavviebot import LavviebotClient
from aiohttp import ClientSession
async def main():
async with ClientSession() as session:
client = LavviebotClient("email", "password", session)
devices = await client.async_discover_devices()
cats = await client.async_discover_cats(123)
litter_box_status = await self.async_get_litter_box_status(device_id)
litter_box_log = await client.async_get_litter_box_cat_log(device_id)
unknown_cat_status = await client.async_get_unknown_status(cat_id)
cat_status = await client.async_get_cat_status(cat_id)
lavvie_scanner = await client.async_get_iot_device_status(device_id, "lavvie_scanner")
lavvie_tag = await client.async_get_iot_device_status(device_id, "lavvie_tag")
get_all = await client.async_get_data()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())