-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant upload something wrong in code? #2
Comments
Can you share the errors your seeing? |
thanks for the reply..
add the error log from HA
regard
…________________________________
Från: Chris Mullins ***@***.***>
Skickat: den 30 december 2022 18:05
Till: sidoh/motor_driver_pcb ***@***.***>
Kopia: berne88 ***@***.***>; Author ***@***.***>
Ämne: Re: [sidoh/motor_driver_pcb] cant upload something wrong in code? (Issue #2)
Can you share the errors your seeing?
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMFRSJLJSF6N57OLOLCMZXTWP4I33ANCNFSM6AAAAAATNAJYCI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
INFO Reading configuration /config/esphome/garage.yaml...
WARNING 'device_name': Using the '_' (underscore) character in the hostname is discouraged as it can cause problems with some DHCP and local name services. For more information, see https://esphome.io/guides/faq.html#why-shouldn-t-i-use-underscores-in-my-device-name
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting /data/device_name/.pioenvs
INFO Deleting /data/device_name/.piolibdeps
INFO Compiling app...
Processing device_name (board: d1_mini; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------
Library Manager: Installing ottowinter/ESPAsyncTCP-esphome @ 1.2.3
INFO Installing ottowinter/ESPAsyncTCP-esphome @ 1.2.3
Unpacking [####################################] 100%
Library Manager: ***@***.*** has been installed!
INFO ***@***.*** has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
Unpacking [####################################] 100%
Library Manager: ***@***.*** has been installed!
INFO ***@***.*** has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking [####################################] 100%
Library Manager: ***@***.*** has been installed!
INFO ***@***.*** has been installed!
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- ESPAsyncTCP-esphome @ 1.2.3
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- ESPAsyncTCP-esphome @ 1.2.3
| |-- Hash @ 1.0
| |-- ESP8266WiFi @ 1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- ArduinoJson @ 6.18.5
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/a4988/a4988.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/api_connection.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/api_server.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/list_entities.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/proto.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/api/user_services.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/cover/cover.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/esp8266/core.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/esp8266/gpio.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/esp8266/preferences.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/gpio/output/gpio_binary_output.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/json/json_util.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/logger/logger.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/md5/md5.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/mdns/mdns_esp_idf.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/network/util.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/output/automation.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/output/float_output.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/socket/socket.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/stepper/stepper.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/template/cover/template_cover.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/web_server/list_entities.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/web_server/web_server.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/application.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/color.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/component.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/component_iterator.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/controller.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/entity_base.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/helpers.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/log.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/scheduler.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/esphome/core/util.cpp.o
Compiling /data/device_name/.pioenvs/device_name/src/main.cpp.o
Generating LD script /data/device_name/.pioenvs/device_name/ld/local.eagle.app.v6.common.ld
Compiling /data/device_name/.pioenvs/device_name/lib38f/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Compiling /data/device_name/.pioenvs/device_name/lib38f/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
Compiling /data/device_name/.pioenvs/device_name/lib38f/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o
Compiling /data/device_name/.pioenvs/device_name/lib38f/ESPAsyncTCP-esphome/SyncClient.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:581:62: error: '$' was not declared in this scope
581 | end_position = new globals::RestoringGlobalsComponent<int>(${end_position});
| ^
Compiling /data/device_name/.pioenvs/device_name/lib38f/ESPAsyncTCP-esphome/tcp_axtls.c.o
Compiling /data/device_name/.pioenvs/device_name/libaf0/Hash/Hash.cpp.o
Compiling /data/device_name/.pioenvs/device_name/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o
Archiving /data/device_name/.pioenvs/device_name/lib38f/libESPAsyncTCP-esphome.a
Compiling /data/device_name/.pioenvs/device_name/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o
*** [/data/device_name/.pioenvs/device_name/src/main.cpp.o] Error 1
========================= [FAILED] Took 80.17 seconds =========================
|
I'm guessing you might have an older version of esphome installed. Maybe try updating it? https://esphome.io/guides/faq.html#how-do-i-update-to-the-latest-version |
I am using Home assistent, and esphome. I have the lates .V of Current version: 2022.12.3 And what line to change target? Is a lot of target in the code🤯 |
If anything is out of date, it'd be esphome. My guess is you're using a version of esphome that doesn't know how to deal with variables. Try running
to upgrade esphome. |
Maybe the ESPhome in HA is diffrent form the free standing esphome. i have the latest on it all, system, esp, |
You don't need to use the esphome bundled with HomeAssistant for this part. This step is generating some C++ code which is then compiled into a firmware binary you upload to the ESP8266. You can do it on any machine. This is working for me:
Could you also paste the contents of |
Hello
i getting error when trying to upload the code?
i guess its this initial_value: '${end_position}'
any fix?
The text was updated successfully, but these errors were encountered: