mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Add Home Assistant Lights support (#1763)
* New HomeAssistant LEDDevice * Fix typos * Ping Qt for Windows to 6.7 until aqtinstaller is fixed * Fix HA default port handling * HA - Update default latchtime and range * Add HA Wizard and light selection * Naming consistency * Fix "Selected Hyperion instance is not running" * CodeQL findings * HA - allow to overwrite brightness by HA yes or no * HA - Support switch off on black * HA - Add transition time
This commit is contained in:
@@ -52,6 +52,17 @@ const ledDeviceWizardUtils = (() => {
|
||||
const i = positionMap[pos] || positionMap["lightPosEntire"];
|
||||
i.name = name;
|
||||
return i;
|
||||
},
|
||||
getLayoutPositions: function () {
|
||||
return Object.keys(positionMap);
|
||||
},
|
||||
getLayoutPositionsTitles: function () {
|
||||
|
||||
let layoutPositionTitles = [];
|
||||
for (const layoutPosition of Object.keys(positionMap)) {
|
||||
layoutPositionTitles.push($.i18n('conf_leds_layout_cl_' + layoutPosition));
|
||||
}
|
||||
return layoutPositionTitles;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user