This library is designed to access and control Philips Hue Lights Directly with an ESP8266 using the Arduino IDE.
To use:
-
Download ZIP
-
In Arduino IDE from the menu Sketch→Include Library→Add .ZIP Library…
-
Browse to the .zip file and install
-
Library will show up under Include Library
-
Examples are in File→Examples→ESP_Hue
Available Class Methods:
void setAPIKey(const char* APIKey);
void setHubIP(const char* host);
void setHubPort(uint8_t port);
String getLightInfo(int lightNum); // Gets the light raw http request data
int getLightState(int lightNum); // Gets Light State On, or Off
void setLight(int lightNum, int state, int sat, int bri, int hue); // Set Light State, Saturation, Brightness, and Hue
void setLight(int lightNum, int state, int sat, int bri, int hue, unsigned int trans); // Set Light State, Saturation, Brightness, and Hue, with transition speed
void setLightPower(int lightNum, int state); // Set Light Power On, or Off
String getGroupInfo(int groupNum); // Gets the group raw http request data
int getGroupState(int groupNum); // Gets Group State On, or Off
void setGroup(int groupNum, int state, int sat, int bri, int hue); // Set Group State, Saturation, Brightness, and Hue
void setGroup(int groupNum, int state, int sat, int bri, int hue, unsigned int trans); // Set Group State, Saturation, Brightness, and Hue, with transition speed
void setGroupPower(int groupNum, int state); // Set Group Power On, or Off
See Examples for Usage
== License == Copyright (c) Richard Wardlow. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA