Luigi Cisana 7 anni fa
parent
commit
17fdc25dfd
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      ramp-thermostat/ramp-thermostat.js

+ 3 - 2
ramp-thermostat/ramp-thermostat.js

@@ -36,8 +36,9 @@ module.exports = function(RED) {
       globalContext.set(node_name, this.profile);
     //}
     
+    this.current_status = {fill:"green",shape:"dot",text:"profile set to "+this.profile.name};
     
-    this.status({fill:"green",shape:"dot",text:"profile set to "+this.profile.name});
+    this.status(this.current_status);
     //this.warn(node_name+" - "+JSON.stringify(this.profile));
 
     this.on('input', function(msg) {
@@ -123,7 +124,7 @@ module.exports = function(RED) {
                 }
               }.bind(this));
 
-              this.warn("version: "+version);
+              this.warn("ramp-thermostat version: "+version);
               this.status({fill:"green",shape:"dot",text:"version: "+version});
               var set_timeout = setTimeout(function() {
                 this.status(this.current_status);