I have a problem. I have an ESP, and it works perfectly with esphome. Therefore I decided to buy a 2nd ESP, all went good, and after I installed it, it came online in home assistant. I can also go in the webbrowser for the ESP. then I copied a piece code from the other esp (some relays) and copied it to this esp. when I uploaded it, it uploaded fine, and said update complete. after that I cant reach it with the webbrowser (it says it has declined the connection), but I can ping it and can also see it in the log of esp (the log shows the relays, but in home assistant I dont see the entity’s). when I restart the esp I can connect it via de webbrower again, but none of my sensors or switches appear. but with my other esp the code works fine.
I also tried to upload the code via different methods, but all methods didn’t do anything else.
anybody any idea how I can fix this, or am I doing something wrong ;).
Look, what you write here doesn’t match with your code, not for the sensors not for web server…
Start from beginning, disconnect all gpio wirings and post your actual code and corresponding log.
You probably have wiring on strapping pins, gpio15 being one of them.
Good starting point.
What about the actual code?
I’m not asking to repeat the one on post#6, because it’s not matching to your experiments. With that code you can’t enter to esp from web browser…
No, so that is weird. Why can I connect to the webbrower, even though it isn’t in the code? In my test Yaml I only have A relay switch, but it doesn’t come up.