Noob here. I was trying to automate bathroom lights using a contact sensor. I am trying to avoid a motion sensor as i want to avoid the akward hand movement when i am inside and it does not detect motion. I found a guide which says this can be achieved ,however strugling to get the Node-red part of the guide which can be found @ A twist on a contact sensor automation | Blog .
The flow can be found below, however i am strugling to identify the If node and what properties are to be passed.
This talks about door sensor + motion sensor. I was hoping to achieve this with just a door sensor as indicated in the guide. Is there any way this can be achieved with just a door sensor ?