The first answer. There are CORE nodes. BUT, they won’t be included in beta… yet. Right now, they are much too powerful to put them out there. You can really break things with them. But we will introduce a “tamed” version in the coming weeks. I do have the perfect example flow for you… I think.
You can write all the functions you want, but you’re not supposed to do heavy coding in NR. I know! It’s crazy!
Ok … so set a global for the trigger. I’m going to use my bed sensor flow.
I feel like you need to understand the logic flows first, so you should do it with the nodes and not functions. DON’T get me wrong, functions make things look pretty, but you don’t have to use them. I made a specific effort to do this flow without function nodes just to prove that the logic will still work and function just as well. (pun intended)
Bed sensor:
First, I save my triggers as globals saved to FILE
When changes happen these sensors trigger out from my globals page to various automations. Sometimes they trigger out through a link out node. Saves time and space and allows you to have only one trigger or setting to change to update your flows if you make changes. it’s a nice feature. I’ll try to write something up for them at some point.
After the global is created link it out to your flow. Here is an example of global area for master bedroom. I have a dedicated page to house all globals
So our bed presence is triggered by motion sensors placed on the under side of the bed. When they go active and the presence global is true or false, the following logic checks for change in intervals of 5-10 seconds. If the state changes from the original state, then it goes straight to the trigger and starts the next flow. if the state does not change from the original beginning state, then it times out with no change. The whole flow is super complex, but it was easy to set up as I did it in pieces and built on as I got one aspect to work, I added another thing. You can actually have flows that only do one thing, but you’ll naturally become accustomed to combining things. Doesn’t make it easier, but sure makes for really cool flows.
Global flow. This saves this global to file and not to ram. If it’s saved to file, it survives a reboot. If it’s saved to ram, it resets at reboot.
[{"id":"00863d2c2178ba0a","type":"change","z":"6eb861eeb62e543d","name":"AprilBedPresence","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"},{"t":"set","p":"aprilbedpresence","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1430,"y":2400,"wires":[["5fbdb7579f184c51"]]}]
And here is the flow that checks for presence. once it shows opposite status, it shoots right to the trigger. I left out the motion sensor trigger at the beginning. This is different from the bed sensor global. Like @TechMedX stated, “there’s more than one way to solve a problem”. I will add that “not everyone has a Markus.” So, you’re not expected to write all of these in function codes. You can definitely do it without.
[{"id":"aa5ffe8a008423d5","type":"change","z":"10577ea396123488","name":"April Motion","rules":[{"t":"set","p":"aprilmotion","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":840,"wires":[["621c50735dd357cd","551a060f7513a2b9"]]},{"id":"0375f20a2fed752c","type":"change","z":"10577ea396123488","name":"Jeff Motion","rules":[{"t":"set","p":"jeffmotion","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":740,"wires":[["ddcd8ffd178dd257","cf90e79dc11123f3"]]},{"id":"621c50735dd357cd","type":"link out","z":"10577ea396123488","name":"AprilMotion->","mode":"link","links":["76837dd1d3ed093c"],"x":655,"y":880,"wires":[]},{"id":"ddcd8ffd178dd257","type":"link out","z":"10577ea396123488","name":"JeffMotion->","mode":"link","links":["76837dd1d3ed093c"],"x":655,"y":700,"wires":[]},{"id":"cf90e79dc11123f3","type":"switch","z":"10577ea396123488","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":740,"wires":[["fb44e2d0904acfa9"]]},{"id":"fb44e2d0904acfa9","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":830,"y":740,"wires":[["0aee2f309f750217"],["58ec75f737780c40"]]},{"id":"58ec75f737780c40","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1000,"y":760,"wires":[["f4d35f218b65ce96"]]},{"id":"f4d35f218b65ce96","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1150,"y":760,"wires":[["7143b9ccb3cee25a"],["c3f328831317fd68"]]},{"id":"c3f328831317fd68","type":"delay","z":"10577ea396123488","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":1300,"y":760,"wires":[["00f8761f0838cd3c"]]},{"id":"00f8761f0838cd3c","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1450,"y":760,"wires":[["7143b9ccb3cee25a"],["3914a02e91f79aa9"]]},{"id":"3914a02e91f79aa9","type":"delay","z":"10577ea396123488","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":1600,"y":760,"wires":[["8cfa2f3e43a57c7f"]]},{"id":"8cfa2f3e43a57c7f","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1750,"y":760,"wires":[["7143b9ccb3cee25a"],["e926ab9d8e17eca5"]]},{"id":"e926ab9d8e17eca5","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1900,"y":760,"wires":[["89cfe43b676b5c9a"]]},{"id":"89cfe43b676b5c9a","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2050,"y":760,"wires":[["7143b9ccb3cee25a"],["84f0c86d9b6f6325"]]},{"id":"84f0c86d9b6f6325","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2200,"y":760,"wires":[["f06de646b719d595"]]},{"id":"f06de646b719d595","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2350,"y":760,"wires":[["7143b9ccb3cee25a"],["5546f8929a26bc63"]]},{"id":"5546f8929a26bc63","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2500,"y":760,"wires":[["16647930d065216b"]]},{"id":"16647930d065216b","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2650,"y":760,"wires":[["7143b9ccb3cee25a"],[]]},{"id":"7143b9ccb3cee25a","type":"change","z":"10577ea396123488","name":"Jeff In Bed","rules":[{"t":"set","p":"jeffinbed","pt":"global","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2810,"y":760,"wires":[["1cfbeb46805e7dfa"]]},{"id":"0aee2f309f750217","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1000,"y":720,"wires":[["1b9d3e5020efa2b9"]]},{"id":"1b9d3e5020efa2b9","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1150,"y":720,"wires":[["e1d1339945dc75dc"],["1707fe7fa4f2c21a"]]},{"id":"e1d1339945dc75dc","type":"delay","z":"10577ea396123488","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":1300,"y":720,"wires":[["96a8c768be533df3"]]},{"id":"96a8c768be533df3","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1450,"y":720,"wires":[["669669b6ce932e94"],["1707fe7fa4f2c21a"]]},{"id":"669669b6ce932e94","type":"delay","z":"10577ea396123488","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":1600,"y":720,"wires":[["d35dd7065eb31727"]]},{"id":"d35dd7065eb31727","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1750,"y":720,"wires":[["3fc8747c12db80b1"],["1707fe7fa4f2c21a"]]},{"id":"3fc8747c12db80b1","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1900,"y":720,"wires":[["8a9b79bb95d9fe4a"]]},{"id":"8a9b79bb95d9fe4a","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2050,"y":720,"wires":[["6348466a7f1ec98c"],["1707fe7fa4f2c21a"]]},{"id":"6348466a7f1ec98c","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2200,"y":720,"wires":[["9aa58fe4e0523c76"]]},{"id":"9aa58fe4e0523c76","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2350,"y":720,"wires":[["e1ec8822dc69baf9"],["1707fe7fa4f2c21a"]]},{"id":"e1ec8822dc69baf9","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2500,"y":720,"wires":[["e07eaaca17cd5528"]]},{"id":"e07eaaca17cd5528","type":"switch","z":"10577ea396123488","name":"jeffpresence","property":"jeffbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2650,"y":720,"wires":[[],["1707fe7fa4f2c21a"]]},{"id":"1707fe7fa4f2c21a","type":"change","z":"10577ea396123488","name":"Jeff Not In Bed","rules":[{"t":"set","p":"jeffinbed","pt":"global","to":"false","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2820,"y":720,"wires":[["1cfbeb46805e7dfa"]]},{"id":"1cfbeb46805e7dfa","type":"link out","z":"10577ea396123488","name":"->JeffInBed","mode":"link","links":["3f985ebf74f9f92d"],"x":2975,"y":740,"wires":[]},{"id":"6a9a29eaca98bc6d","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1000,"y":860,"wires":[["da8f6b6f6abe6410"]]},{"id":"da8f6b6f6abe6410","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1160,"y":860,"wires":[["cccdb9930f661751"],["741c5512f7edf890"]]},{"id":"741c5512f7edf890","type":"delay","z":"10577ea396123488","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":1320,"y":860,"wires":[["c44961028c245c7a"]]},{"id":"c44961028c245c7a","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1480,"y":860,"wires":[["cccdb9930f661751"],["dd25c40b8a471973"]]},{"id":"dd25c40b8a471973","type":"delay","z":"10577ea396123488","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":1640,"y":860,"wires":[["ec70366ab4515fd8"]]},{"id":"ec70366ab4515fd8","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1800,"y":860,"wires":[["cccdb9930f661751"],["def254a193ccacee"]]},{"id":"def254a193ccacee","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1960,"y":860,"wires":[["25b05a26adeceffa"]]},{"id":"25b05a26adeceffa","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2120,"y":860,"wires":[["cccdb9930f661751"],["1689a1918a46fd79"]]},{"id":"1689a1918a46fd79","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2280,"y":860,"wires":[["bcf5ae6f4eaf824e"]]},{"id":"bcf5ae6f4eaf824e","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2440,"y":860,"wires":[["cccdb9930f661751"],["256f8a9677e68a48"]]},{"id":"256f8a9677e68a48","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2600,"y":860,"wires":[["9e1a98292c1e58de"]]},{"id":"9e1a98292c1e58de","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2760,"y":860,"wires":[["cccdb9930f661751"],[]]},{"id":"cccdb9930f661751","type":"change","z":"10577ea396123488","name":"April In Bed","rules":[{"t":"set","p":"aprilinbed","pt":"global","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2950,"y":860,"wires":[["bad1fbbdfd0b4767"]]},{"id":"041728ba822ac910","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1000,"y":820,"wires":[["504834f2aafcee08"]]},{"id":"504834f2aafcee08","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1160,"y":820,"wires":[["29406dc5983904fd"],["dc0586ccd1723db2"]]},{"id":"29406dc5983904fd","type":"delay","z":"10577ea396123488","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":1320,"y":820,"wires":[["622b463663ddc85a"]]},{"id":"622b463663ddc85a","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1480,"y":820,"wires":[["377f6b650f93629c"],["dc0586ccd1723db2"]]},{"id":"377f6b650f93629c","type":"delay","z":"10577ea396123488","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":1640,"y":820,"wires":[["c5c978fe4bb59542"]]},{"id":"c5c978fe4bb59542","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1800,"y":820,"wires":[["62dc58e6a4aed2b1"],["dc0586ccd1723db2"]]},{"id":"62dc58e6a4aed2b1","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1960,"y":820,"wires":[["c777ed2e1049df10"]]},{"id":"c777ed2e1049df10","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2120,"y":820,"wires":[["cac8449ac5d92d45"],["dc0586ccd1723db2"]]},{"id":"cac8449ac5d92d45","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2280,"y":820,"wires":[["fd497047d6806a6c"]]},{"id":"fd497047d6806a6c","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2440,"y":820,"wires":[["415b767f6fb4f6fb"],["dc0586ccd1723db2"]]},{"id":"415b767f6fb4f6fb","type":"delay","z":"10577ea396123488","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2600,"y":820,"wires":[["d39d2d38ac643cc9"]]},{"id":"d39d2d38ac643cc9","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":2760,"y":820,"wires":[[],["dc0586ccd1723db2"]]},{"id":"dc0586ccd1723db2","type":"change","z":"10577ea396123488","name":"April Not In Bed","rules":[{"t":"set","p":"aprilinbed","pt":"global","to":"false","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2940,"y":820,"wires":[["bad1fbbdfd0b4767"]]},{"id":"bad1fbbdfd0b4767","type":"link out","z":"10577ea396123488","name":"->AprilInBed","mode":"link","links":["c1c095e390459e77"],"x":3085,"y":840,"wires":[]},{"id":"551a060f7513a2b9","type":"switch","z":"10577ea396123488","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":840,"wires":[["f6e8ac2953fade20"]]},{"id":"f6e8ac2953fade20","type":"switch","z":"10577ea396123488","name":"aprilpresence","property":"aprilbedpresence","propertyType":"global","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":840,"y":840,"wires":[["041728ba822ac910"],["6a9a29eaca98bc6d"]]}]
If you copy the code snip to your clipboard, you can import it to your page and see the guts of the flows.
Here’s a snip of how I have my globals page. This is what I like to refer to as the heartbeat.
You can also check on the state of your globals here:
Once you get the hang of things in NR, you’ll find it super easy. We can do a teams Q&A if you’d like at some point if you want. I’d be available as early as this weekend to fire something up. I’m sure that @RRodman will be all about that. He’s my go to guy when I need to be set straight on my logic.
[EDIT]
Not all globals are treated equally. Take some time to understand how globals and locals work. You’ll find that harmonious balance if you do.