Hi @Karosm
Thank you a lot for reading!.
Sorry for that. I edited the post a little, I hope it helps.
Yes. I uploaded the code that compiles. Should have I posted the code that gives me an errror? If so, I will post it.
Nope, I didn’t know that I could change the boards. I will try with the Wroom32 as you suggest.
Thank you again!
EDIT:
I tried to change the board definition. When I set the board name to “nodemcu-32s” (The wroom 32 as mencioned here:
And I can’t compile, because GPIO definition is different. So I tried with the “lolin_s2_mini” as suggested here:
And I get the same error.
If it helps, here is the faulty code (with the new board definition):
esphome:
name: nevera
friendly_name: nevera
esp32:
board: lolin_s2_mini
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
wifi:
networks:
- ssid: !secret wifi_ssid2
password: !secret wifi_password2
# O 3 é Cacharrada
- ssid: !secret wifi_ssid3
password: !secret wifi_password3
manual_ip:
static_ip: 192.168.1.19
gateway: 192.168.1.1
subnet: 255.255.255.0
dns1: 192.168.1.1
dns2: 8.8.4.4
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Nevera Fallback Hotspot"
password: "7DXF1upJDny3"
captive_portal:
web_server:
port: 80
text_sensor:
- platform: wifi_info
ip_address:
name: Direccion IP
ssid:
name: Nome da rede
scan_results:
name: Redes Dispoñibles
sensor:
- platform: adc
pin: GPIO7
name: "Tension ADC1"
attenuation: 11db
id: ADC1
update_interval: 1s
samples: 10 ##### HERE IS THE PROBLEM#####
- platform: adc
pin: GPIO8
name: "Tension ADC2"
update_interval: 1s
attenuation: 11db
id: ADC2
- platform: adc
pin: GPIO9
name: "Tension ADC3"
update_interval: 1s
attenuation: 11db #Segun a web de espresif, desde 0 a 2500 mV
id: ADC3
Thanks!