Nodon Softbutton

Integrates the Nodon Softbutton over EnOcean.

I used an USB300 Adapter to bring EnOcean to my Raspberry Pi. The flow uses "node-red-contrib-enocean" in Version 0.8.5

[{"id":"a6d29d13.3c30c","type":"tab","label":"Nodon SoftButton","disabled":false,"info":""},{"id":"cc35e6a6.347f58","type":"enocean-in","z":"a6d29d13.3c30c","serialport":"cfcf4fbc.4250e","name":"USB 300","x":180,"y":160,"wires":[["d6adea7.33a8618","e024d955.db7848"]],"info":"Light and Blind Control - Application Style 1"},{"id":"d9ef622f.66f6f","type":"function","z":"a6d29d13.3c30c","name":"","func":"/* 1 = Kurzes Klicken\n * 2 = Doppeltes Klicken\n * 3 = Langes Drücken\n * 4 = Loslassen (nur nach langem Drücken)\n */\nbattery = {payload: parseInt(\"0x\"+msg.payload.substring(14, 16))};\nbefehl = {payload: parseInt(msg.payload.substring(17,18))};\nreturn [befehl, battery];","outputs":2,"noerr":0,"initialize":"","finalize":"","x":540,"y":160,"wires":[["604fad46.291424"],["7c2683b2.f098bc"]]},{"id":"604fad46.291424","type":"debug","z":"a6d29d13.3c30c","name":"action","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":690,"y":140,"wires":[]},{"id":"dfd5b1a0.867a8","type":"comment","z":"a6d29d13.3c30c","name":"Empfang","info":"","x":460,"y":60,"wires":[]},{"id":"7c2683b2.f098bc","type":"debug","z":"a6d29d13.3c30c","name":"battery","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":700,"y":180,"wires":[]},{"id":"d6adea7.33a8618","type":"debug","z":"a6d29d13.3c30c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":350,"y":120,"wires":[]},{"id":"e024d955.db7848","type":"switch","z":"a6d29d13.3c30c","name":"SoftButton","property":"meta.senderId","propertyType":"msg","rules":[{"t":"eq","v":"8100cc2e","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":160,"wires":[["d9ef622f.66f6f"]]},{"id":"cfcf4fbc.4250e","type":"enocean-config-node","serialport":"/dev/ttyUSB0"}]

Flow Info

Created 4 years, 6 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • debug (x3)
  • function (x1)
  • switch (x1)
Other
  • enocean-config-node (x1)
  • enocean-in (x1)
  • tab (x1)

Tags

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