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
Last revisionBoth sides next revision
homeautomatisation:node-red [2023/12/16 22:39] illuhomeautomatisation:node-red [2023/12/16 22:48] illu
Line 13: Line 13:
 </code> </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. +(!) The importance for node red to communicate via Port 80 is essential!  
-With iobroker in docker and "network_mode: host" the container is able to open 80.+ 
 +(!) 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. 
 + 
  
  
Line 26: Line 31:
 {{:homeautomatisation:node-red:unknown_004.png?400|}} {{:homeautomatisation:node-red:unknown_004.png?400|}}
  
-Code Example+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:unknown_006.png?400|}} 
 + 
 +Complete Code Example
 <code yml> <code yml>
 [ [
homeautomatisation/node-red.txt · Last modified: 2023/12/16 23:28 by illu