Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ ambihue Public
forked from Bluicie/AmbiHue

Python script to intgrate Philips Hue lights with Philips Ambilight TVs for a room wide Ambilight effect.

License

Notifications You must be signed in to change notification settings

poinck/ambihue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme: ambihue

Python script to intgrate Philips Hue lights with Philips Ambilight TVs for a room wide Ambilight effect.

Installation

Install simplejson:

emerge -av simplejson          # for Gentoo (python2_7-target must be set)
pacman -S python2-simplejson   # for Arch or
yum install python-simplejson  # for Fedora (python2 only)

Make sure you have pip installed and use it to get the latest version of phue:

pip2 install phue              # all distributions

systemd integration

To never manually restart the script you can integrate it with systemd. systemd detects when the script exits because it lost connection to the TV or bridge and restarts it after a configured time period.

cp systemd/user/ambihue.service ~/.config/systemd/user/
    # adjust path and restart-time in the service-file
systemctl --user enable ambihue
systemctl --user start ambihue

Note, that you need to press the bridge-button before the first start of ambihue, regardless wether you want to integrate it with systemd.

Configuration

Configuration can be done in the first lines of the ambihue-script itself:

  • Configure IP adress of Ambilight TV
  • Configure IP adress of HUE bridge
  • assign HUE light numbers to zones of the Ambilight TV

Running for the first time (or without systemd)

  • Press the connect button of the Hue bridge (only the first time you run this script) run
python2 ambihue.py

About

Python script to intgrate Philips Hue lights with Philips Ambilight TVs for a room wide Ambilight effect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%