If both mqtt and time are included in the yaml, building the firmware fails:
`
...
time:
platform: sntp
id: sntp_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 [...]
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...