node-red-contrib-panasonic-comfort-cloud
Version:
Node-RED implementation of panasonic-comfort-cloud-client
36 lines (34 loc) • 1.27 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('pcc-groups', {
category: 'Comfort Cloud',
color: '#3FADB5',
defaults: {
name: { value: "" },
comfortCloudConfig: { value: null, required: true, type: 'pcc-config' },
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-object-group",
label: function () {
return this.name || "groups";
},
paletteLabel: "groups",
labelStyle: function () {
return this.name ? "node_label_italic" : "";
},
});
</script>
<script type="text/html" data-template-name="pcc-groups">
<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-comfortCloudConfig" style="white-space:nowrap;"><i class="fa fa-lock"></i> Config</label>
<input type="text" id="node-input-comfortCloudConfig" placeholder="Comfort Cloud Config">
</div>
</script>
<script type="text/html" data-help-name="pcc-groups">
<p>Node-RED Node-RED support Panasonic Comfort Cloud.</p>
<p>Returns a list of groups.</p>
</script>