UNPKG

node-red-contrib-zigbee2mqtt

Version:
25 lines (22 loc) 1.7 kB
<script type="text/x-red" data-help-name="zigbee2mqtt-in"> <p>This node listens for mqtt messages sent from your zigbee2mqtt bridge.</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>Server <span class="property-type">object</span></dt><dd>Choose the zigbee2mqtt server instance to use</dd> <dt>Device <span class="property-type">string</span></dt><dd>Select device to listen to</dd> <dt class="optional">Payload output <span class="property-type">string</span></dt><dd>Choose option which you want to send to payload</dd> <dt class="optional">Start output <span class="property-type">boolean</span></dt><dd>Output state at startup.<br> <dt class="optional">Filter <span class="property-type">boolean</span></dt><dd>Send only if value changes. Uncheck it for buttons.<br> <b><i>notice #1:</i></b> set <code>retain: true</code> in zigbee2mqtt configuration.yaml for every device (z2m plugin sets it automatically on device add)<br> <b><i>notice #2:</i></b> does not output on "Deploy only modified nodes" while there are no changes in current node </dd> </dl> <h3>Outputs</h3> <h5>Output</h5> <dl class="message-properties"> <dt>payload <span class="property-type">string | object</span></dt><dd>current value depends on output state settings formatting</dd> <dt>payload_raw <span class="property-type">sobject</span></dt><dd>data as it is</dd> <dt>device<span class="property-type">object</span></dt><dd>device info</dd> </dl> </script>