Blynk, MQTT and Hue sync all connect to external hosts!
This may impact the responsiveness of the ESP8266.
For best results, only use one of these services at a time.
(alternatively, connect a second ESP to them and use the UDP sync)
-Host:
+Host:
Port:
Device Auth token:
-Clear the token field to disable. Setup info
+Clear the token field to disable. Setup info
MQTT
Enable MQTT:
-Broker:
+Broker:
Port: The MQTT credentials are sent over an unsecured connection.
Never use the MQTT password for another service!
-Username:
+Username:
Password:
-Client ID:
-Device Topic:
-Group Topic:
+Client ID:
+Device Topic:
+Group Topic:
Publish on button press:
-Reboot required to apply changes. MQTT info
+Reboot required to apply changes. MQTT info
Philips Hue
You can find the bridge IP and the light number in the 'About' section of the hue app.
Poll Hue light every ms:
Then, receive On/Off, Brightness, and Color
Hue Bridge IP:
- .
- .
- .
-
+ .
+ .
+ .
+ Press the pushlink button on the bridge, after that save this page!
(when first connecting)
Hue status: Disabled in this build
diff --git a/wled00/fcn_declare.h b/wled00/fcn_declare.h
index af9e4a53f..a139cb2f7 100644
--- a/wled00/fcn_declare.h
+++ b/wled00/fcn_declare.h
@@ -15,9 +15,11 @@ void handleAlexa();
void onAlexaChange(EspalexaDevice* dev);
//blynk.cpp
+#ifndef WLED_DISABLE_BLYNK
void initBlynk(const char* auth, const char* host, uint16_t port);
void handleBlynk();
void updateBlynk();
+#endif
//button.cpp
void shortPressAction(uint8_t b=0);
@@ -56,7 +58,7 @@ bool getJsonValue(const JsonVariant& element, DestType& destination, const Defau
//colors.cpp
void colorFromUint32(uint32_t in, bool secondary = false);
void colorFromUint24(uint32_t in, bool secondary = false);
-uint32_t colorFromRgbw(byte* rgbw);
+inline uint32_t colorFromRgbw(byte* rgbw) { return uint32_t((byte(rgbw[3]) << 24) | (byte(rgbw[0]) << 16) | (byte(rgbw[1]) << 8) | (byte(rgbw[2]))); }
void relativeChangeWhite(int8_t amount, byte lowerBoundary = 0);
void colorHStoRGB(uint16_t hue, byte sat, byte* rgb); //hue, sat to rgb
void colorKtoRGB(uint16_t kelvin, byte* rgb);
@@ -141,7 +143,6 @@ void resetTimebase();
void toggleOnOff();
void setAllLeds();
void setLedsStandard();
-bool colorChanged();
void colorUpdated(int callMode);
void updateInterfaces(uint8_t callMode);
void handleTransitions();
diff --git a/wled00/html_settings.h b/wled00/html_settings.h
index 79afdda1f..370c28288 100644
--- a/wled00/html_settings.h
+++ b/wled00/html_settings.h
@@ -245,7 +245,7 @@ type="button" onclick="Save()">Save