This allows the Basement Door Handling script to take care of that aspect.
Version control for my Node-RED flows. The main repository can be found below.
Home Assistant Configs