I’m looking for some advice on how to better set up my Node-RED flow to make it reusable for multiple lights and sensors. At the moment, it works as-is, but the entire flow has to be duplicated to work properly. I readily admit to being a novice at Node-RED, so something obvious may be escaping me. The full flow is available here: [link to pastebin]. And it looks like this: [screenshot]. The end goal would be for any set of motion sensors, which are dedicated to a specific area of the house with one light, to be able to go through a single flow without the duplication of that flow as I’ve done here. Any takers? Thanks in advance.