mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
LEDDevices - WLED enhancements and minor fixes (#1204)
* Yeelight minor updates * Add Timeout to REST API * LEDDevice - Correct storeState * Add WaitTime function * Always show HW-LEDCount for configuration * WLED - New features ("live" support, storing state and identification) * Yeelight - Refactoring * Cololight - Refactoring * Karate - getProperties Support * Atmo - getProperties Support * AtmoOrb - refactoring * Nanoleaf - Refactoring, New "Shapes" considerations * PhilipHue - Minor corrections * Update Changelog
This commit is contained in:
@@ -149,9 +149,15 @@ private:
|
||||
///
|
||||
/// @brief Change Nanoleaf device to External Control (UDP) mode
|
||||
///
|
||||
/// @return Response from device
|
||||
///@brief
|
||||
QJsonDocument changeToExternalControlMode();
|
||||
/// @return True, if success
|
||||
bool changeToExternalControlMode();
|
||||
///
|
||||
/// @brief Change Nanoleaf device to External Control (UDP) mode
|
||||
///
|
||||
/// @param[out] response from device
|
||||
///
|
||||
/// @return True, if success
|
||||
bool changeToExternalControlMode(QJsonDocument& resp);
|
||||
|
||||
///
|
||||
/// @brief Get command to power Nanoleaf device on or off
|
||||
@@ -161,10 +167,18 @@ private:
|
||||
///
|
||||
QString getOnOffRequest(bool isOn) const;
|
||||
|
||||
///
|
||||
/// @brief Discover Nanoleaf devices available (for configuration).
|
||||
/// Nanoleaf specific ssdp discovery
|
||||
///
|
||||
/// @return A JSON structure holding a list of devices found
|
||||
///
|
||||
QJsonArray discover();
|
||||
|
||||
///REST-API wrapper
|
||||
ProviderRestApi* _restApi;
|
||||
|
||||
QString _hostname;
|
||||
QString _hostName;
|
||||
int _apiPort;
|
||||
QString _authToken;
|
||||
|
||||
|
Reference in New Issue
Block a user