Files
node-red-contib-domoticzcon…/mqtt-domo-in/miTempConv.html
2020-04-15 02:48:39 +02:00

33 lines
1.1 KiB
HTML

<script type="text/javascript">
RED.nodes.registerType('mqtt-domo-in-temp',{
category: 'Domoticz MQTT Input Formater',
color: '#00b0e2',
defaults: {
name: {value:""},
sname: {value:""}
},
paletteLabel:"MQTT In Temperature converter",
inputs:1,
outputs:1,
icon: "domo.png",
label: function() {
return this.name||"MQTT In Temperature converter";
}
});
</script>
<script type="text/html" data-template-name="mqtt-domo-in-temp">
<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> Sensor name</label>
<input type="text" id="node-input-sname" placeholder="Sensor name">
</div>
</script>
<script type="text/html" data-help-name="mqtt-domo-in-temp">
<p>A node that converts domoticz svalue1 to msg.payload and adds a confiurable topic for use with dashboad graph</p>
</script>