The binary sensor makes the ESP not connect to the network.
I have tried several GPIOs but it just refuses to work with the binary sensor.
If I remove or comment the binary sensor then it all works fine.
What is wrong with the binary sensor?
Only pin and name is required, but I could try it.
I think it didn’t like that before.
I believe that was what I tried first with this board, but then had to look at the pin out to get the GPIO names.
But I can try it.
When you boot the device with binary sensor what do you see on the logs. I think you are connecting by serial rather than by plugging usb cabel in. I take it that the device goes into boot mode rather than flash mode.
This is really weird. the screenshot from above with the messages about D7 for the esp01_1m board. The ESP01 is totally different, it doesnt have pins above gpio3. Anything you have tried with that board in the code would fail.
But just below, you mention to Spiro the board as nodemcuv2 and that you have tried that. This one should be programmed in if your using node mcu 8266.
No progress yet.
The coding has worked fine up to the binary sensor which ironically is the last thing I need to add to the device.
Everything else works great with esp01_1m or nodemcuv2, both work, except the binary sensor.
I was thinking that that perhaps the reason it wasn’t connecting to network was because it wasn’t even going into bootmode. I have seen this happen when something gets connected to GPIO0 and pulls it low at startup and it goes into flashmode. You would probably get some info from the logs if you were to connect by cable to nodemcu and use the esp-flasher in log mode.
But what was your first flash? with esp01? or esp01_1m or nodemcu nodemcuv2 ?
If you did so with the first, just esp01, you could experience memory issues. It thinks there is 512kb of it. I needed to flash directly to fix this. But if this is so, it will probably not flash OTA in the first place. That will be visible in the logger.
Have you enabled logger?
Have you set your wifi stuff and fixed ip in the config?
manual_ip:
static_ip: 192.168.4.xx
gateway: 192.168.4.1
subnet: 255.255.255.0
The new way of creating devices doesn’t give you the option to set the device.
So downloading as a binary and flashing with esp tool, could that work?
The messages say it deletes the flash so it should be a clean flash?
Right?
I’ll see what I can do.
I know there is a difference, in the old days you had the drop-down to select the board, now that is gone and I thought it didn’t matter.