Node Red Light on with Door opening

Hi guys, I have a D1 mini with an IR shield, I have a door to the room my hotub is in. currently when you open the door (then Close the door) this toggles a light to come on and when we come out the Door Opens and Closes the lights go off. works great. We have introduced some new lights that are IR controlled, the issue is turning on is 1 button Turning off is another button so open the door to go in I need it to turn on, We always close the door and when we open the door again it should turn off the light, but I cannot fugure out how to ahive this, we could be in the room 15mins or 2hours so dont really want a timer, any ideas appreciated, the IR works well.