UNPKG

node-red-contrib-mobius-flow-dali

Version:

Node-RED nodes to work with MOBiUSFlow and DALI devices

124 lines (111 loc) 5.52 kB
<!-- Copyright (c) 2017, IAconnects Technology Limited All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <script type="text/x-red" data-template-name="mobius iqrf emlight controller"> <div class="form-row"> <label for="node-input-mobius"><i class="fa fa-globe"></i> MOBiUS</label> <input type="text" id="node-input-mobius"> </div> <hr> <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/javascript"> RED.nodes.registerType('mobius iqrf emlight controller',{ category: 'dali lighting', color: "#53c653", defaults: { mobius: {type:'mobius connection', required:true}, name: {value: ""} }, inputs:1, outputs:0, outputLabels: [], icon: 'running-man.png', align: "right", paletteLabel: 'iqrf em light controller', label: function() { if(this.name) { return this.name; } else { return "iqrf em light controller"; } }, labelStyle: function() { return this.name ? "node_label_italic":""; } }); </script> <script type="text/x-red" data-help-name="mobius iqrf emlight controller"> <p>Send commands to an IQRF emergency luminaire.</p> <h3>Configuration Page</h3> <dl class="message-properties"> <dt>MOBiUS <span class="property-type">node</span></dt> <dd>Shared MOBiUS connection for communication with the MOBiUS Hub.</dd> </dl> <h3>Input</h3> <dl class="message-properties"> <dt>topic <span class="property-type">string</span></dt> <dd>The command to send. See the details section below for a list of valid commands.</dd> <dt>payload <span class="property-type">string | array of strings</span></dt> <dd>The Mobius object URI or an array of Mobius object URIs which represent the devices to send the commands to. If the payload ia an array of URIs the command will be sent to all devices with a two second delay between each device. </dd> </dl> <h3>Details</h3> <p>All responses automatically update the corrosponding Mobius object.</p> <br> <p><b>Valid Single DALI commands</b></p> <table style="width:100%"> <th><b>Topic</b></th><th><b>DALI Command</b></th> <tr><td>identify</td><td>240</td></tr> <tr><td>reset-function-test-flag</td><td>230</td></tr> <tr><td>reset-duration-test-flag</td><td>231</td></tr> <tr><td>em-function-test</td><td>227</td></tr> <tr><td>em-duration-test</td><td>228</td></tr> <tr><td>query-battery-charge</td><td>241</td></tr> <tr><td>query-test-timing</td><td>242</td></tr> <tr><td>query-duration-test-result</td><td>243</td></tr> <tr><td>query-lamp-emargency-time</td><td>244</td></tr> <tr><td>query-lamp-total-operation-time</td><td>245</td></tr> <tr><td>query-emergency-level</td><td>246</td></tr> <tr><td>query-emergency-min-level</td><td>247</td></tr> <tr><td>query-emergency-max-level</td><td>248</td></tr> <tr><td>query-rated-duration</td><td>249</td></tr> <tr><td>query-emergency-mode</td><td>250</td></tr> <tr><td>query-features</td><td>251</td></tr> <tr><td>query-failure-status</td><td>252</td></tr> <tr><td>query-emergency-status</td><td>253</td></tr> </table> <br> <p><b>Valid Multi DALI commands</b></p> <p>Two commands are available to query all of the status values or all of the settings values in a single command. <table style="width:100%"><col width=25%><col width=75%> <th><b>Topic</b></th><th><b>Commands Sent</b></th> <tr><td>all-status</td><td>query-battery-charge, query-test-timing, query-duration-test-result, query-emergency-mode, query-failure-status, query-emergency-status</td></tr> <tr><td>all-settings</td><td>query-lamp-emargency-time, query-lamp-total-operation-time, query-emergency-level, query-emergency-min-level, query-emergency-max-level, query-rated-duration, query-features</td></tr> </table> <br> <p align="center" style="color:#000080">iaconnects © 2019</p> </script>