A simple Philips Hue app.
Deluxe is provided as a self-contained binary. See the releases page for downloads.
To install Deluxe, just place it on your path.
wget "https://github.com/njlr/deluxe/releases/download/v0.1.0/deluxe-macos" -O /usr/local/bin/deluxe
chmod +x /usr/local/bin/deluxe
deluxe
sudo wget "https://github.com/njlr/deluxe/releases/download/v0.1.0/deluxe-linux" -O /usr/bin/deluxe
sudo chmod +x /usr/bin/deluxe
deluxe
You may also want to create a shorter alias:
alias dlx=deluxe
First, you must connect to the Philips Hue Bridge:
deluxe setup
To view your lights:
deluxe status
# Or just
deluxe
To switch lights on and off:
# Switches lights 1, 2 and 3 on
deluxe on 1 2 3
# Switches light 4 off
deluxe off 4
To set the color of your lights (and switch them on):
# Sets lights 1 and 2 to red
deluxe set 1 2 red
# Sets light 3 to #f5ee6b
deluxe set 3 #f5ee6b
# Sets light 4 to rgb(255, 160, 40)
deluxe set 4 "rgb(255, 160, 40)"
You can also use all
in place of a light number:
# Set all lights to purple
deluxe set all purple
Or a light name:
deluxe set bedside-lamp green
Or even a room name:
deluxe set kitchen cyan
Colors can also be fetched from Google images; just provide a search string:
deluxe set bedroom "forest green"
yarn install
yarn build
node ./dist/index.js
yarn babel-node ./src/index.js