You should be able to import the attached file into your Node-RED instance, as long as your instance has Node-RED Home Assistant WebSocket support.
Located in
Downloads
The old methods to activate Linux desktop windows no longer work well, but new methods have been invented already.
Located in
Linux and free software
A way to control high-power devices much easier and more versatile than relying on relays.
Located in
Linux and free software