38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('mqtt-domo-in-onoff',{
|
|
category: 'Domoticz MQTT Input Formater',
|
|
color: '#00b0e2',
|
|
defaults: {
|
|
name: {value:""},
|
|
Savetocontex: {value: false},
|
|
idx: {value:""}
|
|
},
|
|
paletteLabel:"MQTT In On/Off converter",
|
|
inputs:1,
|
|
outputs:1,
|
|
icon: "domo.png",
|
|
label: function() {
|
|
return this.name||"MQTT In On/Off converter";
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="mqtt-domo-in-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-Savetocontex"><i class="icon-tag"></i> Save to context database</label>
|
|
<input type="checkbox" id="node-input-Savetocontex" >
|
|
</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="mqtt-domo-in-onoff">
|
|
<p>A node that converts domoticz on to true and of to false</p>
|
|
</script>
|