schmurtzm / Teleinfo-TIC-with-ESPhome

Teleinfo / TIC with ESPhome compatible ESP8266/Wemos and ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problème pour compiler

Greg50100 opened this issue · comments

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/espressif8266@2.6.2)

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
    |-- 1.2.3
    | |-- 1.0
    |-- 1.2.7
    | |-- 1.2.3
    | | |-- 1.0
    | |-- 1.0
    | |-- 1.0
    | |-- 5.13.3
    |-- 1.0
    |-- 1.2
    | |-- 1.0
    |-- 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 ==========================`