@gravypower/node-red-franklinwh
Version:
Node-RED node to control FranklinWH gateway
71 lines (64 loc) • 2.4 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('franklinwh-get-controls',{
category: 'FranklinWH',
color: '#3399ff',
defaults: {
server: {type:"franklinwh-config", required:true},
name: {value:""}
},
inputs:1,
outputs:1,
icon: "font-awesome/fa-sliders",
label: function() {
return this.name||"get controls";
}
});
</script>
<script type="text/html" data-template-name="franklinwh-get-controls">
<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>
<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>
</script>
<script type="text/html" data-help-name="franklinwh-get-controls">
<p>A node to get the FranklinWH system control settings.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">any</span>
</dt>
<dd>Any input will trigger the control settings request.</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">object</span>
</dt>
<dd>
An object containing the control settings:
<ul>
<li><code>controls</code> - object containing various control parameters:
<ul>
<li>Generator settings</li>
<li>Grid charging settings</li>
<li>Time-of-use schedules</li>
<li>Other system control parameters</li>
</ul>
</li>
</ul>
</dd>
</dl>
<h3>Details</h3>
<p>This node retrieves the current control settings from your FranklinWH system.
These settings determine how your system operates under different conditions.</p>
<h3>Notes</h3>
<ul>
<li>The returned controls object contains multiple configuration parameters</li>
<li>Use this node to monitor your system's operational settings</li>
<li>Typically used in conjunction with system monitoring and automation flows</li>
</ul>
</script>