I am still pretty new to all of this so maybe others will have some suggestions. If not maybe someone else will find some use for this string of mine.
I made it because my girlfriend likes to meditate at night before we go to sleep and I know the more things I make that benefit her the more likely she will tolerate the other ridiculous things I make!
She mostly interacts with the smart house through Alexa. So I am using the Amazon Echo Hub node linked out to a node called “Amazon Alexa” then I link into that node to connect an “Amazon Device” I named “Bedroom Meditation”. This then turns off the other two lights in the room, runs a HA script to turn the volume to 3 and start playing relaxing ambient sounds, and then begins a loop. The loop consists of a call service to turn on the main light in the room to 35% and a dark blue color then transitions for 5 seconds into another call service node for the same like that has it transition over 5 seconds to 18% and a dark orange color. Then it keeps doing this until she asks that Alexa turn off bedroom meditation at which point it turns the lights to its normal setting and stops the sounds.
[{"id":"ae620e99d3748a21","type":"tab","label":"Experimental","disabled":false,"info":"","env":[]},{"id":"f0f3bb49b2f03372","type":"api-call-service","z":"ae620e99d3748a21","name":"Upper Threshold","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.bedroom_ceiling_light"],"data":"{\"brightness_pct\":35, \"xy_color\":[0.167,0.04], \"transition\":5}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":190,"y":340,"wires":[["68061dd697e187d0"]]},{"id":"02597e2d87cc77e5","type":"api-call-service","z":"ae620e99d3748a21","name":"Lower Threshold","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.bedroom_ceiling_light"],"data":"{\"brightness_pct\":18, \"xy_color\":[0.5921,0.3830], \"transition\":5}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":550,"y":340,"wires":[["6b3632d240548ffa"]]},{"id":"c8bacb2274cf9154","type":"change","z":"ae620e99d3748a21","name":"RESET","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":365,"y":340,"wires":[["6b3632d240548ffa","68061dd697e187d0"]],"icon":"node-red/timer.svg","l":false},{"id":"68061dd697e187d0","type":"delay","z":"ae620e99d3748a21","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":360,"y":280,"wires":[["02597e2d87cc77e5"]]},{"id":"6b3632d240548ffa","type":"delay","z":"ae620e99d3748a21","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":360,"y":420,"wires":[["f0f3bb49b2f03372"]]},{"id":"dd3a99809601df9b","type":"link in","z":"ae620e99d3748a21","name":"","links":["88da6274e3c39b0d"],"x":35,"y":180,"wires":[["1de01bf6e029ed0b"]]},{"id":"1de01bf6e029ed0b","type":"amazon-echo-device","z":"ae620e99d3748a21","name":"Bedroom Meditation","topic":"","x":180,"y":180,"wires":[["5d58cd91adc1c98c"]]},{"id":"5d58cd91adc1c98c","type":"switch","z":"ae620e99d3748a21","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":180,"wires":[["f0f3bb49b2f03372","563fa30fbbad3712","91004cb1ed31b71a"],["c8bacb2274cf9154","f277e82bc826cbbb","58ecac6c0d1c6fd5"]]},{"id":"f277e82bc826cbbb","type":"api-call-service","z":"ae620e99d3748a21","name":"Turn Bedroom Lights to Normal","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.bedroom_ceiling_light"],"data":"{\"brightness_pct\":20, \"color_temp\":480, \"transition\":5}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":630,"y":200,"wires":[[]]},{"id":"563fa30fbbad3712","type":"api-call-service","z":"ae620e99d3748a21","name":"Turn Off Other Bedroom Lights","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.bedside_light","light.floor_light_led"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":630,"y":140,"wires":[[]]},{"id":"91004cb1ed31b71a","type":"api-call-service","z":"ae620e99d3748a21","name":"Meditation Sounds","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"script","service":"meditation_music","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":100,"wires":[[]]},{"id":"58ecac6c0d1c6fd5","type":"api-call-service","z":"ae620e99d3748a21","name":"Stop Sounds","server":"c316b3fb.8c0c7","version":5,"debugenabled":false,"domain":"script","service":"turn_off_sound","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":570,"y":260,"wires":[[]]},{"id":"c316b3fb.8c0c7","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]