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(session, "192.168.1.165")

        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

This version

0.3.0

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.3.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

aioshelly-0.3.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioshelly-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 cdfd496a8177aed0314b5eafebe958801ecc06441f2c998c69efb52bf9231bd9
MD5 4944bace5a12a0dd950d9e947c788ffd
BLAKE2b-256 a1a49c93c65d3c027342213bb6f5057fbc13699611cb974bd21b063d4c31cb61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioshelly-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68ab728f097943610b93767a8af5098de66cd5474ef298737a3a4ff67b899bc0
MD5 de3fc4e3641facda93325603ac471abd
BLAKE2b-256 7669104c7a43d4909924de701aed5f83d8449497a7efc7983b9bce1e162d51be

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