Hey All,
I’m new to this platform, but have worked using Arduino before, I have a plant growing project using sensors and I’m trying to connect a few sensors to my ESP32 and send data over the web.
I have done this using the Arduino platform but I need something more robust for building the firmware and this is how I got here.
So to my problem, I have downloaded the Home Assitant and ESPHome add-on, and loaded the basic OTA firmware unto my ESP32S with a static IP of 10.0.0.42, after flashing using the ESPHome Flasher I receive this message:
Using 'COM8' as serial port.
Connecting........___
Detecting chip type... ESP32
Connecting........_
Chip Info:
- Chip Family: ESP32
- Chip Model: ESP32D0WDQ6 (revision 1)
- Number of Cores: 2
- Max CPU Frequency: 240MHz
- Has Bluetooth: YES
- Has Embedded Flash: NO
- Has Factory-Calibrated ADC: YES
- MAC Address: 9C:9C:1F:C2:AE:D0
Uploading stub...
Running stub...
Stub running...
- Flash Size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.2s
Compressed 15680 bytes to 10109...
Wrote 15680 bytes (10109 compressed) at 0x00001000 in 1.0 seconds (effective 129.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 143...
Wrote 3072 bytes (143 compressed) at 0x00008000 in 0.1 seconds (effective 337.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 1022.3 kbit/s)...
Hash of data verified.
Compressed 872048 bytes to 486767...
Wrote 872048 bytes (486767 compressed) at 0x00010000 in 45.3 seconds (effective 153.9 kbit/s)...
Hash of data verified.
Leaving...
Hard Resetting...
Done! Flashing is complete!
Showing logs:
[21:16:35]ets Jun 8 2016 00:22:57
[21:16:35]
[21:16:35]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:16:35]flash read err, 1000
[21:16:35]ets_main.c 371
[21:16:35]ets Jun 8 2016 00:22:57
[21:16:35]
[21:16:35]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[21:16:35]configsip: 0, SPIWP:0xee
[21:16:35]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[21:16:35]mode:DIO, clock div:2
[21:16:35]load:0x3fff0018,len:4
[21:16:35]load:0x3fff001c,len:1324
[21:16:35]load:0x40078000,len:7788
[21:16:35]ho 0 tail 12 room 4
[21:16:35]load:0x40080400,len:6460
[21:16:35]entry 0x400806e8
[21:16:35][I][logger:166]: Log initialized
[21:16:35][C][ota:366]: There have been 0 suspected unsuccessful boot attempts.
[21:16:35][I][app:029]: Running through setup()...
[21:16:35][C][wifi:033]: Setting up WiFi...
[21:16:36][D][wifi:324]: Starting scan...
[21:16:37][D][wifi:339]: Found networks:
[21:16:37][I][wifi:385]: - 'Saadon 1' (88:C3:97:83:3D:0D) ▂▄▆█
[21:16:37][D][wifi:386]: Channel: 6
[21:16:37][D][wifi:387]: RSSI: -67 dB
[21:16:37][I][wifi:385]: - 'Saadon 1' (10:13:31:77:49:6F) ▂▄▆█
[21:16:37][D][wifi:386]: Channel: 1
[21:16:37][D][wifi:387]: RSSI: -89 dB
[21:16:37][I][wifi:194]: WiFi Connecting to 'Saadon 1'...
[21:16:38][I][wifi:457]: WiFi Connected!
[21:16:38][C][wifi:303]: SSID: 'Saadon 1'
[21:16:38][C][wifi:304]: IP Address: 10.0.0.42
[21:16:38][C][wifi:306]: BSSID: 88:C3:97:83:3D:0D
[21:16:38][C][wifi:307]: Hostname: 'test'
[21:16:38][C][wifi:311]: Signal strength: -69 dB ▂▄▆█
[21:16:38][C][wifi:315]: Channel: 6
[21:16:38][C][wifi:316]: Subnet: 255.255.255.0
[21:16:38][C][wifi:317]: Gateway: 10.0.0.1
[21:16:38][C][wifi:318]: DNS1: 0.0.0.0
[21:16:38][C][wifi:319]: DNS2: 0.0.0.0
[21:16:38][D][wifi:466]: Disabling AP...
[21:16:38][C][ota:029]: Over-The-Air Updates:
[21:16:38][C][ota:030]: Address: 10.0.0.42:3232
[21:16:38][C][api:022]: Setting up Home Assistant API server...
[21:16:38][I][app:059]: setup() finished successfully!
[21:16:38][I][app:105]: ESPHome version 1.16.2 compiled on May 3 2021, 18:14:29
[21:16:38][C][wifi:443]: WiFi:
[21:16:38][C][wifi:303]: SSID: 'Saadon 1'
[21:16:38][C][wifi:304]: IP Address: 10.0.0.42
[21:16:38][C][wifi:306]: BSSID: 88:C3:97:83:3D:0D
[21:16:38][C][wifi:307]: Hostname: 'test'
[21:16:38][C][wifi:311]: Signal strength: -66 dB ▂▄▆█
[21:16:38][C][wifi:315]: Channel: 6
[21:16:38][C][wifi:316]: Subnet: 255.255.255.0
[21:16:38][C][wifi:317]: Gateway: 10.0.0.1
[21:16:38][C][wifi:318]: DNS1: 0.0.0.0
[21:16:38][C][wifi:319]: DNS2: 0.0.0.0
[21:16:38][C][logger:185]: Logger:
[21:16:38][C][logger:186]: Level: DEBUG
[21:16:38][C][logger:187]: Log Baud Rate: 115200
[21:16:38][C][logger:188]: Hardware UART: UART0
[21:16:38][C][captive_portal:169]: Captive Portal:
[21:16:38][C][ota:029]: Over-The-Air Updates:
[21:16:38][C][ota:030]: Address: 10.0.0.42:3232
[21:16:38][C][api:095]: API Server:
[21:16:38][C][api:096]: Address: 10.0.0.42:6053
From what I understand this means that everything went well and the ESP managed to connect to WiFI, after the flashing I get a notification from Home Assitant that I have a discovered new node, I press to connect to it and then I get an error message saying this:
Can anyone please help me? I tried changing the dns, IP and several other things but nothing works, I would appreciate any advice.
Thanks,
Tal.