Hello,
I would like some help.
I bought some ESP2866 DEV BOARD but I can’t update them through OTA + OpenWRT
I have the following devices:
- 3 ESP32 boards with ESPHome - OTA OK
- 8 Sonoff Mini with Tasmota - OTA OK
- 1 NodeMCU V3 - OTA does not work with OpenWRT
- 3 D1 Mini - OTA does not work with OpenWRT
The NodeMCU V3 board I’ve owned for a while and I noticed that the OTA wasn’t working. As it was the first and only board with ESP8266 I thought it was defective.
This week I received 3 D1 Mini boards and I can’t update them via OTA either.
I researched the problem and found some suggestions for changing the board configuration:
board: nodemcuv2
board: d1_mini
board: esp01_1m
I tried to add this setting:
board_flash_mode: dout
Nothing worked, however when I create a hotspot on the notebook I can update normally.
Does anyone have any idea of any settings I can change on the router?
TP-Link Archer C7 v5 running OpenWrt 19.07.8
INFO Generating C++ source...
INFO Compiling app...
Processing portao-mini (board: nodemcuv2; framework: arduino; platform: platformio/espressif8266 @ 2.6.3)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
| |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 2.0.0
| |-- <ESPAsyncTCP-esphome> 1.2.3
| | |-- <ESP8266WiFi> 1.0
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266WiFi> 1.0
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <noise-c> 0.1.4
| |-- <libsodium> 1.10018.1
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
RAM: [==== ] 40.1% (used 32856 bytes from 81920 bytes)
Flash: [==== ] 42.8% (used 447360 bytes from 1044464 bytes)
========================= [SUCCESS] Took 9.53 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of portao-mini.local
INFO -> 192.168.0.130
INFO Uploading /data/portao-mini/.pioenvs/portao-mini/firmware.bin (451520 bytes)
INFO Compressed to 309327 bytes
Uploading: [================= ] 28%
ERROR Error sending data: timed out
name: quarto
platform: ESP8266
board: nodemcuv2
on_boot:
priority: -100.0
then:
- text_sensor.template.publish:
id: quarto_version
state: !lambda |-
String versao = "1.01";
return (String(versao)).c_str();
- component.update: quarto_temp
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: ""
wifi:
ssid: ""
password: ""
power_save_mode: none
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Quarto Fallback Hotspot"
password: ""
captive_portal:
web_server:
port: 80
text_sensor:
- platform: template
name: Uptime Quarto
id: uptime_human
icon: mdi:clock-start
- platform: template
name: Quarto Versão
id: quarto_version
icon: mdi:clock-start
sensor:
- platform: uptime
name: Uptime Quarto
id: uptime_sensor
update_interval: 60s
internal: true
on_raw_value:
then:
- text_sensor.template.publish:
id: uptime_human
state: !lambda |-
int seconds = round(id(uptime_sensor).raw_state);
int days = seconds / (24 * 3600);
seconds = seconds % (24 * 3600);
int hours = seconds / 3600;
seconds = seconds % 3600;
int minutes = seconds / 60;
seconds = seconds % 60;
return (
(days ? String(days) + "d " : "") +
(hours ? String(hours) + "h " : "") +
(minutes ? String(minutes) + "m " : "") +
(String(seconds) + "s")
).c_str();
- platform: dht
pin: 2
id: quarto_temp
temperature:
name: "Quarto Temp"
humidity:
name: "Quarto Umidade"
update_interval: 60s
switch:
#Comando reinicilizar esp remotamente
- platform: restart
id: quarto_restart
name: Reiniciar
icon: mdi:restart```