Skip to content

elisey/hue-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Hue control utility

Utility for controling Hue smart lams. It is using phue library

Initial connection to the Bridge. You should do it only once

hue connect 192.168.x.x

Credentials will be stored in ~/.python_hue file

Basic commands

Turn lamp on and off

hue on
hue off

You can pass id of your lamp. By default id is 1.

hue -i 2 on
hue -i 2 off

Set brightness to maximum

hue br 100

Set brightness 10%

hue br 10

Set custom color

Set color with hue and saturation parameters:

hue hue 3000
hue saturation 100

Set color with xy parameters

hue xy 0.1 0.2

Set color with hsv parameters

hue hsv 3000 100

Special commands

Run scene by name

hue scene <scene_name>

Blink with lamp one time

hue alert single

Blinkin with lamp for 5 seconds

hue alert start
sleep 5
hue alert stop

Built in smooth color changing

hue effect start
sleep 5
hue effect stop

TODO

  • Addressing lamp by name
  • Custom scripts support for contolling lamps