Lights all messed up after restart

Has anybody had the issue with their lights (flashed for ESPHome) where after a sudden shut down, or sometimes just a general restart, the light entities are all messed up? I use the Dining Room Light in HA but it’s turning my Bathroom Light on and off, the light entity for my Kitchen is toggling my Backyard Light, etc. Also, certain lights are shown as inactive.

When I look in my ESPHome dashboard everything is as it should be, all lights are online and active. After a number of restarts it generally comes good, but I have no idea why it keeps doing it.