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():
    options = aioshelly.ConnectionOptions("192.168.1.165", "username", "password")

    async with aiohttp.ClientSession() as session:
        device = await aioshelly.Device.create(session, options)

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

        await device.shutdown()


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

Breaking changes for 0.3.3+

Due to the code quality checks, we changed a few methods/properties:

  • ip() is now ip_address()
  • d is now coap_d
  • s is now coap_s

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

Uploaded Source

Built Distribution

aioshelly-0.3.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioshelly-0.3.3.tar.gz
  • Upload date:
  • Size: 9.2 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.49.0 CPython/3.8.5

File hashes

Hashes for aioshelly-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b369386d04a501a5ba2e17b2ec126d181bd4da00ea23e6ca76508cbd1627f47d
MD5 f8cca0ab39cb58ca43bcc101a0dfa48f
BLAKE2b-256 4ec6170c956d77842588a2af609ec19000d4210e93ea619f6924b7814522f6f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioshelly-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.49.0 CPython/3.8.5

File hashes

Hashes for aioshelly-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe236173d37483f589445a79220572dc4de9b759d642d8dcf67964ad50e5e3e3
MD5 10aa6523addb49b83447b57146e94184
BLAKE2b-256 6aae9e2cc0fa516abfa667fc1ce8ed24b6db309f97f20c0c44fbf1e2d212b081

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