UNPKG

@parallaxcontrol/node-red-control

Version:

A comprehensive package of Node-RED nodes designed to seamlessly integrate with the Parallax Control Engine, offering enhanced control capabilities for AV Automation.

37 lines (33 loc) 1.37 kB
<script type="text/javascript"> RED.nodes.registerType('set-reset-latch', { category: 'parallax', color: '#C0C0C0', defaults: { name: { value: "" } }, inputs: 1, outputs: 2, icon: "switch.svg", // Replace with a relevant icon label: function() { return this.name || "set-reset-latch"; }, labelStyle: function() { return this.name ? "node_label_italic" : ""; } }); </script> <script type="text/html" data-template-name="set-reset-latch"> <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> <div> <small> 1-Set, 2-Reset. Set drives output 1 true, output 2 false. Reset, drives output 1 false, output 2 true. </small> </div> </script> <script type="text/html" data-help-name="set-reset-latch"> <p>This node simulates a set/reset latching relay. It has two outputs: the first output returns the current state (true/false), and the second output returns the inverse state. Using the input-select node, send a 1 or a 2 to make your selection. 1 is Set, 2 is Reset.</p> <p>[Expected: msg.input (1 or 2). NOTE: use the input-select node to make selection.]</p> </script>