Somfy MyLink Synergy API
Python API to utilise the Somfy Synergy API utilising JsonRPC.
Requirements
- Python >= 3.5.2
Usage
import asyncio
from somfy_mylink_synergy import SomfyMyLinkSynergy
loop = asyncio.get_event_loop()
mylink = SomfyMyLinkSynergy('YourSystemID', '10.1.1.50')
mylink_covers = loop.run_until_complete(mylink.status_info())
for device in mylink_covers['result']:
print(device['targetID'], device['name'])
# ('CC0000A.1', 'Bedroom Cover')
# ('CC0000A.2', 'Kitchen Cover')
mylink_scenes = loop.run_until_complete(mylink.scene_list())
for scene in mylink_scenes['result']:
print(scene['sceneID'], scene['name'])
# ('123456789', 'Morning')
# ('987654321', 'Evening')
mylink_ping = loop.run_until_complete(mylink.status_ping())
for device in mylink_ping['result']:
print(device)
# ('CC0000A.1')
# ('CC0000A.2')
open_cover = loop.run_until_complete(mylink.move_up('CC0000A.1'))
close_cover = loop.run_until_complete(mylink.move_down('CC0000A.1'))
stop_cover = loop.run_until_complete(mylink.move_stop('CC0000A.1'))
activate_scene = loop.run_until_complete(mylink.scene_run('123456789'))
TODO:
- None
License
MIT
Author Information
Created in 2018 by Ben Dews
Metadata
Release files for somfy-mylink-synergy 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| somfy_mylink_synergy-1.0.6.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| somfy_mylink_synergy-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / somfy_mylink_synergy-1.0.6.tar.gz
| Download URL | somfy_mylink_synergy-1.0.6.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
622eb8c40f601c5cfffb6310641f8a75aae42deca6cc1e1c32ad3954f71ef3b3
|
|
BLAKE2b-256 checksum How to use checksums |
5e116d547c1e97f5117d8f6f9376d72c465a322932a5bc4a0727e69fea163511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2
|
Release files / somfy_mylink_synergy-1.0.6-py3-none-any.whl
| Download URL | somfy_mylink_synergy-1.0.6-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60312fb1efa89d80d25ca85d392697708411a588946e82c6e325af8322230f7b
|
|
BLAKE2b-256 checksum How to use checksums |
420159a56e7e15cd00918a856eb58bc5f9ce106df3e9422d1354acb0fb65f9aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2
|
Security for somfy-mylink-synergy 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.