node-red-contrib-rn-combine.../thermostat.html

40 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2023-10-02 21:33:26 +03:00
<script type="text/javascript">
2023-10-02 22:53:03 +03:00
RED.nodes.registerType('c-thermostat',{
category: 'Combined RN',
2023-10-03 01:04:52 +03:00
color: '#F3B567',
2023-10-02 22:53:03 +03:00
paletteLabel: 'C-Thermostat',
2023-10-02 21:33:26 +03:00
defaults: {
2023-10-03 16:13:30 +03:00
name: {value:""},
room: {value:"", required:true},
zone: {value:"", required:true}
2023-10-02 21:33:26 +03:00
},
inputs: 1,
2023-10-03 00:55:42 +03:00
outputs: 2,
2023-10-04 17:41:53 +03:00
outputLabels: ["stats","heater"],
2023-10-03 01:03:44 +03:00
icon: "font-awesome/fa-snowflake-o",
2023-10-02 21:33:26 +03:00
label: function() {
2023-10-02 22:53:03 +03:00
return this.name||"C-Thermostat";
2023-10-02 21:33:26 +03:00
}
});
</script>
2023-10-02 22:53:03 +03:00
<script type="text/html" data-template-name="c-thermostat">
2023-10-02 21:33:26 +03:00
<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>
2023-10-03 16:09:12 +03:00
<div class="form-row">
2023-10-03 16:13:30 +03:00
<label for="node-input-room"><i class="fa fa-tag"></i> Room name</label>
2023-10-04 17:41:53 +03:00
<input type="text" id="node-input-room" placeholder="Room name: 1">
2023-10-03 16:13:30 +03:00
</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">
2023-10-03 16:09:12 +03:00
</div>
2023-10-02 21:33:26 +03:00
</script>
2023-10-02 22:53:03 +03:00
<script type="text/html" data-help-name="c-thermostat">
<p>c-thermostat/p>
2023-10-02 21:33:26 +03:00
</script>
2023-10-02 22:53:03 +03:00