I don't remember if it was here or elsewhere, but I saw something on these forums about setting the porch light to a different color for the holiday season.
I wanted a routine to set the color to red/green every 15 minutes, and to switch between the two of them. I set a boolean in the flow representing the color, and switch between red and green. I also wanted it to behave during the night so it's not too flashy all night long. The rest of the night the bulb gets its color assigned elsewhere.
Here's what I came up with. Enjoy!
[{"id":"b8dd13b1.797cb","type":"change","z":"f9337f21.0eab78","name":"Turn Off","rules":[{"t":"set","p":"command","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":2380,"wires":[["89753df20ca7d578"]]},{"id":"5c9841f.19b74c","type":"change","z":"f9337f21.0eab78","name":"Turn On","rules":[{"t":"set","p":"command","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":2340,"wires":[["89753df20ca7d578"]]},{"id":"1fbcdc78.00e81c","type":"comment","z":"f9337f21.0eab78","name":"Porch light","info":"","x":100,"y":2140,"wires":[]},{"id":"30aade80.91cb42","type":"within-time-switch","z":"f9337f21.0eab78","name":"sunset - sunrise","positionConfig":"96c207ac.2237a8","startTime":"sunsetEnd","startTimeType":"pdsTime","startOffset":0,"startOffsetType":"none","startOffsetMultiplier":60000,"endTime":"sunriseStart","endTimeType":"pdsTime","endOffset":0,"endOffsetType":"none","endOffsetMultiplier":60000,"timeRestrictions":"","timeRestrictionsType":"none","timeDays":"*","timeOnlyOddDays":false,"timeOnlyEvenDays":false,"timeOnlyOddWeeks":false,"timeOnlyEvenWeeks":false,"timeMonths":"*","timedatestart":"","timedateend":"","propertyStart":"","propertyStartType":"none","propertyStartCompare":"true","propertyStartThreshold":"","propertyStartThresholdType":"num","startTimeAlt":"","startTimeAltType":"entered","startOffsetAlt":0,"startOffsetAltType":"none","startOffsetAltMultiplier":60000,"propertyEnd":"","propertyEndType":"none","propertyEndCompare":"true","propertyEndThreshold":"","propertyEndThresholdType":"num","endTimeAlt":"","endTimeAltType":"entered","endOffsetAlt":0,"endOffsetAltType":"none","endOffsetAltMultiplier":60000,"withinTimeValue":"","withinTimeValueType":"msgInput","outOfTimeValue":"","outOfTimeValueType":"msgInput","tsCompare":"0","x":240,"y":2360,"wires":[["5c9841f.19b74c"],["b8dd13b1.797cb"]]},{"id":"76fddf4.66e0da","type":"inject","z":"f9337f21.0eab78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":95,"y":2360,"wires":[["30aade80.91cb42"]],"l":false},{"id":"89ce2107.6a1858","type":"link in","z":"f9337f21.0eab78","name":"","links":["2837495c.ae2176"],"x":235,"y":2320,"wires":[["5c9841f.19b74c"]]},{"id":"35f56d8f.e1d64a","type":"link in","z":"f9337f21.0eab78","name":"","links":["4e636188.7f332"],"x":235,"y":2400,"wires":[["b8dd13b1.797cb"]]},{"id":"ba0630734df9353f","type":"hubitat command","z":"f9337f21.0eab78","deviceLabel":"Porch Bulb","name":"","server":"252d4ef4.c14b6a","deviceId":"66","command":"","commandArgs":"","x":690,"y":2360,"wires":[[]]},{"id":"2c07bcd4127d212c","type":"inject","z":"f9337f21.0eab78","name":"Every 15 minutes","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"900","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":2240,"wires":[["ed59489e0b1aba05"]]},{"id":"89753df20ca7d578","type":"delay","z":"f9337f21.0eab78","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":575,"y":2360,"wires":[["ba0630734df9353f"]],"l":false},{"id":"ee0bd27a6442d9c0","type":"change","z":"f9337f21.0eab78","name":"is_red := false","rules":[{"t":"set","p":"is_red","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":2220,"wires":[["42ed4e7930637962"]]},{"id":"c63d476daa70e7fc","type":"switch","z":"f9337f21.0eab78","name":"is_red?","property":"is_red","propertyType":"flow","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":620,"y":2240,"wires":[["ee0bd27a6442d9c0"],["1657120c75a44639"]]},{"id":"1657120c75a44639","type":"change","z":"f9337f21.0eab78","name":"is_red := true","rules":[{"t":"set","p":"is_red","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":2260,"wires":[["4505442f74bfd3ab"]]},{"id":"42ed4e7930637962","type":"change","z":"f9337f21.0eab78","name":"Make Green","rules":[{"t":"set","p":"arguments","pt":"msg","to":"{\"hue\": 31, \"saturation\": 55, \"level\": 100}","tot":"json"},{"t":"set","p":"arguments","pt":"msg","to":"$string(msg.arguments)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":2220,"wires":[["338150d80eb38946"]]},{"id":"4505442f74bfd3ab","type":"change","z":"f9337f21.0eab78","name":"Make Red","rules":[{"t":"set","p":"arguments","pt":"msg","to":"{\"hue\": 1, \"saturation\": 64, \"level\": 100}","tot":"json"},{"t":"set","p":"arguments","pt":"msg","to":"$string(msg.arguments)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":2260,"wires":[["338150d80eb38946"]]},{"id":"338150d80eb38946","type":"delay","z":"f9337f21.0eab78","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1115,"y":2240,"wires":[["4abace46d88d5d82"]],"l":false},{"id":"4abace46d88d5d82","type":"hubitat command","z":"f9337f21.0eab78","deviceLabel":"Porch Bulb","name":"","server":"252d4ef4.c14b6a","deviceId":"66","command":"setColor","commandArgs":"","x":1230,"y":2240,"wires":[[]]},{"id":"7bbc68f86666af49","type":"inject","z":"f9337f21.0eab78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":895,"y":2160,"wires":[["42ed4e7930637962"]],"l":false},{"id":"23abbe03a5af6625","type":"inject","z":"f9337f21.0eab78","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":895,"y":2320,"wires":[["4505442f74bfd3ab"]],"l":false},{"id":"ed59489e0b1aba05","type":"within-time-switch","z":"f9337f21.0eab78","name":"","positionConfig":"96c207ac.2237a8","startTime":"sunsetEnd","startTimeType":"pdsTime","startOffset":0,"startOffsetType":"none","startOffsetMultiplier":60000,"endTime":"23:00","endTimeType":"entered","endOffset":0,"endOffsetType":"none","endOffsetMultiplier":60000,"timeRestrictions":"","timeRestrictionsType":"none","timeDays":"*","timeOnlyOddDays":false,"timeOnlyEvenDays":false,"timeOnlyOddWeeks":false,"timeOnlyEvenWeeks":false,"timeMonths":"*","timedatestart":"","timedateend":"","propertyStart":"","propertyStartType":"none","propertyStartCompare":"true","propertyStartThreshold":"","propertyStartThresholdType":"num","startTimeAlt":"","startTimeAltType":"entered","startOffsetAlt":0,"startOffsetAltType":"none","startOffsetAltMultiplier":60000,"propertyEnd":"","propertyEndType":"none","propertyEndCompare":"true","propertyEndThreshold":"","propertyEndThresholdType":"num","endTimeAlt":"","endTimeAltType":"entered","endOffsetAlt":0,"endOffsetAltType":"none","endOffsetAltMultiplier":60000,"withinTimeValue":"","withinTimeValueType":"msgInput","outOfTimeValue":"","outOfTimeValueType":"msgInput","tsCompare":"0","x":390,"y":2240,"wires":[["c63d476daa70e7fc"],[]]},{"id":"96c207ac.2237a8","type":"position-config","name":"Home","isValide":"true","longitude":"0","latitude":"0","angleType":"deg","timeZoneOffset":"99","timeZoneDST":"0","stateTimeFormat":"3","stateDateFormat":"12"},{"id":"252d4ef4.c14b6a","type":"hubitat config","name":"Hubitat","usetls":false,"host":"172.16.0.5","port":"80","appId":"14","nodeRedServer":"http://172.16.0.25:1880","webhookPath":"/hubitat/webhook","autoRefresh":false,"useWebsocket":false,"colorEnabled":false,"color":"#000000"}]