Python API for Shark IQ robots
Project description
sharkiqpy
Python API for Shark IQ robot vacuums
Examples
Simple Operation
from sharkiqpy import get_ayla_api, OperatingModes
USERNAME = 'me@email.com'
PASSWORD = '$7r0nkP@s$w0rD'
ayla_api = get_ayla_api(USERNAME, PASSWORD)
ayla_api.sign_in()
shark_vacs = ayla_api.get_devices()
shark = shark_vacs[0]
shark.update()
shark.set_operating_mode(OperatingModes.START)
shark.return_to_base()
Async operation
import asyncio
from sharkiqpy import get_ayla_api, OperatingModes, SharkIqVacuum
USERNAME = 'me@email.com'
PASSWORD = '$7r0nkP@s$w0rD'
async def main(ayla_api) -> SharkIqVacuum:
await ayla_api.async_sign_in()
shark_vacs = await ayla_api.async_get_devices()
shark = shark_vacs[0]
await shark.async_update()
await shark.async_find_device()
await shark.async_set_operating_mode(OperatingModes.START)
return shark
ayla_api = get_ayla_api(USERNAME, PASSWORD)
shark = asyncio.run(main(ayla_api))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sharkiqpy-0.1.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
sharkiqpy-0.1.1-py3-none-any.whl
(13.4 kB
view hashes)
Close
Hashes for sharkiqpy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5634fda64c2bf0b7a8f8287c0576ef368fbb968a133c9e4b1be7313da0bbca68 |
|
MD5 | 383fa2e8fd0faabadad06670f48a74ad |
|
BLAKE2b-256 | 2efbc32d5a5ec894160cfa790650d7338b38207da03b80dac04bddd348fe51d7 |