node-red-contrib-panasonic-comfort-cloud
Version:
Node-RED implementation of panasonic-comfort-cloud-client
43 lines (40 loc) • 1.53 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('pcc-device', {
category: 'Comfort Cloud',
color: '#3FADB5',
defaults: {
name: { value: '' },
comfortCloudConfig: { value: null, required: true, type: 'pcc-config' },
deviceId: { value: '' }
},
inputs: 1,
outputs: 1,
icon: "font-awesome/fa-thermometer-half",
label: function () {
return this.name || 'device';
},
paletteLabel: 'device',
labelStyle: function () {
return this.name ? 'node_label_italic' : '';
},
});
</script>
<script type="text/html" data-template-name="pcc-device">
<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"><i class="fa fa-lock"></i> Config</label>
<input type="text" id="node-input-comfortCloudConfig" placeholder="Comfort Cloud Config">
</div>
<hr>
<div class="form-row">
<label for="node-input-deviceId"><i class="fa fa-wifi"></i> Device ID</label>
<input type="text" id="node-input-deviceId" placeholder="Device ID">
</div>
</script>
<script type="text/html" data-help-name="pcc-device">
<p>Node-RED Node-RED support Panasonic Comfort Cloud.</p>
<p>Returns a device based on device id from setting or input.</p>
</script>