Skip to main content

Python library to talk to Hunter Douglas Platinum Hubs

Project description

pyhunterdouglasplatinum

Hunter Douglas Platinum Control

Python library to control shades via the Hunter Douglas Platinum hub.

Installation

You can install the Real Python Feed Reader from PyPI:

pip install pyhunterdouglasplatinum

The module is supported on Python 2.7, as well as Python 3.4 and above.

How to use

The module can also be used at the command line using

python -m hunterdouglasplatinum <params>

The parameters that the command line tool takes are in the available via --help

❯ python -m hunterdouglasplatinum --help
usage: hunterdouglasplatinum [-h] [-d SHADE] [-n SCENE] [-l LEVEL] ip

positional arguments:
  ip                    ip address of the hub

optional arguments:
  -h, --help            show this help message and exit
  -d SHADE, --shade SHADE
                        name of the shade
  -n SCENE, --scene SCENE
                        name of the scene
  -l LEVEL, --level LEVEL
                        level of the shade <up/down/percentage>

Library commands

Example usage:

        hub = await HunterDouglasPlatinumHub.create('192.168.1.100')
        shade = hub.get_shade(name='Master Bedroom 1')
        if(shade):
            await shade.set_level('up')
            await shade.set_level('50')
            await shade.set_level('down')
        scene = hub.get_scene(name='Good Morning')
        if(scene):
            await scene.run()

The library documentation (somewhat) is here - pdoc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhunterdouglasplatinum-2.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhunterdouglasplatinum-2.0.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pyhunterdouglasplatinum-2.0.0.tar.gz.

File metadata

  • Download URL: pyhunterdouglasplatinum-2.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyhunterdouglasplatinum-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8cc046a34e15caba37649115cdc5d9fe93556b2b5b46a68adf7aa35e76cee3b2
MD5 f5a5cf27c4ba07cd8ea798ff25705dd4
BLAKE2b-256 f4f2ef71a8e50a26c8d6548844581a24342ad55b6fca5cfb899097536842dbb7

See more details on using hashes here.

File details

Details for the file pyhunterdouglasplatinum-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyhunterdouglasplatinum-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pyhunterdouglasplatinum-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b1b821cfad5b7a029806d0f2020a7378892030f87e7d8588bff295e2c4b66f
MD5 a84ea6fc4d719a4789e52f20d810c68b
BLAKE2b-256 46d5ca9b5de21e06f0a69b1386e5b217eb938b2607ece10b64010a10225fd612

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page