Node Red Master Class – #1 the basics; including how to start out with Node Red from a beginner.
In this tutorial, we’ll look at the general layout, how flows and sequences work including variables, some of the basic nodes and a run through a quick example.
Nodes we’ll look at:
- State Node
- Call Service Node
- Delay Node
- Inject Node
- Debug Node
- Change Node
- Time Range Node
Flow from this Video:
[{“id”:”eb14e751.cd81a8″,”type”:”server-state-changed”,”z”:”ca13c281.83306″,”name”:”PIR ON”,”server”:”22f5da40.d3e236″,”version”:1,”exposeToHomeAssistant”:false,”haConfig”:[{“property”:”name”,”value”:””},{“property”:”icon”,”value”:””}],”entityidfilter”:”binary_sensor.pir_side”,”entityidfiltertype”:”exact”,”outputinitially”:false,”state_type”:”str”,”haltifstate”:”on”,”halt_if_type”:”str”,”halt_if_compare”:”is”,”outputs”:2,”output_only_on_state_change”:true,”for”:0,”forType”:”num”,”forUnits”:”minutes”,”ignorePrevStateNull”:false,”ignorePrevStateUnknown”:false,”ignorePrevStateUnavailable”:false,”ignoreCurrentStateUnknown”:false,”ignoreCurrentStateUnavailable”:false,”x”:260,”y”:220,”wires”:[[“f8fcfd46.0dc1e”,”9f04729e.146c9″],[“70b61c12.227fd4″,”f8fcfd46.0dc1e”]]},{“id”:”9a6b0b92.a98808″,”type”:”api-call-service”,”z”:”ca13c281.83306″,”name”:”Light ON”,”server”:”22f5da40.d3e236″,”version”:1,”debugenabled”:false,”service_domain”:”switch”,”service”:”turn_on”,”entityId”:”switch.boot_room_light”,”data”:””,”dataType”:”json”,”mergecontext”:””,”output_location”:””,”output_location_type”:”none”,”mustacheAltTags”:false,”x”:720,”y”:140,”wires”:[[“44550d9f.81f824”]]},{“id”:”a49fe551.142738″,”type”:”api-call-service”,”z”:”ca13c281.83306″,”name”:”Light OFF”,”server”:”22f5da40.d3e236″,”version”:1,”debugenabled”:false,”service_domain”:”switch”,”service”:”turn_off”,”entityId”:”switch.boot_room_light”,”data”:””,”dataType”:”json”,”mergecontext”:””,”output_location”:””,”output_location_type”:”none”,”mustacheAltTags”:false,”x”:800,”y”:260,”wires”:[[]]},{“id”:”70b61c12.227fd4″,”type”:”delay”,”z”:”ca13c281.83306″,”name”:”10 Sec Delay”,”pauseType”:”delay”,”timeout”:”10″,”timeoutUnits”:”seconds”,”rate”:”1″,”nbRateUnits”:”1″,”rateUnits”:”second”,”randomFirst”:”1″,”randomLast”:”5″,”randomUnits”:”seconds”,”drop”:false,”x”:630,”y”:260,”wires”:[[“a49fe551.142738”]]},{“id”:”69c09f2e.db723″,”type”:”inject”,”z”:”ca13c281.83306″,”name”:””,”props”:[{“p”:”payload”},{“p”:”topic”,”vt”:”str”}],”repeat”:””,”crontab”:””,”once”:false,”onceDelay”:0.1,”topic”:””,”payload”:””,”payloadType”:”date”,”x”:250,”y”:120,”wires”:[[]]},{“id”:”f8fcfd46.0dc1e”,”type”:”debug”,”z”:”ca13c281.83306″,”name”:”1″,”active”:true,”tosidebar”:true,”console”:false,”tostatus”:false,”complete”:”payload”,”targetType”:”msg”,”statusVal”:””,”statusType”:”auto”,”x”:710,”y”:100,”wires”:[]},{“id”:”eb3f923d.0ae65″,”type”:”debug”,”z”:”ca13c281.83306″,”name”:”2″,”active”:true,”tosidebar”:true,”console”:false,”tostatus”:false,”complete”:”payload”,”targetType”:”msg”,”statusVal”:””,”statusType”:”auto”,”x”:1090,”y”:160,”wires”:[]},{“id”:”44550d9f.81f824″,”type”:”change”,”z”:”ca13c281.83306″,”name”:”Change Message”,”rules”:[{“t”:”set”,”p”:”Boot room light status”,”pt”:”flow”,”to”:”ON”,”tot”:”str”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:910,”y”:200,”wires”:[[“eb3f923d.0ae65”]]},{“id”:”9f04729e.146c9″,”type”:”time-range-switch”,”z”:”ca13c281.83306″,”name”:”Sunset to Sunrise”,”lat”:””,”lon”:””,”startTime”:”sunset”,”endTime”:”sunrise”,”startOffset”:”-1″,”endOffset”:”+1″,”x”:570,”y”:200,”wires”:[[“9a6b0b92.a98808”],[]]},{“id”:”22f5da40.d3e236″,”type”:”server”,”z”:””,”name”:”Home Assistant”,”legacy”:false,”addon”:true,”rejectUnauthorizedCerts”:true,”ha_boolean”:”y|yes|true|on|home|open”,”connectionDelay”:true,”cacheJson”:true}]
Haven’t got it installed yet? Don’t Panic…
Music: https://www.bensound.com
Video: Free Stock Video Footage by Videezy!