It might be a good idea to let us know what you’re talking about. You’ve got to remember that all we know about what you’re doing is what you write in your post. I’m guessing it’s openEVSE. I’ve tagged you post with “openevse” - if it isn’t, it can be changed very easily.
The diagram did help. Although I’d looked at it several times, only on this occasion did I spot the comment at the top left regarding ‘optional switch’