manifest / integrations / lifx
Lifx For WordPress
A WordPress plugin to control your LIFX smart lights
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/bronsonquick/lifx/archive/refs/heads/main.zipAlso on Packagist as bronsonquick/lifx:
composer require bronsonquick/lifxFrom the readme
LIFX for WordPress
This plugin provides a way to control your LIFX smart lights using WordPress.
Currently this is done using the command line and WP-CLI.
Installation
1. Download the plugin zip from Github.
1. Upload the zip through the 'Plugins' menu in WordPress
1. Activate the plugin.
Usage
You can type wp help lifx to see all the commands. Here are some common ones:
wp lifx gettoken - This will print your LIFX personal access token on the command line.
wp lifx checktoken - This checks to see if your LIFX person token authenticates correctly.
wp lifx listlights - This will list your the LIFX smart lights.
wp lifx toggle - This will toggle the power state of all lights.
wp lifx power on - This will turn all lights on.
wp lifx power off - This will turn all lights off.
wp lifx toggle --selector=label:"I Love Lamp" - This will toggle the state of a light with a label of "I Love Lamp".
wp lifx toggle --selector=id:d073d56e1d85 - This will toggle the state of a light with an id of d073d56e1d85
wp lifx colourlist - This will list all the colour names you can use with our plugin.
wp lifx validatecolour "darkorchid" - See if this is a valid colour and if it use output