Couple of users are…
Only the ones with the crystal ball but theses people are usully busy with other things
Do you mind sharing the minimum necessary information described in How to help us help you - or How to ask a good question? This should include the YAML of your esphome node and some LOGS of your esphome node when you toggle the reed switch
As a side note already: You don’t want to debug such things on remote systems but first and foremost on the esphome node itself - the ota logging makes such things a treat. When you know that it works you can go further down the road and invest time in mqtt/node-red debugging and such