Yes, not connecting to wifi is (was) a known issue, there’s an extensive thread on github.
The solution does seem to be starting off with the most basic possible config, if it connects, then slowly add to the config until it breaks. Flashing over serial (specially the first time) yields better results.
Your “device not showing” issue is very possibly related to setting a manuel ip in the config.
I noticed that you’re using 198.162.x.x for your LAN?
Is that intentional or a possible typo?
I ask because most home routers use, by default, one of the RFC1918-assigned blocks, such as
192.168.0.0 – 192.168.255.255
That might be confusing your DHCP server, if it’s assigning from 192.168.x.x.
What I would do is set the static (fixed) IP address from your router. You can see it now… I don’t know those routers but I am all over unifi … maybe click on the device now you can see it and set the static ip address, then remove the ip settings in esphome.
TIP: make the static ip address the same as esphome first. then once done remove static ip from esphome, then if you would like to change the static ip you can do it in your router. If you have 2 different static ip address for the same device you may loose it.