Skip to main content

Python module to talk to Philips Hue.

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()

        print(await device.blocks[0].toggle())

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

Uploaded Source

Built Distribution

aioshelly-0.2.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioshelly-0.2.1.tar.gz
  • Upload date:
  • Size: 8.0 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.1.tar.gz
Algorithm Hash digest
SHA256 6a7ec54e7d29b13217e409ce3679583c00b21d00aea38748d0a2d7fe11881aef
MD5 7a1acc7c4123c463a425b550db6bb157
BLAKE2b-256 a8e06393ee4ed751d7ffa93703194d38ee3675d64fa3abcbc82fd3a7497f0832

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioshelly-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db98dec62769b07f7ee84a8361ba86b9247383afddd430e0dd02966296eb0bc4
MD5 67b595d65dd80613a8410b31de3d9830
BLAKE2b-256 bb5c7a3042d3e61a2712a768e7a19f54353c87c893e7dfe528889f9971a6f096

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