Back to Browse

Node-Red in Docker with Home Assistant - PART 2!!

2.0K views
Jul 20, 2020
11:02

If you like what you see..... buy me a coffee! https://www.buymeacoffee.com/c1THy8VNA Visit my Teespring store front as well..... https://teespring.com/stores/burns-home-automation This video is a follow-up video to my tutorial on setting up Node-Red in Docker. Mainly just to show you some different example flows. (0:00) Intro (1:34) Example 1 - Turning on lights in the morning and off at night! [{"id":"13f44fc4.8b6a5","type":"bigtimer","z":"d38941ce.447a3","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Big Timer","comment":"","lat":"","lon":"","starttime":"360","endtime":"1290","starttime2":0,"endtime2":0,"startoff":0,"endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"Lights On","outtext2":"Lights Off","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":true,"odd":false,"even":false,"x":120,"y":640,"wires":[["3e675307.35763c"],[],[]]}] (3:29) Example 2 - Send notification if door has been opened! [{"id":"c1124841.492eb8","type":"api-call-service","z":"8f15f7a2.4db358","name":"SIDE DOOR OPENED","server":"836771f9.bc5c8","version":1,"debugenabled":false,"service_domain":"notify","service":"office_lannouncer","entityId":"","data":"{\"message\":\"SIDE DOOR OPENED!\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":680,"y":80,"wires":[[]]},{"id":"fa77b3ec.f9591","type":"trigger","z":"8f15f7a2.4db358","name":"OPEN","op1":"on","op2":"0","op1type":"str","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":390,"y":80,"wires":[["c1124841.492eb8"]]},{"id":"e2830b56.d0bc68","type":"server-state-changed","z":"8f15f7a2.4db358","name":"SIDE DOOR CONTACT","server":"836771f9.bc5c8","version":1,"exposeToHomeAssistant":true,"haConfig":[{"property":"name","value":"Side Door Notification"},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.side_door_contact","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":160,"y":80,"wires":[["fa77b3ec.f9591"]]},{"id":"836771f9.bc5c8","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}] (6:12) Example 3 - At night, turn lights on if a door has been opened! [{"id":"bb04f777.77d708","type":"time-range-switch","z":"d38941ce.447a3","name":"","lat":"","lon":"","startTime":"sunset","endTime":"sunrise","startOffset":0,"endOffset":0,"x":440,"y":1120,"wires":[["27d958b0.7da978"],[]]}] (7:39) Example 4 - Send notification if door has been left open! [{"id":"db41342f.0c28f8","type":"trigger","z":"8f15f7a2.4db358","name":"OPEN FOR 10 MINS","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"10","extend":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":440,"y":540,"wires":[["f20ec64c.01bfd8","d89193e3.e458a","62b65490.ef722c"]]},{"id":"f20ec64c.01bfd8","type":"api-call-service","z":"8f15f7a2.4db358","name":"SIDE DOOR LEFT OPEN","server":"836771f9.bc5c8","version":1,"debugenabled":false,"service_domain":"notify","service":"ios_adrians_iphone","entityId":"","data":"{\"message\":\"Side door left open!\",\"data\":{\"push\":{\"category\":\"camera\"},\"entity_id\":\"camera.carport\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":720,"y":500,"wires":[[]]},{"id":"836771f9.bc5c8","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}] If you like to video, please subscribe to my channel. If you have any questions or comments, hit me up in the comments below. As always, if there are any videos out there you would like to see that I don't already have out there, let me know in the comments as well and I will see what I can do.

Download

0 formats

No download links available.

Node-Red in Docker with Home Assistant - PART 2!! | NatokHD