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

Uploaded Source

Built Distribution

aioshelly-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioshelly-0.1.2.tar.gz
  • Upload date:
  • Size: 7.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.1.2.tar.gz
Algorithm Hash digest
SHA256 26d0daeb1bcfdf4d741fb9fa51b5be81ba318cd6ad59f174e07b330e9588c5bc
MD5 ffed5a12ab5e62d71ecd91a10a3b8ad8
BLAKE2b-256 cd4a9c2a6f4a05859acd497c381b16bd78f5205fdee2443c96129bf7f462db15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioshelly-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5965dca47d9d55aa62d2465be97c233fb5cc74956fa47a3225cbdc25736c3ad6
MD5 33a52980d58f51ab3877328e1818d56a
BLAKE2b-256 46bb42b66d0ebc88eeb7fd61bd09a51dc6249978fff5775ae828c1f02f3da2de

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