Skip to main content

Asynchronous library to control Shelly devices.

Project description

Aioshelly

Asynchronous library to control Shelly

This library is under development.

Requires Python 3.5 and uses asyncio, aiohttp and aiocoap.

import asyncio
from pprint import pprint
import aiohttp
import aioshelly

async def main():
    async with aiohttp.ClientSession() as session:
        device = await aioshelly.Device.create("192.168.1.165", session)

        # pprint(device.d)
        # pprint(device.s)

        for block in device.blocks:
            print(block)
            pprint(block.current_values())
            print()

        await device.shutdown()


if __name__ == "__main__":
    asyncio.run(main())

Contribution guidelines

Object hierarchy and property/method names should match the Shelly 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

aioshelly-0.2.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

aioshelly-0.2.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file aioshelly-0.2.2.tar.gz.

File metadata

  • Download URL: aioshelly-0.2.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for aioshelly-0.2.2.tar.gz
Algorithm Hash digest
SHA256 efefe532486d868fb6fbc46ca7b9a6c0eb694df51a9918e8d3a784b7f08b5076
MD5 2d61e939c67f37d5df857a186f183338
BLAKE2b-256 81a32bc3e64a77a8b35ab5084f03656d8499633f88c1587671602f4a45856544

See more details on using hashes here.

File details

Details for the file aioshelly-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: aioshelly-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for aioshelly-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e74abd646561bcf672dcad8647ecdf30c5603aa7271a107853d7230bcf0be709
MD5 42269ef04de4853cc3b797dcd8881f36
BLAKE2b-256 17c57ad20531a8dc4fe2afbbae5f091126980b307d1b498d95361439ebd55760

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page