hi, i have problem compiling the code.
i get this
C:\esphaier-master>esphome esphaier.yaml run
e[32mINFO Reading configuration esphaier.yaml...e[0m
e[32mINFO Generating C++ source...e[0m
e[32mINFO Compiling app...e[0m
e[32mINFO Running: platformio run -d haiere[0m
Processing haier (board: d1_mini; framework: arduino; platform: [email protected])
------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 2.2.3 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 1.40802.0 (4.8.2), framework-arduinoespressif8266 2.20502.0 (2.5.2), tool-esptool 1.409.0 (4.9), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Looking for Update library in registry
Warning! Library `{'name': 'Update', 'requirements': None}` has not been found in PlatformIO Registry.
You can ignore this message, if `{'name': 'Update', 'requirements': None}` is a built-in library (included in framework, SDK). E.g., SPI, Wire, etc.
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.2
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
Compiling .pioenvs\haier\src\main.cpp.o
In file included from src\main.cpp:12:0:
src\Haier.h: In member function 'void Haier::readData()':
src\Haier.h:147:20: error: reference to 'CLIMATE_MODE_OFF' is ambiguous
mode = CLIMATE_MODE_OFF;
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:47:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_OFF
CLIMATE_MODE_OFF = 0,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:11:3: note: esphome::climate::ClimateMode CLIMATE_MODE_OFF
CLIMATE_MODE_OFF = 0,
^
In file included from src\main.cpp:12:0:
src\Haier.h:153:28: error: reference to 'CLIMATE_MODE_COOL' is ambiguous
mode = CLIMATE_MODE_COOL;
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:49:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_COOL
CLIMATE_MODE_COOL = 2,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:15:3: note: esphome::climate::ClimateMode CLIMATE_MODE_COOL
CLIMATE_MODE_COOL = 2,
^
In file included from src\main.cpp:12:0:
src\Haier.h:156:28: error: reference to 'CLIMATE_MODE_HEAT' is ambiguous
mode = CLIMATE_MODE_HEAT;
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:50:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_HEAT
CLIMATE_MODE_HEAT = 3,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:17:3: note: esphome::climate::ClimateMode CLIMATE_MODE_HEAT
CLIMATE_MODE_HEAT = 3,
^
In file included from src\main.cpp:12:0:
src\Haier.h:159:28: error: reference to 'CLIMATE_MODE_AUTO' is ambiguous
mode = CLIMATE_MODE_AUTO;
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:48:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_AUTO
CLIMATE_MODE_AUTO = 1,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:13:3: note: esphome::climate::ClimateMode CLIMATE_MODE_AUTO
CLIMATE_MODE_AUTO = 1,
^
In file included from src\main.cpp:12:0:
src\Haier.h: In member function 'virtual void Haier::control(const esphome::climate::ClimateCall&)':
src\Haier.h:177:22: error: reference to 'CLIMATE_MODE_AUTO' is ambiguous
case CLIMATE_MODE_AUTO:
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:48:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_AUTO
CLIMATE_MODE_AUTO = 1,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:13:3: note: esphome::climate::ClimateMode CLIMATE_MODE_AUTO
CLIMATE_MODE_AUTO = 1,
^
In file included from src\main.cpp:12:0:
src\Haier.h:181:22: error: reference to 'CLIMATE_MODE_HEAT' is ambiguous
case CLIMATE_MODE_HEAT:
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:50:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_HEAT
CLIMATE_MODE_HEAT = 3,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:17:3: note: esphome::climate::ClimateMode CLIMATE_MODE_HEAT
CLIMATE_MODE_HEAT = 3,
^
In file included from src\main.cpp:12:0:
src\Haier.h:185:22: error: reference to 'CLIMATE_MODE_COOL' is ambiguous
case CLIMATE_MODE_COOL:
^
In file included from src\esphome/components/api/api_connection.h:5:0,
from src\esphome.h:2,
from src\main.cpp:3:
src\esphome/components/api/api_pb2.h:49:3: note: candidates are: esphome::api::EnumClimateMode CLIMATE_MODE_COOL
CLIMATE_MODE_COOL = 2,
^
In file included from src/esphome/components/climate/climate.h:6:0,
from src/esphome/core/application.h:27,
from src\esphome/components/api/api_connection.h:4,
from src\esphome.h:2,
from src\main.cpp:3:
src/esphome/components/climate/climate_mode.h:15:3: note: esphome::climate::ClimateMode CLIMATE_MODE_COOL
CLIMATE_MODE_COOL = 2,
^
In file included from src\main.cpp:12:0:
src\Haier.h:173:20: warning: enumeration value 'CLIMATE_MODE_OFF' not handled in switch [-Wswitch]
switch (call.get_mode().value()) {
^
src\Haier.h:173:20: warning: enumeration value 'CLIMATE_MODE_AUTO' not handled in switch [-Wswitch]
src\Haier.h:173:20: warning: enumeration value 'CLIMATE_MODE_COOL' not handled in switch [-Wswitch]
src\Haier.h:173:20: warning: enumeration value 'CLIMATE_MODE_HEAT' not handled in switch [-Wswitch]
Compiling .pioenvs\haier\FrameworkArduino\time.cpp.o
Compiling .pioenvs\haier\FrameworkArduino\uart.cpp.o
Compiling .pioenvs\haier\FrameworkArduino\umm_malloc\umm_malloc.cpp.o
*** [.pioenvs\haier\src\main.cpp.o] Error 1
============================================== [FAILED] Took 2.12 seconds ==============================================
C:\esphaier-master>
Could you tell me why?
Thank you
Paolo