Node Red Flows Acting Up

I recently migrated my automations over to Node Red and everything has been fine. Recently I’ve noticed that some of my automations have not been working properly. I added some debug nodes but they haven’t been that helpful. According to the debug messages the Flows trigger but some of the actual lights don’t set to what they should.

I’m not quite sure how to trouble shoot this so any help would be greatly appreciated.

Always difficult to help without the actual flow.

can you post it like this

[{“id”:“6b4487d8.226ee”,“type”:“tab”,“label”:“Sunset”,“disabled”:false,“info”:""},{“id”:“f9692560.79adf”,“type”:“bigtimer”,“z”:“6b4487d8.226ee”,“outtopic”:"",“outpayload1”:“on”,“outpayload2”:“off”,“name”:“Sunset”,“comment”:"",“lat”:"",“lon”:"",“starttime”:“5004”,“endtime”:“5003”,“starttime2”:“0”,“endtime2”:0,“startoff”:"-30",“endoff”:0,“startoff2”:0,“endoff2”:0,“offs”:0,“outtext1”:"",“outtext2”:"",“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”:100,“y”:60,“wires”:[[“b8473289.e22dc8”],[],[]]},{“id”:“ca282a3.389b858”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Office Lights On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“group.office_lights”,“data”:"{“brightness_pct”:“50”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:760,“y”:460,“wires”:[[“196238d3.b90c37”]]},{“id”:“6549f101.866d1”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Den Lights Off”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_off”,“entityId”:“group.den_lights”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:760,“y”:580,“wires”:[[“a4c59d32.037c6”]]},{“id”:“2d61d861.d5e39”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Gym Lights Off”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_off”,“entityId”:“light.gym_2, light.gym_3”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:760,“y”:640,“wires”:[[“5b2a9426.f2894c”]]},{“id”:“31a1f5a1.64236a”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Family Lights On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“group.family_room_lights”,“data”:"{“brightness_pct”:“20”,“kelvin”:“2700”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:770,“y”:160,“wires”:[[“d8c65a4f.814068”]]},{“id”:“b50e0504.b6f098”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Hallway Lamp On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“switch”,“service”:“turn_on”,“entityId”:“switch.front_entrance”,“data”:"",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:770,“y”:40,“wires”:[[“29a75031.31841”]]},{“id”:“f4bb3b80.f52168”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Living Room Window On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“light.living_room_window”,“data”:"{“brightness_pct”:“25”,“kelvin”:“2700”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:790,“y”:100,“wires”:[[“9f7333ad.f9316”]]},{“id”:“a8ce51dd.acbb”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Hallway 2 On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“light.hallway_2”,“data”:"{“brightness_pct”:“20”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:750,“y”:220,“wires”:[[“bbce53f9.3a659”]]},{“id”:“f7ea17bd.e834e8”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Upstairs Lamp On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“light.upstairs_lamp”,“data”:"{“brightness_pct”:“10”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:770,“y”:280,“wires”:[[“ee1db7ce.3e00b8”]]},{“id”:“d5a0afdf.b7c29”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“MB Lights On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“group.master_bedroom_lights”,“data”:"{“brightness_pct”:“5”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:760,“y”:340,“wires”:[[“3d3d16c4.8d84da”]]},{“id”:“6b8fce45.55a468”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Gym 1 On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“light.gym_1”,“data”:"{“brightness_pct”:“50”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:750,“y”:400,“wires”:[[“4d36213c.e09d3”]]},{“id”:“67f3c020.9b89d”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Bathroom Lights On”,“server”:“e6065a93.b894e8”,“version”:1,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“group.bathroom_lights”,“data”:"{“brightness_pct”:“5”,“kelvin”:“3000”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:780,“y”:520,“wires”:[[“25739ae3.29dea6”]]},{“id”:“b8473289.e22dc8”,“type”:“switch”,“z”:“6b4487d8.226ee”,“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”:420,“y”:60,“wires”:[[“b50e0504.b6f098”,“f4bb3b80.f52168”,“31a1f5a1.64236a”,“a8ce51dd.acbb”,“f7ea17bd.e834e8”,“d5a0afdf.b7c29”,“6b8fce45.55a468”,“ca282a3.389b858”,“67f3c020.9b89d”,“6549f101.866d1”,“2d61d861.d5e39”,“978e65be.42c9a”,“35cfbbfe.931024”],[]]},{“id”:“978e65be.42c9a”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Small Bedroom Lamp On”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“light”,“service”:“turn_on”,“entityId”:“light.small_bedroom_lamp”,“data”:"{“brightness_pct”:“20”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:790,“y”:700,“wires”:[[“148c56e.56b41a9”]]},{“id”:“35cfbbfe.931024”,“type”:“api-call-service”,“z”:“6b4487d8.226ee”,“name”:“Notification”,“server”:“e6065a93.b894e8”,“version”:“1”,“debugenabled”:false,“service_domain”:“notify”,“service”:“mobile_app_sm_g965w”,“entityId”:"",“data”:"{“title”:“Home Assistant”,“message”:“Sundet triggered”}",“dataType”:“json”,“mergecontext”:"",“output_location”:"",“output_location_type”:“none”,“mustacheAltTags”:false,“x”:750,“y”:760,“wires”:[[“bc1a5dcd.3429”]]},{“id”:“29a75031.31841”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1045,“y”:25,“wires”:[]},{“id”:“9f7333ad.f9316”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1020,“y”:100,“wires”:[]},{“id”:“d8c65a4f.814068”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1020,“y”:150,“wires”:[]},{“id”:“bbce53f9.3a659”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1020,“y”:200,“wires”:[]},{“id”:“ee1db7ce.3e00b8”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1006,“y”:278,“wires”:[]},{“id”:“3d3d16c4.8d84da”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:993,“y”:336,“wires”:[]},{“id”:“4d36213c.e09d3”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1002,“y”:400,“wires”:[]},{“id”:“196238d3.b90c37”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:990,“y”:460,“wires”:[]},{“id”:“25739ae3.29dea6”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1007,“y”:518,“wires”:[]},{“id”:“a4c59d32.037c6”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1023,“y”:574,“wires”:[]},{“id”:“5b2a9426.f2894c”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1006,“y”:640,“wires”:[]},{“id”:“148c56e.56b41a9”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1002,“y”:699,“wires”:[]},{“id”:“bc1a5dcd.3429”,“type”:“debug”,“z”:“6b4487d8.226ee”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:1018,“y”:757,“wires”:[]},{“id”:“e6065a93.b894e8”,“type”:“server”,“z”:"",“name”:“Home Assistant”}]

How do I do that? Sorry if this is a stupid question

nothing is a stupid question
use this button
image

[{"id":"a2edb40c.429bb","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"303da828.13ea18","type":"bigtimer","z":"a2edb40c.429bb","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Sunset","comment":"","lat":"","lon":"","starttime":"5004","endtime":"5003","starttime2":"0","endtime2":0,"startoff":"-30","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"","outtext2":"","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":140,"y":80,"wires":[["365fd03a.f831d"],[],[]]},{"id":"89b9c71e.9fdc78","type":"api-call-service","z":"a2edb40c.429bb","name":"Office Lights On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.office_lights","data":"{\"brightness_pct\":\"50\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":480,"wires":[["4048ee71.5f48d8"]]},{"id":"448ffba3.0e47dc","type":"api-call-service","z":"a2edb40c.429bb","name":"Den Lights Off","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"group.den_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":600,"wires":[["74c3e702.5f81b8"]]},{"id":"a8ff8f02.d715c8","type":"api-call-service","z":"a2edb40c.429bb","name":"Gym Lights Off","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.gym_2, light.gym_3","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":660,"wires":[["26f74c4d.98d9ac"]]},{"id":"36e9300d.ffadf8","type":"api-call-service","z":"a2edb40c.429bb","name":"Family Lights On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.family_room_lights","data":"{\"brightness_pct\":\"20\",\"kelvin\":\"2700\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":180,"wires":[["cf498b39.9534d"]]},{"id":"e67f867.20b77f8","type":"api-call-service","z":"a2edb40c.429bb","name":"Hallway Lamp On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.front_entrance","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":60,"wires":[["7d6971c5.5df78"]]},{"id":"d8644096.d8dd68","type":"api-call-service","z":"a2edb40c.429bb","name":"Living Room Window On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_window","data":"{\"brightness_pct\":\"25\",\"kelvin\":\"2700\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":120,"wires":[["316c0008.579528"]]},{"id":"58c5741e.fc1a54","type":"api-call-service","z":"a2edb40c.429bb","name":"Hallway 2 On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.hallway_2","data":"{\"brightness_pct\":\"20\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":240,"wires":[["9aadabe6.4ee35"]]},{"id":"3a12ee0d.e811b2","type":"api-call-service","z":"a2edb40c.429bb","name":"Upstairs Lamp On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.upstairs_lamp","data":"{\"brightness_pct\":\"10\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":300,"wires":[["3658bce6.cbf28c"]]},{"id":"ca514544.fdb2d","type":"api-call-service","z":"a2edb40c.429bb","name":"MB Lights On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.master_bedroom_lights","data":"{\"brightness_pct\":\"5\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":360,"wires":[["a7a07df8.b394a"]]},{"id":"6194635b.10d3f4","type":"api-call-service","z":"a2edb40c.429bb","name":"Gym 1 On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.gym_1","data":"{\"brightness_pct\":\"50\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":420,"wires":[["1ea44b92.e2a064"]]},{"id":"3521d175.84a4f6","type":"api-call-service","z":"a2edb40c.429bb","name":"Bathroom Lights On","server":"e6065a93.b894e8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.bathroom_lights","data":"{\"brightness_pct\":\"5\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":540,"wires":[["dc813022.f3543"]]},{"id":"365fd03a.f831d","type":"switch","z":"a2edb40c.429bb","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":460,"y":80,"wires":[["e67f867.20b77f8","d8644096.d8dd68","36e9300d.ffadf8","58c5741e.fc1a54","3a12ee0d.e811b2","ca514544.fdb2d","6194635b.10d3f4","89b9c71e.9fdc78","3521d175.84a4f6","448ffba3.0e47dc","a8ff8f02.d715c8","b52008c8.154ea8","dd5142e2.6a46d"],[]]},{"id":"b52008c8.154ea8","type":"api-call-service","z":"a2edb40c.429bb","name":"Small Bedroom Lamp On","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.small_bedroom_lamp","data":"{\"brightness_pct\":\"20\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":720,"wires":[["359a9b6e.2e4844"]]},{"id":"dd5142e2.6a46d","type":"api-call-service","z":"a2edb40c.429bb","name":"Notification","server":"e6065a93.b894e8","version":"1","debugenabled":false,"service_domain":"notify","service":"mobile_app_sm_g965w","entityId":"","data":"{\"title\":\"Home Assistant\",\"message\":\"Sundet triggered\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":780,"wires":[["f609f810.5dd798"]]},{"id":"7d6971c5.5df78","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1085,"y":45,"wires":[]},{"id":"316c0008.579528","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":120,"wires":[]},{"id":"cf498b39.9534d","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":170,"wires":[]},{"id":"9aadabe6.4ee35","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":220,"wires":[]},{"id":"3658bce6.cbf28c","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1046,"y":298,"wires":[]},{"id":"a7a07df8.b394a","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1033,"y":356,"wires":[]},{"id":"1ea44b92.e2a064","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1042,"y":420,"wires":[]},{"id":"4048ee71.5f48d8","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1030,"y":480,"wires":[]},{"id":"dc813022.f3543","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1047,"y":538,"wires":[]},{"id":"74c3e702.5f81b8","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1063,"y":594,"wires":[]},{"id":"26f74c4d.98d9ac","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1046,"y":660,"wires":[]},{"id":"359a9b6e.2e4844","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1042,"y":719,"wires":[]},{"id":"f609f810.5dd798","type":"debug","z":"a2edb40c.429bb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1058,"y":777,"wires":[]},{"id":"e6065a93.b894e8","type":"server","z":"","name":"Home Assistant"}]

Thank you,

Appreciate your help

arent there two lights suppose to turn off at sunrise

[{"id":"feb8bdd6.9c6aa","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"52ad09e2.eab9a8","type":"bigtimer","z":"feb8bdd6.9c6aa","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Sunset","comment":"","lat":"","lon":"","starttime":"5004","endtime":"5003","starttime2":"0","endtime2":0,"startoff":"-30","endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"","outtext2":"","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":140,"y":80,"wires":[["5a0a9c7c.0b0384"],[],[]]},{"id":"d4df0db7.1dcb5","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Office Lights On","server":"5d0b56a4.5bc248","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.office_lights","data":"{\"brightness_pct\":\"50\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":480,"wires":[["499113eb.1d075c"]]},{"id":"debc56b1.bd6778","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Den Lights Off","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"group.den_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":600,"y":840,"wires":[["5ca21fb7.7ca64"]]},{"id":"20c59056.2cd71","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Gym Lights Off","server":"ef392d83.86c5a","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.gym_2, light.gym_3","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":940,"wires":[["4cf2f7bc.d1a2b8"]]},{"id":"ca076069.33ac1","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Family Lights On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.family_room_lights","data":"{\"brightness_pct\":\"20\",\"kelvin\":\"2700\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":180,"wires":[["2f95a276.415a7e"]]},{"id":"636da513.fad34c","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Hallway Lamp On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.front_entrance","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":60,"wires":[["e124b918.9fce18"]]},{"id":"37bf293e.73b2a6","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Living Room Window On","server":"5d0b56a4.5bc248","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_window","data":"{\"brightness_pct\":\"25\",\"kelvin\":\"2700\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":120,"wires":[["f40969d4.8be198"]]},{"id":"e04c0969.5d1238","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Hallway 2 On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.hallway_2","data":"{\"brightness_pct\":\"20\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":240,"wires":[["901d4697.73a498"]]},{"id":"cb9bf839.05cb58","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Upstairs Lamp On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.upstairs_lamp","data":"{\"brightness_pct\":\"10\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":300,"wires":[["623d4bbc.09a424"]]},{"id":"b474653f.928ef8","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"MB Lights On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.master_bedroom_lights","data":"{\"brightness_pct\":\"5\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":360,"wires":[["e528042e.2bb808"]]},{"id":"e4d3ab36.934028","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Gym 1 On","server":"5d0b56a4.5bc248","version":"1","debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.gym_1","data":"{\"brightness_pct\":\"50\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":420,"wires":[["598a05bd.e4892c"]]},{"id":"836b83a8.156","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Bathroom Lights On","server":"5d0b56a4.5bc248","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"group.bathroom_lights","data":"{\"brightness_pct\":\"5\",\"kelvin\":\"3000\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":540,"wires":[["ce5febbc.bb8bf8"]]},{"id":"5a0a9c7c.0b0384","type":"switch","z":"feb8bdd6.9c6aa","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":400,"y":120,"wires":[["636da513.fad34c","37bf293e.73b2a6","ca076069.33ac1","e04c0969.5d1238","cb9bf839.05cb58","b474653f.928ef8","e4d3ab36.934028","d4df0db7.1dcb5","836b83a8.156","9276dc96.9ce8f","ff122a6e.dd0b08"],["debc56b1.bd6778","20c59056.2cd71"]]},{"id":"9276dc96.9ce8f","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Small Bedroom Lamp On","server":"5d0b56a4.5bc248","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.small_bedroom_lamp","data":"{\"brightness_pct\":\"20\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":600,"wires":[["37999c50.5b5f54"]]},{"id":"ff122a6e.dd0b08","type":"api-call-service","z":"feb8bdd6.9c6aa","name":"Notification","server":"5d0b56a4.5bc248","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_sm_g965w","entityId":"","data":"{\"title\":\"Home Assistant\",\"message\":\"Sundet triggered\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":640,"wires":[["b287c194.26a7f"]]},{"id":"e124b918.9fce18","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1085,"y":45,"wires":[]},{"id":"f40969d4.8be198","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":120,"wires":[]},{"id":"2f95a276.415a7e","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":170,"wires":[]},{"id":"901d4697.73a498","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1060,"y":220,"wires":[]},{"id":"623d4bbc.09a424","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1046,"y":298,"wires":[]},{"id":"e528042e.2bb808","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1033,"y":356,"wires":[]},{"id":"598a05bd.e4892c","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1042,"y":420,"wires":[]},{"id":"499113eb.1d075c","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1030,"y":480,"wires":[]},{"id":"ce5febbc.bb8bf8","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1047,"y":538,"wires":[]},{"id":"5ca21fb7.7ca64","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1050,"y":880,"wires":[]},{"id":"4cf2f7bc.d1a2b8","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1070,"y":980,"wires":[]},{"id":"37999c50.5b5f54","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1050,"y":600,"wires":[]},{"id":"b287c194.26a7f","type":"debug","z":"feb8bdd6.9c6aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1050,"y":660,"wires":[]},{"id":"5d0b56a4.5bc248","type":"server","z":"","name":"Home Assistant"},{"id":"ef392d83.86c5a","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Yes that is correct that some light turn off,

I have certain lights in the basement that come on during the day with motion, I have other lights trigger at sunset so I turn off these lights as they are not needed.

I just sat and watched the actual sunset trigger and in Node Red everything appeared to trigger but in reality certain lights did not

Well there is nothing wrong with the flow
The issue would be with the groups.

I was actually thinking of making a “call service” for each light instead of using groups. I will try the sunset flow and see what happens

I use a get entities to output an array and loop through the array turning off lights.

Thank you,

I will have to google how to do that. One thing I did yesterday was clear all the data from my browser (Firefox) I don’t know if that is necessary but I did a fairly big Node Red upgrade a while ago

[
    {
        "id": "7a0c3f1b.7cd44",
        "type": "ha-get-entities",
        "z": "8573267d.278568",
        "server": "d86c8a3e.cc7138",
        "name": "Lights ON?",
        "rules": [
            {
                "property": "entity_id",
                "logic": "includes",
                "value": "light.back_porch,light.trash,light.garage,light.office_lamp,light.floor_lamp,light.master_bedroom_sconces,
                "valueType": "str"
            },
            {
                "property": "state",
                "logic": "is",
                "value": "on",
                "valueType": "str"
            }
        ],
        "output_type": "array",
        "output_empty_results": false,
        "output_location_type": "msg",
        "output_location": "array",
        "output_results_count": 1,
        "x": 330,
        "y": 200,
        "wires": [
            [
                "7c54abfb.20b884"
            ]
        ]
    },
    {
        "id": "6d3abbd6.38a7c4",
        "type": "api-call-service",
        "z": "8573267d.278568",
        "name": "Turn OFF Lights",
        "server": "d86c8a3e.cc7138",
        "version": 1,
        "debugenabled": false,
        "service_domain": "light",
        "service": "turn_off",
        "entityId": "",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "payload",
        "output_location_type": "msg",
        "mustacheAltTags": false,
        "x": 1080,
        "y": 200,
        "wires": [
            [
                "a3f129d8.6be608"
            ]
        ]
    },
    {
        "id": "7c54abfb.20b884",
        "type": "array-loop",
        "z": "8573267d.278568",
        "name": "loop",
        "key": "al621c8c2f6dffb4",
        "keyType": "msg",
        "reset": false,
        "resetValue": "value-null",
        "array": "array",
        "arrayType": "msg",
        "x": 470,
        "y": 200,
        "wires": [
            [],
            [
                "173ec964.c5aab7"
            ]
        ]
    },
    {
        "id": "173ec964.c5aab7",
        "type": "delay",
        "z": "8573267d.278568",
        "name": "",
        "pauseType": "random",
        "timeout": "1",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 620,
        "y": 200,
        "wires": [
            [
                "7018b637.75a978",
                "7c54abfb.20b884"
            ]
        ]
    },
    {
        "id": "7018b637.75a978",
        "type": "template",
        "z": "8573267d.278568",
        "name": "set entity",
        "field": "payload.data.entity_id",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{{payload.entity_id}}",
        "output": "str",
        "x": 860,
        "y": 200,
        "wires": [
            [
                "6d3abbd6.38a7c4"
            ]
        ]
    },
    {
        "id": "d86c8a3e.cc7138",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "hassio": false,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true
    }
]

I use a random delay in there to kind of cycle through the lights a little slower than everything shutting down at once. This part of my flow runs when I arm the alarm for ‘home’

1 Like

Could you please paste your code using the image button

I did put some delay timers into my sunset flow just so a million things do not try and fire at the same time. It seems to have been better.

Why? My code is right there.

Yes it is,

Sorry I forgot to mention for some reason it gives me an error when I copied & pasted it from your post above

What error?

What makes you think the code tags will change that?

This is what I get when I try and paste the code

Are you using the copy to clipboard or just highlight and copy?