Teleinfo-TIC-with-ESPhome
Teleinfo-TIC-with-ESPhome copied to clipboard
Problème pour compiler
Bonjour,
Je rencontre un problème dès lors que veux compiler voici le message. J'ai bien placé le fichier my_tic avec le dossier src.
Merci
INFO Reading configuration /config/esphome/test.yaml... INFO Generating C++ source... INFO Compiling app... INFO Running: platformio run -d /config/esphome/test Processing test (board: nodemcuv2; framework: arduino; platform: platformio/[email protected])
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:
- framework-arduinoespressif8266 3.20704.0 (2.7.4)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.20800.0 (2.8.0)
- toolchain-xtensa 2.40802.200502 (4.8.2)
Library Manager: Installing Update
Library Manager: Already installed, built-in library
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
| |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
| |-- <ESPAsyncTCP-esphome> 1.2.3
| | |-- <ESP8266WiFi> 1.0
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ArduinoJson-esphomelib> 5.13.3
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <ArduinoJson-esphomelib> 5.13.3
Compiling /data/test/.pioenvs/test/src/main.cpp.o
Compiling /data/test/.pioenvs/test/lib0d3/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling /data/test/.pioenvs/test/lib0d3/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling /data/test/.pioenvs/test/lib0d3/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
/config/esphome/test.yaml: In lambda function:
/config/esphome/test.yaml:58:21: error: 'MyTicComponent' has not been declared
auto my_tic = ${init}
^
/config/esphome/test.yaml:60:21: error: could not convert '{my_tic}' from '
' to 'std::vectoresphome::Component*' return {my_tic}; ^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:80:21: error: 'MyTicComponent' has not been declared auto my_tic = ${init} ^ /config/esphome/test.yaml:81:100: error: could not convert '{ , , , }' from ' ' to 'std::vectoresphome::sensor::Sensor*' return {my_tic->sensor_IINST, my_tic->sensor_ISOUSC, my_tic->sensor_PAPP, my_tic->sensor_BASE}; ^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:105:21: error: 'MyTicComponent' has not been declared auto my_tic = ${init} ^ /config/esphome/test.yaml:106:34: error: could not convert '{ }' from ' ' to 'std::vectoresphome::text_sensor::TextSensor*' return {my_tic->sensor_ADCO}; ^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:119:21: error: 'MyTicComponent' has not been declared auto my_tic = ${init} ^ /config/esphome/test.yaml:120:20: error: could not convert '{my_tic}' from ' ' to 'std::vectoresphome::switch_::Switch*' return{my_tic}; ^ Archiving /data/test/.pioenvs/test/libFrameworkArduinoVariant.a Compiling /data/test/.pioenvs/test/FrameworkArduino/Crypto.cpp.o Compiling /data/test/.pioenvs/test/FrameworkArduino/Esp-frag.cpp.o /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:61:3: warning: control reaches end of non-void function [-Wreturn-type]
déclaration des sensors numérique
^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:82:3: warning: control reaches end of non-void function [-Wreturn-type] sensors: ^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:107:3: warning: control reaches end of non-void function [-Wreturn-type] text_sensors: ^ /config/esphome/test.yaml: In lambda function: /config/esphome/test.yaml:121:3: warning: control reaches end of non-void function [-Wreturn-type] switches: ^ *** [/data/test/.pioenvs/test/src/main.cpp.o] Error 1 ========================== [FAILED] Took 9.94 seconds ==========================`