ESPHome device shows offline but connected when I check my router

No and it is in noway related to the topic you just replied to :yawning_face:

You can read how to ask a good question and (after reading) open a new topic with your problem :point_down: