Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Panasonic Climate Interface with optional CN-CNT cable - compilation error
Submitted by aladin on September 24, 2022
Expires on September 24, 2023 at 11:45 AM (9 months from now)

INFO Reading configuration /config/esphome/panasonic-climate.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing panasonic-climate (board: mhetesp32minikit; framework: arduino; platform: platformio/espressif32 @ 3.5.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <AsyncTCP-esphome> 1.2.2
|-- <WiFi> 1.0
|-- <FS> 1.0
|-- <Update> 1.0
|-- <ESPAsyncWebServer-esphome> 2.1.0
|   |-- <AsyncTCP-esphome> 1.2.2
|-- <DNSServer> 1.1.0
|-- <ESPmDNS> 1.0
|-- <ArduinoJson> 6.18.5
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/api_connection.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/api_server.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/list_entities.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/proto.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/api/user_services.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/climate/climate.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/climate/climate_mode.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/climate/climate_traits.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/dallas/dallas_component.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/dallas/esp_one_wire.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/esp32/core.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/esp32/gpio_arduino.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/esp32/gpio_idf.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/esp32/preferences.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/json/json_util.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/logger/logger.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/md5/md5.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/network/util.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/panasonic_ac/esppac.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/panasonic_ac/esppac_cnt.cpp.o
Compiling /data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/panasonic_ac/esppac_wlan.cpp.o
src/esphome/components/panasonic_ac/esppac.cpp: In member function 'void esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)':
src/esphome/components/panasonic_ac/esppac.cpp:187:4: error: no matching function for call to 'esphome::select::Select::add_on_state_callback(esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)::<lambda(const string&, size_t)>)'
   });
    ^
In file included from src/esphome/components/panasonic_ac/esppac.h:4:0,
                 from src/esphome/components/panasonic_ac/esppac.cpp:1:
src/esphome/components/select/select.h:60:8: note: candidate: void esphome::select::Select::add_on_state_callback(std::function<void(std::__cxx11::basic_string<char>)>&&)
   void add_on_state_callback(std::function<void(std::string)> &&callback);
        ^
src/esphome/components/select/select.h:60:8: note:   no known conversion for argument 1 from 'esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)::<lambda(const string&, size_t)>' to 'std::function<void(std::__cxx11::basic_string<char>)>&&'
src/esphome/components/panasonic_ac/esppac.cpp: In member function 'void esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)':
src/esphome/components/panasonic_ac/esppac.cpp:196:4: error: no matching function for call to 'esphome::select::Select::add_on_state_callback(esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)::<lambda(const string&, size_t)>)'
   });
    ^
In file included from src/esphome/components/panasonic_ac/esppac.h:4:0,
                 from src/esphome/components/panasonic_ac/esppac.cpp:1:
src/esphome/components/select/select.h:60:8: note: candidate: void esphome::select::Select::add_on_state_callback(std::function<void(std::__cxx11::basic_string<char>)>&&)
   void add_on_state_callback(std::function<void(std::string)> &&callback);
        ^
src/esphome/components/select/select.h:60:8: note:   no known conversion for argument 1 from 'esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)::<lambda(const string&, size_t)>' to 'std::function<void(std::__cxx11::basic_string<char>)>&&'
*** [/data/panasonic-climate/.pioenvs/panasonic-climate/src/esphome/components/panasonic_ac/esppac.cpp.o] Error 1
========================= [FAILED] Took 88.68 seconds =========================