aioshelly 0.2.0
pip install aioshelly==0.2.0
Newer version available (13.8.0)
Released:
Python module to talk to Philips Hue.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache License 2.0
- Author: Paulus Schoutsen
Classifiers
- Intended Audience
- Operating System
- Programming Language
- Topic
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache License 2.0
- Author: Paulus Schoutsen
Classifiers
- Intended Audience
- Operating System
- Programming Language
- Topic
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
Built Distribution
File details
Details for the file aioshelly-0.2.0.tar.gz
.
File metadata
- Download URL: aioshelly-0.2.0.tar.gz
- Upload date:
- Size: 7.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cdf2b5a579455de74247cffd556a5f5b66bd68f03863b5fdd7582c7c3cc45acb
|
|
MD5 |
9f258c4c5ef3edafd7e92fd65469e23c
|
|
BLAKE2b-256 |
e9dabf4ee7377631553390ec0863acf8d01f995f4d1e1fde0d19a72637126804
|
File details
Details for the file aioshelly-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: aioshelly-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
aa98dcccebcf429650423affb9ac738278c0df23e8963d73bafa2f075644ee02
|
|
MD5 |
63aba74d4996515f4128d805b41fda4e
|
|
BLAKE2b-256 |
6dc29927ae729c32c05296416de61fb8f645b9452258761d56419025719a3d64
|