Forráskód Böngészése

Update README and node-red-contrib-ramp-thermostat.html

Luigi Cisana 6 éve
szülő
commit
bc37e1f7e9
3 módosított fájl, 34 hozzáadás és 3 törlés
  1. 16 1
      README.md
  2. 17 1
      ramp-thermostat/ramp-thermostat.html
  3. 1 1
      ramp-thermostat/ramp-thermostat.js

+ 16 - 1
README.md

@@ -41,9 +41,24 @@ The state (true/false) is used to control an actuator. The current and target te
 msg.topic: setTarget
 msg.payload: nn.n (number)
 ```
-
 The target will be valid until a new target or a profile is set again or until node-red is restarted.
 
+### setHysteresisPlus
+
+```sh
+msg.topic: setHysteresisPlus
+msg.payload: nn.n (number)
+```
+The Hydteresis will be valid until a new hysteresis is set again or until node-red is restated.
+
+### setHysteresisMinus
+
+```sh
+msg.topic: setHysteresisMinus
+msg.payload: nn.n (number)
+```
+The Hydteresis will be valid until a new hysteresis is set again or until node-red is restated.
+
 ### setProfile
 
 ```sh

+ 17 - 1
ramp-thermostat/ramp-thermostat.html

@@ -40,6 +40,22 @@
         <dt class="optional">topic <span class="property-type">string</span></dt>
         <dd> setTarget</dd>
       </dl>
+      <dl class="message-properties">
+        <dt>payload
+            <span class="property-type">number</span>
+        </dt>
+        <dd> hysteresis [+]</dd>
+        <dt class="optional">topic <span class="property-type">string</span></dt>
+        <dd> setHysteresisPlus</dd>
+      </dl>
+      <dl class="message-properties">
+        <dt>payload
+            <span class="property-type">number</span>
+        </dt>
+        <dd> hysteresis [-]</dd>
+        <dt class="optional">topic <span class="property-type">string</span></dt>
+        <dd> setHysteresisMinus</dd>
+      </dl>
       <dl class="message-properties">
         <dt>payload
             <span class="property-type">string</span>
@@ -48,7 +64,7 @@
         <dt class="optional">topic <span class="property-type">string</span></dt>
         <dd> setProfile</dd>
       </dl>
-       <dl class="message-properties">
+      <dl class="message-properties">
         <dt>payload
             <span class="property-type">object</span>
         </dt>

+ 1 - 1
ramp-thermostat/ramp-thermostat.js

@@ -165,7 +165,7 @@ module.exports = function(RED) {
             break;
             
           default:
-            this.warn("invalid topic >"+msg.topic+"<");
+            this.warn("invalid topic >"+msg.topic+"< - set msg.topic to e.g. 'setCurrent'");
         }
       }
     });