1) Give a description of the problem
I am trying to get my light to turn on 100% when the door opens which works but i want it to either shut off if it was off or go to the level it was before the door opened.
2) What is the expected behavior?
if the light was at 1% when the door was shut I expect it to go to 1% when the door shuts again.
3) What is happening/not happening?
door opens and the light goes to 100% which is good. door closes and it stays at 100%. i want it to go back to original value before door opened or off if it was off.
**4)