Aeotec Multisensor ZWave Flow

This flow uses the ZWave node to read the Aeotec Multisensor 6 regular updates of temperature, humidity, luminance, UV and battery level. It sends the updates to the debug window and to files that are read by RPi Monitor.

In addition to the ZWave node, it uses the timestamp and an updated version of the deduplicate nodes.

[{"id":"8f552836.1088b8","type":"zwave-controller","z":"7b4c373a.8d5738","port":"/dev/ttyUSB0","driverattempts":"3","pollinterval":"500"},{"id":"61d4e919.40bc28","type":"debug","z":"7b4c373a.8d5738","name":"","active":true,"console":"false","complete":"payload","x":1050,"y":356,"wires":[]},{"id":"ee3905e0.f65088","type":"zwave-in","z":"7b4c373a.8d5738","name":"ZWave In","controller":"8f552836.1088b8","x":86,"y":232,"wires":[["573f73c5.9fb25c"]]},{"id":"ed5ed592.45a0e8","type":"switch","z":"7b4c373a.8d5738","name":"Temperature","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Temperature","vt":"str"}],"checkall":"true","outputs":1,"x":561,"y":97,"wires":[["fffbf6fc.d63d68","708b7b49.0e5c34"]]},{"id":"fffbf6fc.d63d68","type":"template","z":"7b4c373a.8d5738","name":"Display Temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Temperature is now {{payload.value.value}}","x":780,"y":116,"wires":[["61d4e919.40bc28"]]},{"id":"4d22eebd.c94ce","type":"switch","z":"7b4c373a.8d5738","name":"Humidity","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Relative Humidity","vt":"str"}],"checkall":"true","outputs":1,"x":554,"y":177,"wires":[["6b9870f.428bb9","98c2e003.99696"]]},{"id":"c7e66a57.b82e78","type":"switch","z":"7b4c373a.8d5738","name":"Battery","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Battery Level","vt":"str"}],"checkall":"true","outputs":1,"x":553,"y":237,"wires":[["10009aa1.a16425","a0f289eb.a24168"]]},{"id":"dcd8b191.b9cf9","type":"switch","z":"7b4c373a.8d5738","name":"Luminance","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Luminance","vt":"str"}],"checkall":"true","outputs":1,"x":554,"y":325,"wires":[["5ac9746f.491d0c","ab51a19a.47fa7"]]},{"id":"b48890c7.f3c27","type":"switch","z":"7b4c373a.8d5738","name":"UV","property":"payload.label","propertyType":"msg","rules":[{"t":"eq","v":"Ultraviolet","vt":"str"}],"checkall":"true","outputs":1,"x":548,"y":394,"wires":[["7730f418.52961c","94ba558f.dfa758"]]},{"id":"8c910716.dde698","type":"deduplicate","z":"7b4c373a.8d5738","name":"","keyproperty":"label","expiry":"120","x":315,"y":221,"wires":[["b48890c7.f3c27","dcd8b191.b9cf9","c7e66a57.b82e78","4d22eebd.c94ce","ed5ed592.45a0e8"],[]]},{"id":"6b9870f.428bb9","type":"template","z":"7b4c373a.8d5738","name":"Display Humidity","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Humidity is now {{payload.value.value}}","x":793,"y":197,"wires":[["61d4e919.40bc28"]]},{"id":"5ac9746f.491d0c","type":"template","z":"7b4c373a.8d5738","name":"Display Lux","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Luminance is now {{payload.value.value}}","x":774,"y":344,"wires":[["61d4e919.40bc28"]]},{"id":"10009aa1.a16425","type":"template","z":"7b4c373a.8d5738","name":"Display Battery","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Battery is now {{payload.value.value}}","x":782,"y":272,"wires":[["61d4e919.40bc28"]]},{"id":"7730f418.52961c","type":"template","z":"7b4c373a.8d5738","name":"Display UV","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"UV is now {{payload.value.value}}","x":773,"y":412,"wires":[["61d4e919.40bc28"]]},{"id":"b82fc91d.1a6828","type":"file","z":"7b4c373a.8d5738","name":"/tmp/sensor.log","filename":"/tmp/sensor.log","appendNewline":true,"createDir":false,"overwriteFile":"false","x":750,"y":470,"wires":[]},{"id":"573f73c5.9fb25c","type":"timestamp","z":"7b4c373a.8d5738","name":"","x":179,"y":314,"wires":[["2d2161bf.fcc99e","8c910716.dde698"]]},{"id":"2d2161bf.fcc99e","type":"change","z":"7b4c373a.8d5738","name":"Timestamp","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"timestamp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":565,"y":470,"wires":[["b82fc91d.1a6828"]]},{"id":"ce4d8779.ff1218","type":"file","z":"7b4c373a.8d5738","name":"/tmp/temperature","filename":"/tmp/temperature","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1040,"y":78,"wires":[]},{"id":"708b7b49.0e5c34","type":"template","z":"7b4c373a.8d5738","name":"Log Temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}}  {{payload.value.value}}","x":760,"y":76,"wires":[["ce4d8779.ff1218"]]},{"id":"62bb3c24.14bad4","type":"file","z":"7b4c373a.8d5738","name":"/tmp/humidity","filename":"/tmp/humidity","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1031,"y":154,"wires":[]},{"id":"98c2e003.99696","type":"template","z":"7b4c373a.8d5738","name":"Log Humidity","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}}  {{payload.value.value}}","x":779,"y":157,"wires":[["62bb3c24.14bad4"]]},{"id":"a0f289eb.a24168","type":"template","z":"7b4c373a.8d5738","name":"Log Battery","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}}  {{payload.value.value}}","x":772,"y":233,"wires":[["544c09de.66c868"]]},{"id":"544c09de.66c868","type":"file","z":"7b4c373a.8d5738","name":"/tmp/battery","filename":"/tmp/battery","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1022,"y":233,"wires":[]},{"id":"ab51a19a.47fa7","type":"template","z":"7b4c373a.8d5738","name":"Log Lux","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}}  {{payload.value.value}}","x":761,"y":308,"wires":[["70c4516.3173db"]]},{"id":"70c4516.3173db","type":"file","z":"7b4c373a.8d5738","name":"/tmp/lux","filename":"/tmp/lux","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1018,"y":302,"wires":[]},{"id":"94ba558f.dfa758","type":"template","z":"7b4c373a.8d5738","name":"Log UV","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{timestamp}}  {{payload.value.value}}","x":762,"y":377,"wires":[["aa00476.407e8b8"]]},{"id":"aa00476.407e8b8","type":"file","z":"7b4c373a.8d5738","name":"/tmp/uv","filename":"/tmp/uv","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1023,"y":405,"wires":[]}]
rgstephens

Flow Info

created 1 year, 7 months ago

Node Types

Core
  • change (x1)
  • debug (x1)
  • file (x6)
  • switch (x5)
  • template (x10)
Other

Tags

  • zwave
  • sensor
  • aeotec
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option