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 = HunterDouglasPlatinumHub('192.168.1.100')
        shade = hub.get_shade(name='Master Bedroom 1')
        if(shade):
            shade.set_level('up')
            shade.set_level('50')
            shade.set_level('down')
        scene = hub.get_scene(name='Good Morning')
        if(scene):
            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-1.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

pyhunterdouglasplatinum-1.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhunterdouglasplatinum-1.0.2.tar.gz
  • Upload date:
  • Size: 5.3 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-1.0.2.tar.gz
Algorithm Hash digest
SHA256 27f777cba24e0617fc074da639d92dbd5db02020ba5e8b9e9ea5093116dffc06
MD5 c3e0de707ecfad025343f254036a5b86
BLAKE2b-256 00d44af8126e7554891ac88f459bf75fe688830fa9895b5a772e497ae00829e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhunterdouglasplatinum-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e48e14a54f1c35c9646db972a12f6edc454a940ab678fc447dd2774a50425ec6
MD5 9880fbbd66e4b6791b51a32b89e37972
BLAKE2b-256 506bf9aade1ca248cbfa49f70d52ac7cfa32f1bb6f7df5314f9d23389acf3ad3

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