Nodemcu goes offline after a few minutes

Well, that approach didn’t work very well, did it?

The problem is that if you want to do customised home automation projects then you have to get your hands dirty at some point. The advantage of Node-Red is that it’s a drag and drop visual environment, which can make it easy to get started quickly - but it’s also very powerful and allows you to do more advanced stuff if you wish.

Pete.