DevDeck - Philips Hue integration
Philips Hue light controls for DevDeck.
Installing
Simply install DevDeck - Hue into the same python environment that you have installed DevDeck.
pip install devdeck-hue
You can then update your DevDeck configuration to use decks and controls from this package.
Controls
-
toggle.ToggleCan be used to toggle on/off a Philips Hue lamp.
-
brightness.IncreaseCan be use to increase light brightness by a static amount.
-
brightness.DecreaseCan be use to decrease light brightness by a static amount.
One-time setup
The phue module which is used under the hood requires a one-time pairing with
the Hue bridge, once. Easiest way to do this is:
python3 -m phue --host 192.168.1.42
Where --host is the IP of the Hue bridge.
Configuration
Example configuration:
decks:
- serial_number: ABC123
name: devdeck.decks.single_page_deck_controller.SinglePageDeckController
settings:
controls:
- name: devdeck_hue.toggle.Toggle
key: 0
settings:
host: 192.168.1.23
light_id: 4
- name: devdeck_hue.brightness.Increase
key: 1
settings:
host: 192.168.1.23
light_id: 4
step: 20
- name: devdeck_hue.brightness.Decrease
key: 1
settings:
host: 192.168.1.23
light_id: 4
step: 20
light_id is the light ID from the hue bridge. A simply way to list connected
lights by id is to run the following Python snippet:
python3 -c 'import phue; b=phue.Bridge(); b.connect(); print(b.get_light_objects(mode="id"))'
Metadata
Release files for devdeck-hue 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| devdeck_hue-0.0.1.tar.gz | 48.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devdeck_hue-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.5 kB
Release files / devdeck_hue-0.0.1.tar.gz
| Download URL | devdeck_hue-0.0.1.tar.gz |
|---|---|
| Size | 48.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70b97a82d9dba385a72085ac7631c89a8153e7a85270eed928f6f0ede178ce72
|
|
BLAKE2b-256 checksum How to use checksums |
43525fe1fedccc3233b8b2139f49eaf00576c2a5c79b8f2674a867eeab05c6b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / devdeck_hue-0.0.1-py3-none-any.whl
| Download URL | devdeck_hue-0.0.1-py3-none-any.whl |
|---|---|
| Size | 49.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
801aba4141b952e270e49ad214b60cac22d071c2b5e66cd497d08ad059786dd2
|
|
BLAKE2b-256 checksum How to use checksums |
bd7ff0c7d2f5c0bf2bfb1b73ccf658db21af1fff4c223a5204a7ca07c32da6a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|