samaphp / lifxlan
LIFX LAN protocol library
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/samaphp/lifxlan
Requires
- php: >=7.1
README
LifxLan protocol. (Work in progress)
Note: This library is not ready for use in production. And does not cover all API capabilities. I just built it for my self to
Setting light color by name:
$light_ip = '192.168.1.x'; $Light = new Light($light_ip); $brightness = 40; $Light->setColorByName('white_warm', $brightness); // Set light power on. $Light->setPowerStatus('on'); // Set light power off. $Light->setPowerStatus('off');
Advanced use:
// Set a custom value for the connection timeout. $Light->setTimeout(2); // Custom timeout per method. $Light->setTimeout(1)->setColorByName('white_cool', 10);