UNPKG

@gravypower/node-red-franklinwh

Version:

Node-RED node to control FranklinWH gateway

62 lines (57 loc) 2.11 kB
<script type="text/javascript"> RED.nodes.registerType('franklinwh-get-accessories',{ category: 'FranklinWH', color: '#3399ff', defaults: { name: {value:""}, server: {type:"franklinwh-config", required:true} }, inputs:1, outputs:1, icon: "font-awesome/fa-plug", label: function() { return this.name||"get accessories"; } }); </script> <script type="text/html" data-template-name="franklinwh-get-accessories"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-server"><i class="fa fa-server"></i> Server</label> <input type="text" id="node-input-server"> </div> </script> <script type="text/html" data-help-name="franklinwh-get-accessories"> <p>A node to get the FranklinWH system accessories information.</p> <h3>Outputs</h3> <dl class="message-properties"> <dt>payload <span class="property-type">object</span> </dt> <dd> An object containing: <ul> <li><code>accessories</code> - array of connected accessories with their details: <ul> <li>Device identification</li> <li>Connection status</li> <li>Device type</li> <li>Current state</li> </ul> </li> </ul> </dd> </dl> <h3>Details</h3> <p>This node retrieves information about all accessories connected to your FranklinWH system. Accessories can include smart plugs, sensors, and other compatible devices.</p> <h3>Notes</h3> <ul> <li>Returns details about all connected accessories</li> <li>Useful for monitoring device status and connectivity</li> <li>Can be used to verify accessory configurations</li> </ul> </script>