33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('http-domo-out-onoff',{
|
|
category: 'Domoticz HTTP Output Formater',
|
|
color: '#00b0e2',
|
|
defaults: {
|
|
name: {value:""},
|
|
idx: {value:""}
|
|
},
|
|
paletteLabel:"HTTP Output On/Off converter",
|
|
inputs:1,
|
|
outputs:1,
|
|
icon: "domo.png",
|
|
label: function() {
|
|
return this.name||"HTTP Output On/Off converter";
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="http-domo-out-onoff">
|
|
<div class="form-row">
|
|
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
</div>
|
|
<div class="form-row">
|
|
<label for="node-input-idx"><i class="icon-tag"></i> IDX</label>
|
|
<input type="number" id="node-input-idx" placeholder="IDX">
|
|
</div>
|
|
</script>
|
|
|
|
<script type="text/html" data-help-name="http-domo-out-onoff">
|
|
<p>A node that converts msg.paylod true/false to domoticz on/off</p>
|
|
</script>
|