geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
583 stars 156 forks source link

Compilation fails when including time and mqtt (error: reference to 'time' is ambiguous) #76

Open FabianRig opened 2 years ago

FabianRig commented 2 years ago

Hi!

If both mqtt and time are included in the yaml, building the firmware fails:

` ... time:

mqtt: ... `

yields

[...] Compiling .pioenvs\klimaanlage-og\src\esphome\components\mqtt\mqtt_select.cpp.o In file included from C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26, from C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30, from C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23, from C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20, from C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41, from src/esphome\components\wifi\wifi_component.h:17, from src/esphome.h:68, from src\esphome\components\mitsubishi_heatpump\espmhp.h:20, from src\esphome\components\mitsubishi_heatpump\espmhp.cpp:20: C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h: In static member function 'static time_t fs::FS::_defaultTimeCB()': C:\Users\Fabian\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:249:49: error: reference to 'time' is ambiguous [...]

I commented out the time block and it works...