Added info notes
This commit is contained in:
@@ -85,5 +85,40 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="xiaomi-motion">
|
||||
<p>A simple node that converts the message payloads into a message</p>
|
||||
<p>The Xiaomi body motion sensor node</p>
|
||||
|
||||
<dl class="message-properties">
|
||||
<dt class="mandatory">Gateway</dt>
|
||||
<dd>The Gateway configuration node this sensor is attached.</dd>
|
||||
<dt class="optional">Name</dt>
|
||||
<dd>A descriptive name for this sensor.</dd>
|
||||
<dt class="mandatory">Device</dt>
|
||||
<dd>The device to associate this node with. This device is configured in the Gateway configuration.</dd>
|
||||
<dt class="mandatory">Output</dt>
|
||||
<dd>Three output types are supported:</dd>
|
||||
<ul>
|
||||
<li>Full data</li>
|
||||
<li>Just values</li>
|
||||
<li>Template</li>
|
||||
</ul>
|
||||
<dt class="mandatory">Full data</dt>
|
||||
<dd>Passes the complete object received from the gateway. Use this if you need the raw data.</dd>
|
||||
<dt class="mandatory">Just values</dt>
|
||||
<dd>Only passes the values <code>motion</code> or <code>no_motion</code>. In case of <code>no_motion</code> also the duration is passed on the second output.</dd>
|
||||
<dt class="mandatory">Template</dt>
|
||||
<dd>Use your own template to pass the values on. The template can contain <a href="http://mustache.github.io/mustache.5.html">mustache-style</a> tags.
|
||||
Any property from the data section of the full object can be used.</dd>
|
||||
</dl>
|
||||
<p>Sample message:</p>
|
||||
<p><pre>
|
||||
{
|
||||
cmd: "read_ack"
|
||||
model: "motion"
|
||||
sid: "158d00015ef56c"
|
||||
short_id: 21672
|
||||
data: "{
|
||||
"voltage":3035,
|
||||
"status":"motion"
|
||||
}"
|
||||
}</pre></p>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user