node-red-contrib-rn-combine.../thermostat.html
2023-10-04 17:41:53 +03:00

40 lines
1.3 KiB
HTML

<script type="text/javascript">
RED.nodes.registerType('c-thermostat',{
category: 'Combined RN',
color: '#F3B567',
paletteLabel: 'C-Thermostat',
defaults: {
name: {value:""},
room: {value:"", required:true},
zone: {value:"", required:true}
},
inputs: 1,
outputs: 2,
outputLabels: ["stats","heater"],
icon: "font-awesome/fa-snowflake-o",
label: function() {
return this.name||"C-Thermostat";
}
});
</script>
<script type="text/html" data-template-name="c-thermostat">
<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-room"><i class="fa fa-tag"></i> Room name</label>
<input type="text" id="node-input-room" placeholder="Room name: 1">
</div>
<div class="form-row">
<label for="node-input-zone"><i class="fa fa-tag"></i> Zone name</label>
<input type="text" id="node-input-zone" placeholder="Zone name: gid">
</div>
</script>
<script type="text/html" data-help-name="c-thermostat">
<p>c-thermostat/p>
</script>