dmeus
November 11, 2020, 11:23am
1
Hi all,
I’m working on building this NFC reader: https://github.com/adonno/tagreader . Soldering went perfectly, now on to the flashing part. What I can’t seem to figure out is how to transfer the yaml from esphome to the Wemos D1 mini. In a previous esp-project, I used a seperate flash module connected to my laptop. In this project, it seems to be possible to flash the board OTA. However: it’s the yaml that points the Wemos to my home network. So logically, this doesn’t make sense. Long story short: do I need to connect the Wemos to my Pi in order to flash the thing? Apologies for this seemingly stupid question, I just can’t get my head around it at the moment.
sender
November 11, 2020, 11:26am
2
You can:
compile:
then “download binary”
and use esphome flashtool to flash via usb
You can connect it to you pi. But I experienced this not working.
I’m now using esphome flasher on my laptop. I connect the d1 mini to my laptop and flash the bin file generated by esphome to the mini.
@sender ninjad me hahaha
nickrout
(Nick Rout)
November 11, 2020, 6:18pm
4
The first flash is over serial/usb.
Plug the D1 mini into the machine running esphome. Choose the serial port in the esphome ui. Click upload. Job done.
poudenes
(Poudenes)
November 11, 2020, 6:24pm
5
lucky you can use ESPHome… when i try to compile i get always this error:
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o] Error 127
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_server.cpp.o
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o] Error 127
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
sh: 1: xtensa-lx106-elf-g++: not found
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_server.cpp.o] Error 127
========================= [FAILED] Took 36.21 seconds =========================
dmeus
November 11, 2020, 6:27pm
6
Of course: silly me It’s even the same procedure as the build for my ESP-connected door bell. Don’t know how that could have escaped me. Thanks all!
nickrout
(Nick Rout)
November 11, 2020, 6:30pm
7
I think you are off topic.
sender
November 11, 2020, 6:50pm
9
On-topic:
if flashed via usb initially, OTA flash can be done from the ESPHome interface.
But be aware! this only works if device is:
On same subnet as homeassistant running esphome (with DNS VERY properly installed and used) --> it uses DNS
If you add this in the esphome config below wifi:
use_address: <ip address of esp either got via DHCP or specified>
Specified (instead of DHCP) like:
wifi:
manual_ip:
static_ip: <ip address>
gateway: <ip address>
subnet: 255.255.255.0
then in the pluging also make sure you put:
(for uptime sensor (green color)
You can then just use:
UPLOAD:
nickrout
(Nick Rout)
November 11, 2020, 7:57pm
10
sender:
it uses DNS
no it uses mDNS AFAIK.
sender:
use_address:
Are you suggesting this as an alternative to mDNS working?