wichers / esphome-opentherm

Port of OpenTherm protocol to ESPHome.io firmware.
40 stars 16 forks source link

The climate component in HA has updated #2

Open whxciotw opened 3 years ago

whxciotw commented 3 years ago

When I compiled the firmware, the Esphome shows the log as below, it seems that some of the configuration of climate has been deprecated.

Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/api_connection.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/api_pb2.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/api_pb2_service.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/api_server.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/list_entities.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/proto.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/subscribe_state.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/user_services.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/api/util.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/binary_sensor/automation.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/binary_sensor/binary_sensor.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/binary_sensor/filter.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/climate/climate.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/climate/climate_mode.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/climate/climate_traits.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/json/json_util.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/logger/logger.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/ota/ota_component.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/sensor/automation.cpp.o src/esphome/components/climate/climate.cpp: In constructor 'esphome::climate::Climate::Climate(const string&)': src/esphome/components/climate/climate.cpp:431:58: warning: 'esphome::climate::Climate::away' is deprecated (declared at src/esphome/components/climate/climate.h:196): away is deprecated, use preset instead [-Wdeprecated-declarations] Climate::Climate(const std::string &name) : Nameable(name) {} ^ Compiling .pioenvs/opentherm_gateway/src/esphome/components/sensor/filter.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/sensor/sensor.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/web_server/web_server.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/web_server_base/web_server_base.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/wifi/wifi_component.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/wifi/wifi_component_esp32.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/components/wifi/wifi_component_esp8266.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/application.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/component.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/controller.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/esphal.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/helpers.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/log.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/preferences.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/scheduler.cpp.o Compiling .pioenvs/opentherm_gateway/src/esphome/core/util.cpp.o Compiling .pioenvs/opentherm_gateway/src/main.cpp.o Compiling .pioenvs/opentherm_gateway/src/opentherm.cpp.o Compiling .pioenvs/opentherm_gateway/src/opentherm_gw_climate.cpp.o Generating LD script .pioenvs/opentherm_gateway/ld/local.eagle.app.v6.common.ld Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/BearSSLHelpers.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/CertStoreBearSSL.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFi.cpp.o src/opentherm_gw_climate.cpp: In member function 'virtual void esphome::opentherm::OpenThermGWClimate::control(const esphome::climate::ClimateCall&)': src/opentherm_gw_climate.cpp:38:21: warning: 'esphome::optional esphome::climate::ClimateCall::get_away() const' is deprecated (declared at src/esphome/components/climate/climate.h:100): get_away() is deprecated, please use .get_preset() instead [-Wdeprecated-declarations] if (call.get_away().has_value()) ^ src/opentherm_gw_climate.cpp:39:13: warning: 'esphome::climate::Climate::away' is deprecated (declared at src/esphome/components/climate/climate.h:196): away is deprecated, use preset instead [-Wdeprecated-declarations] this->away = call.get_away(); ^ src/opentherm_gw_climate.cpp:39:13: warning: 'esphome::climate::Climate::away' is deprecated (declared at src/esphome/components/climate/climate.h:196): away is deprecated, use preset instead [-Wdeprecated-declarations] src/opentherm_gw_climate.cpp:39:35: warning: 'esphome::optional esphome::climate::ClimateCall::get_away() const' is deprecated (declared at src/esphome/components/climate/climate.h:100): get_away() is deprecated, please use .get_preset() instead [-Wdeprecated-declarations] this->away = call.get_away(); ^ src/opentherm_gw_climate.cpp: In member function 'virtual esphome::climate::ClimateTraits esphome::opentherm::OpenThermGWClimate::traits()': src/opentherm_gw_climate.cpp:49:37: warning: 'void esphome::climate::ClimateTraits::set_supports_heat_mode(bool)' is deprecated (declared at src/esphome/components/climate/climate_traits.h:58): This method is deprecated, use set_supported_modes() instead [-Wdeprecated-declarations] traits.set_supports_heat_mode(true); ^ src/opentherm_gw_climate.cpp:50:32: warning: 'void esphome::climate::ClimateTraits::set_supports_away(bool)' is deprecated (declared at src/esphome/components/climate/climate_traits.h:119): This method is deprecated, use set_supported_presets() instead [-Wdeprecated-declarations] traits.set_supports_away(true); ^ Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiAP.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiMulti.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiSTA.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/ESP8266WiFiScan.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiClient.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiServer.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o Compiling .pioenvs/opentherm_gateway/lib4d9/ESP8266WiFi/WiFiUdp.cpp.o Compiling .pioenvs/opentherm_gateway/lib189/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o Compiling .pioenvs/opentherm_gateway/lib189/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o Compiling .pioenvs/opentherm_gateway/lib189/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o Compiling .pioenvs/opentherm_gateway/lib189/ESPAsyncTCP-esphome/SyncClient.cpp.o Compiling .pioenvs/opentherm_gateway/lib189/ESPAsyncTCP-esphome/tcp_axtls.c.o Archiving .pioenvs/opentherm_gateway/lib4d9/libESP8266WiFi.a Compiling .pioenvs/opentherm_gateway/lib6f5/Hash/Hash.cpp.o Archiving .pioenvs/opentherm_gateway/lib94b/libArduinoJson-esphomelib.a Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/SPIFFSEditor.cpp.o Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o Archiving .pioenvs/opentherm_gateway/lib189/libESPAsyncTCP-esphome.a Archiving .pioenvs/opentherm_gateway/lib6f5/libHash.a Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/WebHandlers.cpp.o Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/WebRequest.cpp.o Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/WebResponses.cpp.o In file included from /root/.platformio/lib/ESPAsyncWebServer-esphome/src/SPIFFSEditor.cpp:1:0: /root/.platformio/lib/ESPAsyncWebServer-esphome/src/SPIFFSEditor.h:16:101: warning: 'SPIFFS' is deprecated (declared at /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations] SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS); ^ Compiling .pioenvs/opentherm_gateway/lib768/ESPAsyncWebServer-esphome/WebServer.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/ESP8266mDNS.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/LEAmDNS.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/LEAmDNS_Control.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/LEAmDNS_Helpers.cpp.o Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/LEAmDNS_Structs.cpp.o Archiving .pioenvs/opentherm_gateway/lib768/libESPAsyncWebServer-esphome.a Compiling .pioenvs/opentherm_gateway/lib0d3/ESP8266mDNS/LEAmDNS_Transfer.cpp.o Archiving .pioenvs/opentherm_gateway/libFrameworkArduinoVariant.a Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Crypto.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Esp-frag.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Esp-version.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Esp.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/FS.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/FSnoop.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/FunctionalInterrupt.cpp.o Archiving .pioenvs/opentherm_gateway/lib0d3/libESP8266mDNS.a Compiling .pioenvs/opentherm_gateway/FrameworkArduino/HardwareSerial.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/IPAddress.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/MD5Builder.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Print.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Schedule.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/StackThunk.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Stream.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/StreamString.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Tone.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/TypeConversion.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/Updater.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/WMath.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/WString.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/abi.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/base64.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/cbuf.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/cont.S.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/cont_util.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_eboot_command.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_features.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_flash_quirks.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_flash_utils.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_i2s.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_main.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_noniso.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_phy.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_postmortem.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_si2c.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_sigma_delta.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_spi_utils.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_timer.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_waveform.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring_analog.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring_digital.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/core_esp8266_wiring_shift.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/crc32.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/debug.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/flash_hal.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/gdb_hooks.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/heap.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/libb64/cdecode.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/libb64/cencode.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/libc_replacements.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/sntp-lwip2.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs/spiffs_cache.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs/spiffs_check.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs/spiffs_gc.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/spiffs_api.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/sqrt32.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/time.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/uart.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/umm_malloc/umm_info.c.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/umm_malloc/umm_integrity.c.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/umm_malloc/umm_local.c.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/umm_malloc/umm_malloc.cpp.o Compiling .pioenvs/opentherm_gateway/FrameworkArduino/umm_malloc/umm_poison.c.o Archiving .pioenvs/opentherm_gateway/libFrameworkArduino.a Linking .pioenvs/opentherm_gateway/firmware.elf Retrieving maximum program size .pioenvs/opentherm_gateway/firmware.elf Checking size .pioenvs/opentherm_gateway/firmware.elf RAM: [===== ] 46.7% (used 38280 bytes from 81920 bytes) Flash: [==== ] 41.9% (used 438076 bytes from 1044464 bytes) Building .pioenvs/opentherm_gateway/firmware.bin

mihsu81 commented 3 years ago

Hi @whxciotw, Ignoring the compilation warnings about the deprecated approach, are you able to set the target temperature, or is the room_setpoint reverting immediately to the value set by the physical thermostat? I'm having this issue and wandering if it's an issue with my Daikin D2CND gas boiler.

Thanks in advance.

mihsu81 commented 2 years ago

@whxciotw the latest commit from the 12th of January fixed this issue. Thanks @wichers.