wichers / esphome-opentherm

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

Errors when compiling for ESPHome 2022.3.0 #5

Closed mihsu81 closed 1 year ago

mihsu81 commented 2 years ago

Hi @wichers,

When compiling for ESPHome 2022.3.0 I'm getting the below errors about the binary sensor.

Any suggestions?

Thanks in advnce.

INFO Reading configuration /config/esphome/opentherm-gateway.yaml...
INFO Detected timezone 'Europe/Bucharest'
INFO Generating C++ source...
INFO Compiling app...
Processing opentherm-gateway (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/opentherm-gateway/.pioenvs/opentherm-gateway/src/main.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiGeneric.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiMulti.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiSTA.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiScan.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiServer.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/WiFi/WiFiUdp.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib01c/FS/FS.cpp.o
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib01c/FS/vfs_api.cpp.o
Archiving /data/opentherm-gateway/.pioenvs/opentherm-gateway/lib64d/libWiFi.a
/config/esphome/opentherm-gateway.yaml: In lambda function:
/config/esphome/opentherm-gateway.yaml:78:51: error: no matching function for call to 'esphome::binary_sensor::BinarySensor::BinarySensor(const char [10])'
In file included from src/esphome/core/application.h:13:0,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor()
   explicit BinarySensor();
            ^
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note:   candidate expects 0 arguments, 1 provided
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(const esphome::binary_sensor::BinarySensor&)
 class BinarySensor : public EntityBase {
       ^
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [10]' to 'const esphome::binary_sensor::BinarySensor&'
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(esphome::binary_sensor::BinarySensor&&)
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [10]' to 'esphome::binary_sensor::BinarySensor&&'
/config/esphome/opentherm-gateway.yaml:80:53: error: no matching function for call to 'esphome::binary_sensor::BinarySensor::BinarySensor(const char [11])'
In file included from src/esphome/core/application.h:13:0,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor()
   explicit BinarySensor();
            ^
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note:   candidate expects 0 arguments, 1 provided
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(const esphome::binary_sensor::BinarySensor&)
 class BinarySensor : public EntityBase {
       ^
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [11]' to 'const esphome::binary_sensor::BinarySensor&'
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(esphome::binary_sensor::BinarySensor&&)
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [11]' to 'esphome::binary_sensor::BinarySensor&&'
/config/esphome/opentherm-gateway.yaml:82:49: error: no matching function for call to 'esphome::binary_sensor::BinarySensor::BinarySensor(const char [9])'
In file included from src/esphome/core/application.h:13:0,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor()
   explicit BinarySensor();
            ^
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note:   candidate expects 0 arguments, 1 provided
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(const esphome::binary_sensor::BinarySensor&)
 class BinarySensor : public EntityBase {
       ^
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [9]' to 'const esphome::binary_sensor::BinarySensor&'
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(esphome::binary_sensor::BinarySensor&&)
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [9]' to 'esphome::binary_sensor::BinarySensor&&'
/config/esphome/opentherm-gateway.yaml:84:65: error: no matching function for call to 'esphome::binary_sensor::BinarySensor::BinarySensor(const char [17])'
In file included from src/esphome/core/application.h:13:0,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor()
   explicit BinarySensor();
            ^
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note:   candidate expects 0 arguments, 1 provided
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(const esphome::binary_sensor::BinarySensor&)
 class BinarySensor : public EntityBase {
       ^
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [17]' to 'const esphome::binary_sensor::BinarySensor&'
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(esphome::binary_sensor::BinarySensor&&)
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [17]' to 'esphome::binary_sensor::BinarySensor&&'
/config/esphome/opentherm-gateway.yaml:86:65: error: no matching function for call to 'esphome::binary_sensor::BinarySensor::BinarySensor(const char [17])'
In file included from src/esphome/core/application.h:13:0,
                 from src/esphome/components/api/api_connection.h:4,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor()
   explicit BinarySensor();
            ^
src/esphome/components/binary_sensor/binary_sensor.h:28:12: note:   candidate expects 0 arguments, 1 provided
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(const esphome::binary_sensor::BinarySensor&)
 class BinarySensor : public EntityBase {
       ^
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [17]' to 'const esphome::binary_sensor::BinarySensor&'
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note: candidate: esphome::binary_sensor::BinarySensor::BinarySensor(esphome::binary_sensor::BinarySensor&&)
src/esphome/components/binary_sensor/binary_sensor.h:26:7: note:   no known conversion for argument 1 from 'const char [17]' to 'esphome::binary_sensor::BinarySensor&&'
Compiling /data/opentherm-gateway/.pioenvs/opentherm-gateway/libbc6/Update/HttpsOTAUpdate.cpp.o
*** [/data/opentherm-gateway/.pioenvs/opentherm-gateway/src/main.cpp.o] Error 1
========================= [FAILED] Took 27.03 seconds =========================
piio commented 1 year ago

Should be fixed by https://github.com/wichers/esphome-opentherm/pull/6

mihsu81 commented 1 year ago

@piio Confirming it working now. Thanks a lot.