Closed chris-kuhr closed 1 year ago
Thanks for reporting this issue. Unfortunately I have no experience with ESPhome. Will look at your logs later today if time permits to see if I can help.
Here is a repo that utilizes this one and is included with a wrapper: https://github.com/marianomd/acs712-esphome.git
/config/.esphome/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:70:16: error: macro "yield" passed 1 arguments, but takes just 0
void yield(void);
This is an ESP32 error, yield() is not used in the ACS712 version 0.3.7, so the library does not cause this.
The other errors look like linking errors, they refer to "timing" functions and a mismatch in definitions in esphome::
millis(), micros(), delay(), delayMicroseconds()
There is a problem of redefinition with includes:
So I expect one of them should be removed (or patched), or ??? Disclaimer: no ESPhome experience
Q: if you remove the ACS712 library from the project, are all errors gone?
So, as far as I can tell there is no problem pointing to the ACS712 library. All errors seem to be ESP32 / ESPhome related.
Here is a repo that utilizes this one and is included with a wrapper: https://github.com/marianomd/acs712-esphome.git
Think I understand that code, and it seems nowhere related to the errors you see.
Thanks for the clarification. And yes, without it, it compiles just fine. Here the output:
INFO Reading configuration /config/energy-probe.yaml...
WARNING GPIO12 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing energy-probe-appliance (board: esp32-poe-iso; framework: arduino; platform: platformio/espressif32@5.3.0)
--------------------------------------------------------------------------------
Removing unused dependencies...
Library Manager: Removing ACS712 @ 0.3.7+sha.c56d3ce
INFO Removing ACS712 @ 0.3.7+sha.c56d3ce
Library Manager: ACS712@0.3.7+sha.c56d3ce has been removed!
INFO ACS712@0.3.7+sha.c56d3ce has been removed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
|-- noise-c @ 0.1.4
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/adc/adc_sensor.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ethernet/esp_eth_phy_jl1101.c.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ethernet/ethernet_component.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/mdns/mdns_host.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/network/util.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/ota/ota_component.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/sensor/automation.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/sensor/filter.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/sensor/sensor.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/components/socket/socket.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/application.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/color.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/component.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/component_iterator.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/controller.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/log.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/string_ref.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/time.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/esphome/core/util.cpp.o
Compiling .pioenvs/energy-probe-appliance/src/main.cpp.o
Building .pioenvs/energy-probe-appliance/bootloader.bin
Generating partitions .pioenvs/energy-probe-appliance/partitions.bin
Creating esp32 image...
Successfully created esp32 image.
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFi.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiClient.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib18f/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/energy-probe-appliance/lib3c3/ESPmDNS/ESPmDNS.cpp.o
Compiling .pioenvs/energy-probe-appliance/libb83/Update/HttpsOTAUpdate.cpp.o
Compiling .pioenvs/energy-probe-appliance/libb83/Update/Updater.cpp.o
Archiving .pioenvs/energy-probe-appliance/lib18f/libWiFi.a
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_core/ed25519/core_ed25519.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_core/ed25519/core_ristretto255.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_hash/crypto_hash.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
Archiving .pioenvs/energy-probe-appliance/lib3c3/libESPmDNS.a
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_hash/sha256/hash_sha256.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
Archiving .pioenvs/energy-probe-appliance/libb83/libUpdate.a
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_stream/crypto_stream.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/crypto_verify/sodium/verify.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/sodium/codecs.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/sodium/core.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/sodium/runtime.c.o
Compiling .pioenvs/energy-probe-appliance/lib205/libsodium/sodium/utils.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/openssl/cipher-aesgcm.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/cipher-aesgcm.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/cipher-chachapoly.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/dh-curve25519.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/hash-blake2b.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/hash-blake2s.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/ref/hash-sha256.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/sodium/cipher-aesgcm.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/sodium/cipher-chachapoly.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/sodium/dh-curve25519.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/sodium/hash-blake2b.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/backend/sodium/hash-sha256.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/aes/rijndael-alg-fst.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/blake2/blake2b.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/blake2/blake2s.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/chacha/chacha.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/donna/curve25519-donna-c64.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/donna/curve25519-donna.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/donna/poly1305-donna.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/sha2/sha256.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/sha2/sha512.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/crypto/x25519/x25519.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/cipherstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/dhstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/errors.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/handshakestate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/hashstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/internal.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/names.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/patterns.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/rand_os.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/rand_sodium.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/randstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/signstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/symmetricstate.c.o
Compiling .pioenvs/energy-probe-appliance/lib588/noise-c/protocol/util.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/Esp.cpp.o
Archiving .pioenvs/energy-probe-appliance/lib588/libnoise-c.a
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/HWCDC.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/HardwareSerial.cpp.o
Archiving .pioenvs/energy-probe-appliance/lib205/libsodium.a
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/USB.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/USBCDC.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/USBMSC.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/main.cpp.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/energy-probe-appliance/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/energy-probe-appliance/libFrameworkArduino.a
Linking .pioenvs/energy-probe-appliance/firmware.elf
RAM: [= ] 10.4% (used 34240 bytes from 327680 bytes)
Flash: [=== ] 33.5% (used 613829 bytes from 1835008 bytes)
Building .pioenvs/energy-probe-appliance/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin([".pioenvs/energy-probe-appliance/firmware.bin"], [".pioenvs/energy-probe-appliance/firmware.elf"])
Wrote 0xa6300 bytes to file /config/.esphome/build/energy-probe-appliance/.pioenvs/energy-probe-appliance/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 87.96 seconds =========================
@chris-kuhr Any progress made with this issue? Can it be closed (as it is not this library related) ?
not yet, the author of the library wanted to look at it, when he finds the time. no news since...
As this issue is open for two months with no progress I close it. Feel free to reopen when new information is available
Hi,
I am running ESPHome in Docker on an RPi4B 2G. My other devices work just fine on the Olimex ESP32-PoE-ISO. I saw the erros shwon below in my installation and updated the docker image just an hour ago, but the errors persist.
Here are the logs: