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

This version

0.1

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

Uploaded Source

Built Distribution

aioshelly-0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioshelly-0.1.tar.gz
Algorithm Hash digest
SHA256 cc01ce0c6ff4b6d218485e812968d62765c473c5b6549d6820acfbc0f75c131d
MD5 587ec070ca07235ae5901f7724f6b1bf
BLAKE2b-256 027a74813096994c0cf00234c99a15936093e8d07d133aad1ce68c3c8bd9f9c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioshelly-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.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/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for aioshelly-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f8e99a433c73e0de110317cf4519c8b4f47599e92593ae7473fa511fea0cf40
MD5 03a21976969745980fb5417c56e06d84
BLAKE2b-256 90cb939f498c7f37f4104b1d99a37fa43020fa2f7b9fbbc11b216d23c0edf9ca

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