Wondering if this is a place I could ask for help with my flow

I am not a programmer or coder at all, but managed to cobble together kind of a circadian rhythm color led flow for my home assistant. It works perfectly well for my needs, but it would be nice if the lights wouldn't turn back on after I turn them off in home assistant. how could the time scripts check to see if the light states are on or off before running the time of day script?

[{"id":"bdb5917f.dd32d","type":"tab","label":"Living Area Lights","disabled":false,"info":""},{"id":"59435d23.f24d54","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to red 50%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":50,\"rgb_color\":[255,0,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":912,"y":774,"wires":[[]]},{"id":"b64b9347.a8dc5","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to full spectrum 80%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":80,\"rgb_color\":[255,255,80],\"white_value\":80,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":966.5,"y":321,"wires":[[]]},{"id":"de759e54.104ce8","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute an hour before sunset","comment":"","lat":"43.201","lon":"-86.274","starttime":"5004","endtime":"5003","starttime2":0,"endtime2":"0","startoff":"-60","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":430,"y":360,"wires":[["9ad6e9c6.3d7e4"],[],[]]},{"id":"85b2c738.a0b658","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute at 10 pm","comment":"","lat":"43.201","lon":"-86.274","starttime":"1320","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":370,"y":820,"wires":[["235ad37c.641a3c"],[],[]]},{"id":"41bf7939.5a8708","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to orange 70%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":70,\"rgb_color\":[255,160,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":917,"y":465,"wires":[[]]},{"id":"34805cbc.f9623c","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute at 8 pm","comment":"","lat":"43.201","lon":"-86.274","starttime":"1200","endtime":"5003","starttime2":0,"endtime2":"0","startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":380,"y":520,"wires":[["4d0460bf.3bd29"],[],[]]},{"id":"c1633558.492708","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to red-orange 60%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":60,\"rgb_color\":[255,120,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":943,"y":621,"wires":[[]]},{"id":"726570a3.b0eb9","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute at 9 pm","comment":"","lat":"43.201","lon":"-86.274","starttime":"1260","endtime":"5003","starttime2":0,"endtime2":"0","startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":400,"y":660,"wires":[["e39d4e8c.01c76"],[],[]]},{"id":"152a0540.5b9e23","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to red 35%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":35,\"rgb_color\":[255,0,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":914,"y":919,"wires":[[]]},{"id":"b5d490b7.43a52","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute at 11 pm","comment":"","lat":"43.201","lon":"-86.274","starttime":"1380","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":390,"y":960,"wires":[["6c90718.4a7579"],[],[]]},{"id":"3ab099.53adbf68","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn all interior lights on to full spectrum 80% for 5 seconds","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":80,\"rgb_color\":[255,255,80],\"white_value\":80,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":140,"wires":[[]]},{"id":"f7aac20.adb444","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"setup lights for daytime color","comment":"","lat":"43.201","lon":"-86.274","starttime":"540","endtime":"10001","starttime2":0,"endtime2":"0","startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":false,"odd":false,"even":false,"x":380,"y":160,"wires":[["3ab099.53adbf68","acefe19c.5e1bf8"],[],[]]},{"id":"294557c3.d40548","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn off lights","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":930,"y":200,"wires":[[]]},{"id":"9ad6e9c6.3d7e4","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":656,"y":327,"wires":[["b64b9347.a8dc5"],[]]},{"id":"4d0460bf.3bd29","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":592,"y":475,"wires":[["41bf7939.5a8708"],[]]},{"id":"e39d4e8c.01c76","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":601,"y":633,"wires":[["c1633558.492708"],[]]},{"id":"235ad37c.641a3c","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":600,"y":780,"wires":[["59435d23.f24d54"],[]]},{"id":"6c90718.4a7579","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":597,"y":940,"wires":[["152a0540.5b9e23"],[]]},{"id":"35f7a9f2.8822b6","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn living area lights on to red 20%","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":20,\"rgb_color\":[255,0,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":910,"y":1078,"wires":[[]]},{"id":"5cd35943.6cdb3","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"execute at midnight","comment":"","lat":"43.201","lon":"-86.274","starttime":"0","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":400,"y":1100,"wires":[["5610207a.d9b9e8"],[],[]]},{"id":"5610207a.d9b9e8","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":593,"y":1099,"wires":[["35f7a9f2.8822b6"],[]]},{"id":"acefe19c.5e1bf8","type":"stoptimer","z":"bdb5917f.dd32d","duration":"5","units":"Second","payloadtype":"str","payloadval":"off","name":"","x":700,"y":200,"wires":[[],["294557c3.d40548"]]},{"id":"7946dd78.9b9cc4","type":"server-state-changed","z":"bdb5917f.dd32d","name":"Jeff Home or Away","server":"f9bed8a1.27e738","entityidfilter":"device_tracker.jeff_iphone","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":130,"y":1380,"wires":[["d250b7dd.469f4"]]},{"id":"d250b7dd.469f4","type":"switch","z":"bdb5917f.dd32d","name":"home or away","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"home","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":340,"y":1380,"wires":[[],[]]},{"id":"bb013dc7.8e2bd8","type":"api-call-service","z":"bdb5917f.dd32d","name":"turn off lights","server":"f9bed8a1.27e738","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":870,"y":1260,"wires":[[]]},{"id":"fef70777.85fb","type":"bigtimer","z":"bdb5917f.dd32d","outtopic":"","outpayload1":"on","outpayload2":"off","name":"turn off inside lights at sunrise","comment":"","lat":"43.201","lon":"-86.274","starttime":"0","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"0","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"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,"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":370,"y":1300,"wires":[["e4227ac2.a8d568"],[],[]]},{"id":"e4227ac2.a8d568","type":"switch","z":"bdb5917f.dd32d","name":"on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":600,"y":1280,"wires":[[],["bb013dc7.8e2bd8"]]},{"id":"23fc1f77.713f5","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":130,"y":1300,"wires":[["fef70777.85fb"]]},{"id":"1fae95f2.91f642","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":190,"y":1120,"wires":[["5cd35943.6cdb3"]]},{"id":"6da8e4b8.e55894","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":210,"y":960,"wires":[["b5d490b7.43a52"]]},{"id":"1872b9c2.302dde","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":190,"y":820,"wires":[["85b2c738.a0b658"]]},{"id":"a841032.fdcdc","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":230,"y":660,"wires":[["726570a3.b0eb9"]]},{"id":"d23c870f.28f5c8","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":210,"y":520,"wires":[["34805cbc.f9623c"]]},{"id":"5170cfc6.645df","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":210,"y":360,"wires":[["de759e54.104ce8"]]},{"id":"516fdbba.bdc434","type":"inject","z":"bdb5917f.dd32d","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"auto","payloadType":"str","x":130,"y":160,"wires":[["f7aac20.adb444"]]},{"id":"f9bed8a1.27e738","type":"server","z":"","name":"Home Assistant"}]

I am guessing you are using the node-red-contrib-home-assistant-websocket node, right?
In this case, you can use the "current state" node. It will give you in NR the status of the entity in HA.
Is this what you are looking for?

I am using this... Home Assistant Community Add-on: Node-RED

I was thinking that someone way smarter than me could open the flow, see what I've done and show me a better way to accomplish what I have done and add the ability to check the current state before changing colors or turning the lights on. I'm sure that it's pretty clunky the way I did it.

That's the one!!
I don't use bigtimer as I find it very clunky and not very convenient. I am a big fan of cronplus.
So, using cronplus you could do something like that:

[{"id":"9cd03e59.4c4b1","type":"cronplus","z":"d59703d6.87ebf","name":"9pm","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"9pm","topic":"9pm","payloadType":"default","payload":"","expressionType":"cron","expression":"0 0 21 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":130,"y":4320,"wires":[["e1651eff.a3032"]]},{"id":"5023550a.6d4cdc","type":"api-call-service","z":"d59703d6.87ebf","name":"turn living area lights on to red-orange 60%","server":"80d3896c.db00c8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.dining_room_lights, light.living_room_lights, light.night_lights, light.bed_room_lights","data":"{\"brightness_pct\":60,\"rgb_color\":[255,120,0],\"white_value\":0,\"transition\":10}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":770,"y":4320,"wires":[[]]},{"id":"e1651eff.a3032","type":"api-current-state","z":"d59703d6.87ebf","name":"","server":"80d3896c.db00c8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.dining_room_lights","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":390,"y":4320,"wires":[["5023550a.6d4cdc"],[]]},{"id":"80d3896c.db00c8","type":"server","z":"","name":"Home Assistant"}]

At 9pm check if one light is on, if true, then put them all in red-orange 60%. If you want you can test all light and then put red/orange if all are on. You would need to checj the state of all lights. But, the basic is here.

And you would need one flow at sunrise to switch off (again with cronplus).

wow, I really appreciate that! I will take a look in a couple of hours when I get off of work!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.