HA, ESPHome, Switch state reports opposite of actual condition

No no no no no and no. Read this How to help us help you - or How to ask a good question - all of it but particularly point 12.