WARNING Can't connect to ESPHome API for XYZ.local: Error resolving IP address: [Errno -2] Name or service not known

dont know what is going on ?

Welcome to the forum.

Please read here, and then ask properly. How to help us help you - or How to ask a good question