ESPHome device status inverted & some devices unreachable & other weird issues

I’ve got my Home Assistant Server on proxmox for redundancy and recently added a firewall (in proxmox) to stop any traffic on port 8123 that doesn’t come from my reverse proxy. After I had made this change I first noticed problems occurring.
These include:

  • Google Drive Backup stopped working, started giving Timed out communicating with habackup.io error
  • Android IP Webcam integration stopped working although the Android device’s IP didn’t change and it’s reachable from other devices then HA
  • ESPHome broke (the problem I’m here for)

First I want to say that I don’t think the problems are related to my firewall changes, I went back to allowing all traffic from my local network and the problems are still all occurring. I only first noticed the problem directly after the firewall update but at the same occasion I also restarted my HA a few times which could have to do with that too.

Now about the symptoms of ESPHome’s problems:
All statuses are inverted (apparently), let me elaborate: I have (and this is really weird as well) 2 of my many ESP’s which are evidently offline. When I try to interact with them in any way over the device settings in HA itself they show as unavailable, all other devices work and I’ve tried flashing them using an USB cable manually and setting a static IP address (although they were and are reachable from other devices using both their IP and hostname respectively).
However the weirdest part - for me anyway - is that ESPHome shows all the ESP’s statuses reversed, all the ones that are online (and i checked them in the HA settings one-by-one) show up as offline and the 2 faulty ones show as being online).

I seem to have forgotten to restart the Proxmox firewall (in my defense, as far as I can tell it’s a bug that it needs to be restarted at all after applying changes through the gui) using pve-firewall restart. I still don’t understand why

  • only 2 devices where affected
  • the statuses where messed up like that

but just restarting the firewall and then HA as well, just to be safe, did the trick!