Power Monitor for washing machine

Use Case

The power monitor should provide a signal as soon as the washing machine is ready. Since the performance curve does not allow a direct reading of this state, the determination follows the following scheme.

image

image

[{"id":"92e207ac.84c008","type":"tab","label":"Powermonitor","disabled":false,"info":""},{"id":"62bd5053.8b814","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"12","payloadType":"num","x":170,"y":180,"wires":[["758ceb90.160ec4"]]},{"id":"758ceb90.160ec4","type":"switch","z":"92e207ac.84c008","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"10","vt":"num"},{"t":"lt","v":"10","vt":"num"},{"t":"lte","v":"0.1","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":390,"y":220,"wires":[["219dff0c.90743","50b16028.98795"],["403908fe.796538"],["54b4c09.f15154"]],"outputLabels":[">= 10","< 10","<= 0.1"]},{"id":"5d64d185.c8bfb","type":"debug","z":"92e207ac.84c008","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1210,"y":400,"wires":[]},{"id":"de236161.2236e","type":"comment","z":"92e207ac.84c008","name":"Simulierte Leistungsmessung [W]","info":"","x":230,"y":100,"wires":[]},{"id":"50cb3e57.cc65d","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"8","payloadType":"num","x":170,"y":220,"wires":[["758ceb90.160ec4"]]},{"id":"52e0de35.1076b","type":"trigger","z":"92e207ac.84c008","name":"","op1":"","op2":"Die Wäsche ist fertig","op1type":"nul","op2type":"str","duration":"120","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":990,"y":240,"wires":[["996bb0cf.65346","9902b75e.378748"]]},{"id":"219dff0c.90743","type":"change","z":"92e207ac.84c008","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":200,"wires":[["52e0de35.1076b"]]},{"id":"36d6848c.8ddb6c","type":"comment","z":"92e207ac.84c008","name":"Schwellenwerte","info":"","x":400,"y":380,"wires":[]},{"id":"4e45fe63.33187","type":"comment","z":"92e207ac.84c008","name":"Verzoegerung um","info":"","x":1000,"y":280,"wires":[]},{"id":"9039fa82.a677d8","type":"comment","z":"92e207ac.84c008","name":"Sende Fertig Signal","info":"","x":1470,"y":400,"wires":[]},{"id":"e6142154.33961","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"4","payloadType":"num","x":170,"y":260,"wires":[["758ceb90.160ec4"]]},{"id":"12a986d2.c87d19","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2","payloadType":"num","x":170,"y":300,"wires":[["758ceb90.160ec4"]]},{"id":"80f4405b.9c27c","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"25","payloadType":"num","x":170,"y":140,"wires":[["758ceb90.160ec4"]]},{"id":"6efefb84.cd6e94","type":"inject","z":"92e207ac.84c008","name":"Neustart","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":540,"wires":[["c06426d5.16fc58"]]},{"id":"5623453e.e5db6c","type":"comment","z":"92e207ac.84c008","name":"Aktivieren bei >= 10","info":"","x":1470,"y":140,"wires":[]},{"id":"50b16028.98795","type":"change","z":"92e207ac.84c008","name":"Running=true","rules":[{"t":"set","p":"Running","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":140,"wires":[[]]},{"id":"c06426d5.16fc58","type":"change","z":"92e207ac.84c008","name":"Running=false / Repeat=false","rules":[{"t":"set","p":"Running","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"Repeat","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1290,"y":540,"wires":[[]]},{"id":"403908fe.796538","type":"switch","z":"92e207ac.84c008","name":"","property":"Running","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":240,"wires":[["52e0de35.1076b"]]},{"id":"96d07c29.b9143","type":"comment","z":"92e207ac.84c008","name":"Nur wenn aktiviert","info":"","x":590,"y":380,"wires":[]},{"id":"621174af.21ca2c","type":"inject","z":"92e207ac.84c008","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0.1","payloadType":"num","x":170,"y":340,"wires":[["758ceb90.160ec4"]]},{"id":"996bb0cf.65346","type":"change","z":"92e207ac.84c008","name":"Running=false / Repeat=true","rules":[{"t":"set","p":"Running","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"Repeat","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1280,"y":240,"wires":[[]]},{"id":"9902b75e.378748","type":"trigger","z":"92e207ac.84c008","name":"","op1":"","op2":"Die Wäsche ist fertig","op1type":"pay","op2type":"str","duration":"-30","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1030,"y":400,"wires":[["5d64d185.c8bfb"]]},{"id":"54b4c09.f15154","type":"switch","z":"92e207ac.84c008","name":"","property":"Repeat","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":280,"wires":[["eb6be808.52ffd8"]]},{"id":"eb6be808.52ffd8","type":"change","z":"92e207ac.84c008","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":320,"wires":[["9902b75e.378748","d5afc189.cd84e"]]},{"id":"8f7c1be0.63a228","type":"comment","z":"92e207ac.84c008","name":"Wiederholung alle","info":"","x":1010,"y":440,"wires":[]},{"id":"f6598402.bc7f28","type":"comment","z":"92e207ac.84c008","name":"Nur wenn in Wiederholung","info":"","x":610,"y":420,"wires":[]},{"id":"d5afc189.cd84e","type":"change","z":"92e207ac.84c008","name":"Repeat=false","rules":[{"t":"set","p":"Repeat","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":500,"wires":[[]]}]

Flow Info

Created 3 years, 6 months ago
Rating: 5 2

Owner

Actions

Rate:

Node Types

Core
  • change (x6)
  • comment (x8)
  • debug (x1)
  • inject (x7)
  • switch (x3)
  • trigger (x2)
Other
  • tab (x1)

Tags

  • Washingmachine
  • Washing
  • Machine
  • Power
  • Monitor
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option