UNPKG

node-red-contrib-xiaomi-smart-devices

Version:
33 lines (30 loc) 1.03 kB
<script type="text/javascript"> RED.nodes.registerType('xiaomi-gateway-utils', { category: 'xiaomi', color: 'rgb(100, 222, 160)', defaults: { gateway: {value: "", type: "xiaomi-gateway-config"} }, inputs: 1, outputs: 1, paletteLabel: "gateway utils", icon: "gateway.png", label: function () { return this.name || "Xiaomi Gateway Utils"; } }); </script> <script type="text/x-red" data-template-name="xiaomi-gateway-utils"> <div class="form-row"> <label for="node-input-gateway"><i class="icon-tag"></i> Gateway</label> <input type="text" id="node-input-gateway" placeholder="Xiaomi Gateway"> </div> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="xiaomi-gateway-utils"> <p>The Xiaomi Gateway Utils</p> <p>Gets device list from the Xiaomi Gateway</p> </script>