mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Allow to disable switching LEDs on during startup (#1443)
This commit is contained in:
@@ -504,6 +504,8 @@
|
||||
"edt_dev_enum_sub_min_warm_adjust": "Subtract warm white",
|
||||
"edt_dev_enum_subtract_minimum": "Subtract minimum",
|
||||
"edt_dev_enum_white_off": "White off",
|
||||
"edt_dev_general_autostart_title": "Autostart",
|
||||
"edt_dev_general_autostart_title_info": "The LED device is switched-on during startup or not",
|
||||
"edt_dev_general_colorOrder_title": "RGB byte order",
|
||||
"edt_dev_general_colorOrder_title_info": "The device's color order",
|
||||
"edt_dev_general_hardwareLedCount_title": "Hardware LED count",
|
||||
|
@@ -820,7 +820,7 @@ $(document).ready(function () {
|
||||
break;
|
||||
|
||||
case "philipshue":
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var lights = conf_editor.getEditor("root.specificOptions.lightIds").getValue();
|
||||
hwLedCountDefault = lights.length;
|
||||
@@ -828,7 +828,7 @@ $(document).ready(function () {
|
||||
break;
|
||||
|
||||
case "yeelight":
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var lights = conf_editor.getEditor("root.specificOptions.lights").getValue();
|
||||
hwLedCountDefault = lights.length;
|
||||
@@ -836,7 +836,7 @@ $(document).ready(function () {
|
||||
break;
|
||||
|
||||
case "atmoorb":
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var configruedOrbIds = conf_editor.getEditor("root.specificOptions.orbIds").getValue().trim();
|
||||
if (configruedOrbIds.length !== 0) {
|
||||
@@ -848,7 +848,7 @@ $(document).ready(function () {
|
||||
break;
|
||||
|
||||
case "razer":
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
hwLedCountDefault = 1;
|
||||
colorOrderDefault = "bgr";
|
||||
|
||||
@@ -963,7 +963,7 @@ $(document).ready(function () {
|
||||
var specOptPath = 'root.specificOptions.';
|
||||
|
||||
//Disable General Options, as LED count will be resolved from device itself
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var hostList = conf_editor.getEditor("root.specificOptions.hostList");
|
||||
if (hostList) {
|
||||
@@ -1130,7 +1130,7 @@ $(document).ready(function () {
|
||||
//Yeelight
|
||||
conf_editor.watch('root.specificOptions.lights', () => {
|
||||
//Disable General Options, as LED count will be resolved from number of lights configured
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var hwLedCount = conf_editor.getEditor("root.generalOptions.hardwareLedCount")
|
||||
if (hwLedCount) {
|
||||
@@ -1142,7 +1142,7 @@ $(document).ready(function () {
|
||||
//Philips Hue
|
||||
conf_editor.watch('root.specificOptions.lightIds', () => {
|
||||
//Disable General Options, as LED count will be resolved from number of lights configured
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var hwLedCount = conf_editor.getEditor("root.generalOptions.hardwareLedCount")
|
||||
if (hwLedCount) {
|
||||
@@ -1154,7 +1154,7 @@ $(document).ready(function () {
|
||||
//Atmo Orb
|
||||
conf_editor.watch('root.specificOptions.orbIds', () => {
|
||||
//Disable General Options, as LED count will be resolved from number of lights configured
|
||||
conf_editor.getEditor("root.generalOptions").disable();
|
||||
disableAutoResolvedGeneralOptions();
|
||||
|
||||
var hwLedCount = conf_editor.getEditor("root.generalOptions.hardwareLedCount")
|
||||
if (hwLedCount) {
|
||||
@@ -1780,3 +1780,7 @@ function showAllDeviceInputOptions(showForKey, state) {
|
||||
showInputOptionsForKey(conf_editor, "specificOptions", showForKey, state);
|
||||
}
|
||||
|
||||
function disableAutoResolvedGeneralOptions() {
|
||||
conf_editor.getEditor("root.generalOptions.hardwareLedCount").disable();
|
||||
conf_editor.getEditor("root.generalOptions.colorOrder").disable();
|
||||
}
|
||||
|
Reference in New Issue
Block a user