User Tools

Site Tools


homeautomatisation:node-red

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
homeautomatisation:node-red [2022/02/24 22:06] illuhomeautomatisation:node-red [2023/12/16 23:28] (current) illu
Line 1: Line 1:
 ====== Node-Red ====== ====== Node-Red ======
  
-Install Adapter +Install Adapter Node Red 
 + 
 +{{:homeautomatisation:node-red:unknown_001.png?400|}} 
 extra NPM: node-red-contrib-amazon-echo extra NPM: node-red-contrib-amazon-echo
 +[[https://flows.nodered.org/node/node-red-contrib-alexa-local|https://flows.nodered.org/node/node-red-contrib-alexa-local]]
 +
 +<code bash>
 +docker exec -it iobroker sh
 +npm install node-red-contrib-alexa-local
 +</code>
 +
 +
 +(!) The importance for node red to communicate via Port 80 is essential! 
 +
 +(!) Alexa Echo will broadcast your local network on Port 80 for local smart devices.
 +
 +(!) With iobroker in docker and "network_mode: host" the container is able to open 80.
 +
 +
 +
 +
 +Here are some Examples for Alexa local use: 
 +
 +{{:homeautomatisation:node-red:unknown_002.png?400|}}
 +
 +{{:homeautomatisation:node-red:unknown_003.png?400|}}
 +
 +{{:homeautomatisation:node-red:unknown_004.png?400|}}
 +
 +Functions:
 +
 +<code javascript>
 +if(msg.payload === "on"){
 +msg.payload = true;
 +}
 +if(msg.payload === "off"){
 +msg.payload = false;
 +}
 +return msg;
 +</code>
 +
 +{{:homeautomatisation:node-red:unknown_005.png?400|}}
  
-[[HomeAutomatisation:Node-Red:Example Alexa|Example Alexa]]+{{:homeautomatisation:node-red:unknown_006.png?400|}}
  
-[[HomeAutomatisation:Node-Red:Example Alexa|Example with different Flows]] 
homeautomatisation/node-red.1645736813.txt.gz · Last modified: 2022/02/24 22:06 by illu