Good news,
Sorry I too am a new user, I’m just trying to learn more by solving other’s problems
I would also point you to the Developer tools > states section and you need a firm understanding on how to build configuration.yaml
Maybe put nodered on the sideline and concentrate of HA first ?
Remember Rome wasn’t built in a day so this may take some time but as soon as you’ve learned the concepts you should be able to solve any problem
Good luck !