node-red-contrib-spruthub
Version:
Sprut.hub connectivity nodes for node-red
24 lines (20 loc) • 1.39 kB
HTML
<script type="text/x-red" data-help-name="spruthub-get">
<p>Get the last value of accessory.</p>
<h3>Configuration</h3>
<dl class="message-properties">
<dt class="optional">Name <span class="property-type">string</span></dt><dd>Choose any name to identify your node</dd>
<dt>Sprut.hub <span class="property-type">object</span></dt><dd>Choose instance to use</dd>
<dt>Accessory <span class="property-type">string</span></dt><dd>Select accessories to listen to. Leave empty to use msg.topic (string or array)</dd>
<!-- <dt class="optional">Show hidden accessories <span class="property-type">boolean</span></dt><dd></dd>-->
<dt class="optional">Enable multiple select <span class="property-type">boolean</span></dt><dd></dd>
</dl>
<h3>Outputs</h3>
<h5>Output</h5>
<dl class="message-properties">
<dt>payload <span class="property-type">string</span></dt><dd>current value</dd>
<dt>payload_in<span class="property-type">object</span></dt><dd>input payload</dd>
<dt>topic<span class="property-type">string</span></dt><dd>mqtt topic</dd>
<dt>meta<span class="property-type">object</span></dt><dd>service and characteristic info</dd>
<dt>math<span class="property-type">object</span></dt><dd>math result for multiple selected accessories</dd>
</dl>
</script>