Skip to content

Instantly share code, notes, and snippets.

@Holger-Will
Last active March 28, 2022 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Holger-Will/1f0dd4b46e783c6306fc5fc8f8584630 to your computer and use it in GitHub Desktop.
Save Holger-Will/1f0dd4b46e783c6306fc5fc8f8584630 to your computer and use it in GitHub Desktop.
node-red-contrib-enocean listening to incomming data

this is an example flow to show how to use the actor node in node-red-contrib-enocean version 0.5.0-alpha.1 or higher. showing how to teach in and delete sensors automatically or manually using messages. this flow is for version 0.5.0-alpha.1 and higher

image

[{"id":"a6d29d13.3c30c","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"cc35e6a6.347f58","type":"enocean-in","z":"a6d29d13.3c30c","serialport":"cfcf4fbc.4250e","name":"","x":190,"y":40,"wires":[["75dd71b9.5c90a"]],"info":"Light and Blind Control - Application Style 1"},{"id":"75dd71b9.5c90a","type":"enocean-actor","z":"a6d29d13.3c30c","name":"","x":450,"y":40,"wires":[["b2a7a955.ec75d8"]]},{"id":"b8da7324.ac706","type":"inject","z":"a6d29d13.3c30c","name":"LRN","topic":"","payload":"{\"type\":\"LRN\",\"duration\":3}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":220,"wires":[["75dd71b9.5c90a"]]},{"id":"336f88c5.932b18","type":"inject","z":"a6d29d13.3c30c","name":"DEL","topic":"","payload":"{\"type\":\"DEL\",\"duration\":3}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":180,"wires":[["75dd71b9.5c90a"]]},{"id":"d5957ef5.439f","type":"inject","z":"a6d29d13.3c30c","name":"manuell teach in","topic":"","payload":"{\"type\":\"LRN\",\"senderId\":\"002a1d7e\",\"eep\":\"f6-02-03\",\"name\":\"Button5\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":140,"wires":[["75dd71b9.5c90a"]]},{"id":"b2a7a955.ec75d8","type":"debug","z":"a6d29d13.3c30c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":650,"y":40,"wires":[]},{"id":"e529c437.4c4f18","type":"inject","z":"a6d29d13.3c30c","name":"manuell delete","topic":"","payload":"{\"type\":\"DEL\",\"senderId\":\"002a1d7e\",\"eep\":\"f6-02-01\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":100,"wires":[["75dd71b9.5c90a"]]},{"id":"cfcf4fbc.4250e","type":"enocean-config-node","z":"","serialport":"/dev/ttyUSB0"}]
@infoension
Copy link

Hi Holger .. thank you for your great work. I really appreciate this.

@saxenapranav9
Copy link

Hi Holger,

I am not able to install enocean nodes. Getting the below error. Tried on mac and windows 10 as well. Please help me. Its urgent.

2022-03-28T13:28:34.107Z Install : node-red-contrib-enocean 0.8.5

2022-03-28T13:28:27.527Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-enocean@0.8.5
2022-03-28T13:29:00.576Z [out]
2022-03-28T13:29:00.576Z [out] > @serialport/bindings@8.0.8 install /data/node-red/user/node_modules/@serialport/bindings
2022-03-28T13:29:00.576Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-03-28T13:29:00.576Z [out]
2022-03-28T13:29:01.624Z [err] prebuild-install
2022-03-28T13:29:01.625Z [err] WARN install No prebuilt binaries found (target=12.22.9 runtime=node arch=arm libc= platform=linux)
2022-03-28T13:29:03.128Z [err] gyp
2022-03-28T13:29:03.129Z [err]
2022-03-28T13:29:03.129Z [err] ERR! build error
2022-03-28T13:29:03.131Z [err] gyp
2022-03-28T13:29:03.131Z [err] ERR! stack Error: not found: make
2022-03-28T13:29:03.131Z [err] gyp
2022-03-28T13:29:03.131Z [err] ERR!
2022-03-28T13:29:03.131Z [err] stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:13:12)
2022-03-28T13:29:03.131Z [err] gyp
2022-03-28T13:29:03.131Z [err] ERR!
2022-03-28T13:29:03.132Z [err] stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:19)
2022-03-28T13:29:03.132Z [err] gyp ERR!
2022-03-28T13:29:03.132Z [err] stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
2022-03-28T13:29:03.132Z [err] gyp ERR!
2022-03-28T13:29:03.132Z [err] stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
2022-03-28T13:29:03.132Z [err] gyp
2022-03-28T13:29:03.132Z [err] ERR!
2022-03-28T13:29:03.132Z [err] stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2022-03-28T13:29:03.132Z [err] gyp
2022-03-28T13:29:03.132Z [err] ERR!
2022-03-28T13:29:03.133Z [err] stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2022-03-28T13:29:03.133Z [err] gyp
2022-03-28T13:29:03.133Z [err] ERR! stack at FSReqCallback.oncomplete (fs.js:168:21)
2022-03-28T13:29:03.133Z [err] gyp
2022-03-28T13:29:03.133Z [err] ERR! System Linux 5.10.83-v8
2022-03-28T13:29:03.134Z [err] gyp
2022-03-28T13:29:03.134Z [err] ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2022-03-28T13:29:03.134Z [err] gyp ERR!
2022-03-28T13:29:03.134Z [err] cwd /data/node-red/user/node_modules/@serialport/bindings
2022-03-28T13:29:03.136Z [err] gyp ERR! node -v
2022-03-28T13:29:03.136Z [err] v12.22.9
2022-03-28T13:29:03.136Z [err] gyp ERR! node-gyp -v v5.1.0
2022-03-28T13:29:03.136Z [err] gyp ERR! not ok
2022-03-28T13:29:03.482Z [err] npm
2022-03-28T13:29:03.483Z [err] ERR! code ELIFECYCLE
2022-03-28T13:29:03.483Z [err] npm ERR! errno
2022-03-28T13:29:03.483Z [err] 1
2022-03-28T13:29:03.496Z [err] npm ERR!
2022-03-28T13:29:03.496Z [err] @serialport/bindings@8.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-03-28T13:29:03.496Z [err] npm ERR! Exit status 1
2022-03-28T13:29:03.496Z [err] npm ERR!
2022-03-28T13:29:03.497Z [err]
2022-03-28T13:29:03.497Z [err] npm ERR!
2022-03-28T13:29:03.497Z [err] Failed at the @serialport/bindings@8.0.8 install script.
2022-03-28T13:29:03.497Z [err] npm
2022-03-28T13:29:03.497Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-03-28T13:29:03.756Z [err]
2022-03-28T13:29:03.757Z [err] npm ERR! A complete log of this run can be found in:
2022-03-28T13:29:03.757Z [err] npm
2022-03-28T13:29:03.757Z [err] ERR! /root/.npm/_logs/2022-03-28T13_29_03_574Z-debug.log
2022-03-28T13:29:03.795Z rc=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment