UNPKG

node-red-contrib-knx-ultimate

Version:

Control your KNX and KNX Secure intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.

38 lines (32 loc) 1.58 kB
<script type="text/javascript"> // Aggiungere questo JSON al package.json // "plugins": { // "sidebar-plugin": "/nodes/plugins/HomeAssistantImporter-sidebar-plugin.html" // } (function () { RED.plugins.registerPlugin("HomeAssistantImporter-sidebar-plugin", { onadd: function () { //#region Create Home Assistant Import TAB on the left tabs. // The sidebar content const content = $("<div>").css({ "position": "relative", "height": "100%" }); // (optional) A toolbar header for the sidebar const header = $("<div>", { class: "red-ui-sidebar-header" }).appendTo(content); // const textarea = "<textarea rows="20" id="node - config - input - csv" style="width: 100 % " // data - i18n="[placeholder]knxUltimate-config.ets.ga_list_help" ></textarea > " RED.actions.add("HAImporterTab:show-custom-tab", function () { RED.sidebar.show("HAImporterTab"); }); if (RED.sidebar.containsTab('HAImporterTab')) RED.sidebar.removeTab("HAImporterTab"); RED.sidebar.addTab({ id: "HAImporterTab", label: "custom", name: "Home Assistant importer", iconClass: "fa fa-database", content: content, action: "HAImporterTab:show-custom-tab" }); //#endregion } }) })(); </script>