How to connect IR beam sensors?

Hello Dave,

Im trying to flash D1 mini - D1 mini V3.0.0 but keep getting this message.
the mini is connected with usb to Home Assistant - to Intel Nuc

Linking /data/sensor/.pioenvs/sensor/firmware.elf
RAM: [==== ] 41.1% (used 33708 bytes from 81920 bytes)
Flash: [===== ] 45.4% (used 474593 bytes from 1044464 bytes)
Building /data/sensor/.pioenvs/sensor/firmware.bin
esp8266_copy_factory_bin(["/data/sensor/.pioenvs/sensor/firmware.bin"], ["/data/sensor/.pioenvs/sensor/firmware.elf"])
======================== [SUCCESS] Took 124.81 seconds ========================
INFO Successfully compiled program.
esptool.py v3.3.1
Serial port /dev/ttyUSB0
Connecting…

A fatal error occurred: Failed to connect to ESP8266: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
esptool.py v3.3.1
Serial port /dev/ttyUSB0
Connecting…

A fatal error occurred: Failed to connect to ESP8266: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation

What can be the problem

Thank you

Does the ESPhome add-on show that it can see the D1 mini attached to that USB port?

How can i check that?

When you are trying to flash the the D1 mini, are you selecting the option “Plug into computer running ESPhome dashboard”
image

From there it should let you select the port, and one should say something like USB/Serial which will be the D1 mini.

Hello.

The usb is plugged into a intel nuc where is the home assistant installed but look like is not comunicating trought usb

When I plug it into a PC I cant select a usb option. Look like no comunication.
Im already change the cable and try a different usb port. Sme thing. When i plug a usb cable a blue led blink. I have 2 x D1 Minis same thing with the other one.

That is strange. The other option to get you moving is to install ESPhome-flasher on your PC. Then in the ESPhome add-on you can select ‘download file’ to save the .bin file to your PC and flash it with the D1 mini plugged into the PC.

hello I manage to plug it in all the 4 cables which I use was wrong. Now i install a wifi on it its look like this

[20:12:05][I][wifi:255]: WiFi Connecting to ‘vargameshwifi’…
[20:12:06][I][wifi:516]: WiFi Connected!
[20:12:06][C][wifi:360]: Local MAC: C8:C9:A3:0B:BE:DC
[20:12:06][C][wifi:361]: SSID: [redacted]
[20:12:06][C][wifi:362]: IP Address: 192.168.68.141
[20:12:07][C][wifi:363]: BSSID: [redacted]
[20:12:07][C][wifi:365]: Hostname: ‘qqqqqqq’
[20:12:07][C][wifi:367]: Signal strength: -26 dB ▂▄▆█
[20:12:07][C][wifi:371]: Channel: 11
[20:12:07][C][wifi:372]: Subnet: 255.255.255.0
[20:12:07][C][wifi:373]: Gateway: 192.168.0.1
[20:12:07][C][wifi:374]: DNS1: 0.0.0.0
[20:12:07][C][wifi:375]: DNS2: 0.0.0.0
[20:12:07][D][wifi:525]: Disabling AP…
[20:12:07][C][ota:089]: Over-The-Air Updates:
[20:12:07][C][ota:090]: Address: 192.168.68.141:8266
[20:12:07][C][ota:093]: Using Password.
[20:12:07][C][api:025]: Setting up Home Assistant API server…
[20:12:07][I][app:062]: setup() finished successfully!
[20:12:07][I][app:102]: ESPHome version 2022.10.1 compiled on Oct 30 2022, 20:05:51
[20:12:07][C][wifi:502]: WiFi:
[20:12:07][C][wifi:360]: Local MAC: C8:C9:A3:0B:BE:DC
[20:12:07][C][wifi:361]: SSID: [redacted]
[20:12:07][C][wifi:362]: IP Address: 192.168.68.141
[20:12:07][C][wifi:363]: BSSID: [redacted]
[20:12:07][C][wifi:365]: Hostname: ‘qqqqqqq’
[20:12:07][C][wifi:367]: Signal strength: -27 dB ▂▄▆█
[20:12:07][C][wifi:371]: Channel: 11
[20:12:07][C][wifi:372]: Subnet: 255.255.255.0
[20:12:07][C][wifi:373]: Gateway: 192.168.0.1
[20:12:07][C][wifi:374]: DNS1: 0.0.0.0
[20:12:07][C][wifi:375]: DNS2: 0.0.0.0
[20:12:07][C][logger:275]: Logger:
[20:12:07][C][logger:276]: Level: DEBUG
[20:12:07][C][logger:277]: Log Baud Rate: 115200
[20:12:07][C][logger:278]: Hardware UART: UART0
[20:12:07][C][captive_portal:088]: Captive Portal:
[20:12:07][C][mdns:100]: mDNS:
[20:12:07][C][mdns:101]: Hostname: qqqqqqq
[20:12:07][C][ota:089]: Over-The-Air Updates:
[20:12:07][C][ota:090]: Address: 192.168.68.141:8266
[20:12:07][C][ota:093]: Using Password.
[20:12:07][C][api:138]: API Server:
[20:12:07][C][api:139]: Address: 192.168.68.141:6053
[20:12:07][C][api:141]: Using noise encryption: YES

but it stuck there. If I press STOP the device is not online. What can be wrong?
Thanks for the help

its online. the problem was I have a mesh wifi router on the subnet. I enable a main router wifi and now is working.