node-red-contrib-hubitat
Version:
Node Red module for Hubitat API
52 lines (48 loc) • 1.59 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('hubitat hsm', {
category: 'hubitat',
color: '#ACE043',
defaults: {
name: { value: '' },
server: { type: 'hubitat config', required: true },
sendEvent: { value: true },
},
inputs: 1,
outputs: 1,
icon: 'hsm.svg',
label() { return this.name || 'hsm'; },
paletteLabel: 'hsm',
});
</script>
<script type="text/html" data-template-name="hubitat hsm">
<div class="form-row">
<label for="node-input-server"><i class="fa fa-globe"></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>
<div class="form-row">
<label for="node-input-sendEvent" style="width: auto"><i class="fa fa-rocket"></i> Send events </label>
<input type="checkbox" id="node-input-sendEvent" style="display: inline-block; width: auto; vertical-align: top;" checked>
</div>
</script>
<script type="text/html" data-help-name="hubitat hsm">
<p>A node that get Hubitat Safetly Monitor state.</p>
<h3>Output</h3>
<dl class="message-properties">
<dt class="optional">msg.payload <span class="property-type">string</span></dt>
<dd>The attribute values. example:
<code>
{
payload: {
name: "hsmStatus",
value: "disarmed",
displayName: "Development"
}
}
</code>
</dd>
</dl>
</script>