Thanks for the response. If I understand correct the in the above example I suppose to connect the wires in the ground and d5 pin. Is that correct?
One more regarding the wires of the magnetic switch. If you see my photo on of them is longer than the other. does it matter which one goes to to the ground and which in d5?
If I may I have 1 more questions. Suppose that after a month I want to add a temperature sensor for example. I should attach the sensor to D1 mini and just add the required code for the sensor below the code for this switch and if all are well it will work?
I just returned home and tried to connect the d1 mini to espHome. I have already installed an esp32 and it is online. When I installed esp32 I just plug it in the NUC where home assistant is and it was easy to connect it. Now that I am trying to connect the d1 I get this (no compatible devices found)
I watched this video for example that says that I can attach the d1 in every laptop or desktop and I can connect it. (@ 5:54) Although I tried I get the above message.
There is many ways to get the same job done.
But I think you are mixing two that can’t be mixed.
Connect the controller to your computer, the one with a keyboard and mouse, not the HA computer.
Then go to your secure HA address (HTTPS) and try again.
yes, but I would like to be able to fix this problem. I have bought (several esp8266-32 boards) and I prefer to perform the actions from HA. Any sign what could be wrong?
Ah, yes, the drivers are important. I usually find it easier to just connect directly to the computer running Home Assistant and once that initial code is uploaded, I can do everything wirelessly OTA.