Closed u17194907425 closed 8 months ago
I have the same error.
INFO ESPHome 2023.12.5
INFO Reading configuration /config/esphome/living-room-tion-lite.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing living-room-tion-lite (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- Embedded Template Library @ 20.35.8
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
Compiling .pioenvs/living-room-tion-lite/src/esphome/components/captive_portal/captive_portal.cpp.o
src/esphome/components/captive_portal/captive_portal.cpp: In member function 'void esphome::captive_portal::CaptivePortal::start()':
src/esphome/components/captive_portal/captive_portal.cpp:51:48: error: invalid cast from type 'esphome::network::IPAddress' to type 'uint32_t' {aka 'unsigned int'}
this->dns_server_->start(53, "*", (uint32_t) ip);
^~
*** [.pioenvs/living-room-tion-lite/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
========================== [FAILED] Took 4.27 seconds ==========================
I would suspect the ESPAsyncWebServer-esphome @ 2.1.0
version. If I do compile a clean ESP32 yaml with captive portal then the dependency graph shows ESPAsyncWebServer-esphome @ 3.1.0
You need to replace package version to master. Only for package!
You need to replace package version to master. Only for package!
Changed reference to master
packages:
tion:
url: https://github.com/dentra/esphome-tion
ref: master # cant use substitutions here
It compiles now
Try compiling the recommended profile for Tion 4S BLE on ESPHome 2023.12.5