UNPKG

node-red-contrib-nanoleaf-aurora

Version:

A node-red module, which provides nodes to manipulate a Nanoleaf Aurora installation.

42 lines (40 loc) 1.51 kB
<script type="text/javascript"> RED.nodes.registerType('power-status', { category: 'nanoleaf', color: '#e6e0f8', icon: 'light.png', inputs: 1, outputs: 1, defaults: { name: { value: '' }, installation: { type: 'installation' }, outputType: { value: 'String' } }, label: function () { return this.name || 'power-status'; } }); </script> <script type="text/x-red" data-template-name="power-status"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name"/> </div> <div class="form-row"> <label for="node-input-installation"><i class="fa fa-tag"></i> Installation</label> <input type="text" id="node-input-installation"/> </div> <div class="form-row"> <label for="node-input-outputType"><i class="fa fa-envelope"></i> Output</label> <select id="node-input-outputType"> <option selected>String</option> <option>Boolean</option> <option>Numeric</option> </select> </div> </script> <script type="text/x-red" data-help-name="power-status"> <p>Upon trigger outputs the Nanoleaf Aurora information into msg.payload.</p> <p>Available output types: String ('ON', 'OFF'), Boolean (true = ON, false = OFF) and Numeric (1 = ON, 0 = OFF)</p> </script>