Skip to content
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

basic demo configuration error + cleanup + qq (#4717) #13

Open
fuef opened this issue Aug 26, 2024 · 9 comments
Open

basic demo configuration error + cleanup + qq (#4717) #13

fuef opened this issue Aug 26, 2024 · 9 comments

Comments

@fuef
Copy link

fuef commented Aug 26, 2024

esphome --version
Version: 2024.8.0
pio --version
PlatformIO Core, version 6.1.15

@nickolay, I was trying to follow the steps on README, and it didn't work.

ota syntax error
INFO ESPHome 2024.8.0
INFO Reading configuration basic.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
Failed config

ota.unknown: [source basic.yaml:47]

'ota' requires a 'platform' key but it was not specified.

I'd guess, with the ESPHome version update, basic.yaml requires ota key to be aligned with the new reality and get a platform subkey?

With reference to your observation, there seem to be a cleaner solution which doesn't require much pinning. I have to confess I dislike platrormio, because it solves Microsoft's problem, not mine. The whole esphome.platformio_options branch can be safely removed (yay!) in exchange for a seemingly compatible esp32.board: esp32s3box.

Here is the patch proposed:

basic.yaml.patch
--- /dev/fd/11	2024-08-26 16:19:57.000000000 +0100
+++ basic.yaml	2024-08-26 16:10:56.000000000 +0100
@@ -3,24 +2,0 @@
-  platformio_options:
-    # Unless noted otherwise, based on https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/blob/1eb6119fc31fcff7a6bafecb09f4225313859fc5/examples/demo/platformio.ini#L37
-    upload_speed: 921600
-    monitor_speed: 115200
-    board_build.mcu: esp32s3
-    board_build.f_cpu: 240000000L
-    board_build.arduino.memory_type: qspi_opi
-    board_build.flash_size: 16MB
-    board_build.flash_mode: qio
-    board_build.flash_type: qspi
-    board_build.psram_type: opi
-    board_build.memory_type: qspi_opi
-    board_build.boot_freq: 80m
-    platform_packages:
-      - "toolchain-riscv32-esp @8.4.0+2021r2-patch5"
-    build_flags:  # the first three defines are required for the screen library to function.
-      - "-DBOARD_HAS_PSRAM"
-      - "-DARDUINO_RUNNING_CORE=0"  # TODO: this conflicts with the value from platformio's idedata, spewing a lot of warnings during the build.
-      - "-DARDUINO_EVENT_RUNNING_CORE=0"  # and this too
-      # In addition to lilygo's settings:
-      # To enable reading logs over USB until `hardware_uart: USB_CDC` support
-      # is added to `logger:`, as detailed in <https://github.com/esphome/feature-requests/issues/1906>:
-      - "-DARDUINO_USB_MODE=1"
-      - "-DARDUINO_USB_CDC_ON_BOOT=1"
@@ -29,3 +5 @@
-  variant: esp32s3
-  board: esp32-s3-devkitc-1
-
+  board: esp32s3box
@@ -34,4 +7,0 @@
-    # Just like in <https://community.home-assistant.io/t/enable-usb-cdc-to-log-hello-world-to-esp32-s3-dev-board-for-esphome/463164/10>
-    # I had problems with newer versions; the following combination happens to work, so using it for now.
-    version: 2.0.3
-    platform_version: 5.1.1
@@ -41 +10,0 @@
-  # hardware_uart: USB_CDC  # see note about <https://github.com/esphome/feature-requests/issues/1906> above
@@ -46,0 +16 @@
+- platform: esphome
@@ -60,4 +30,2 @@
-  source:
-    type: local
-    path: components/
-  components: ["t547"]
+  - source: github://nickolay/esphome-lilygo-t547plus
+    components: ["t547"]
@@ -70 +38 @@
-      it.line(0, 0, 960, 540);
\ No newline at end of file
+      it.line(0, 0, 960, 540);

And here is a test log:

esphome run basic.yaml
esphome run basic.yaml  
INFO ESPHome 2024.8.0
INFO Reading configuration basic.yaml...
INFO Generating C++ source...
INFO Compiling app...
/Users/user/Downloads/esphome/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
Processing lilygo (board: esp32s3box; framework: arduino; platform: platformio/[email protected])
---------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing git+https://github.com/Xinyuan-LilyGO/LilyGo-EPD47
INFO Installing git+https://github.com/Xinyuan-LilyGO/LilyGo-EPD47
git version 2.37.1 (Apple Git-137.1)
Cloning into '/Users/user/.platformio/.cache/tmp/pkg-installing-kxga6wxh'...
remote: Enumerating objects: 209, done.
remote: Counting objects: 100% (209/209), done.
remote: Compressing objects: 100% (165/165), done.
remote: Total 209 (delta 29), reused 156 (delta 26), pack-reused 0 (from 0)
Receiving objects: 100% (209/209), 45.01 MiB | 2.35 MiB/s, done.
Resolving deltas: 100% (29/29), done.
Library Manager: [email protected]+sha.4a49b32 has been installed!
INFO [email protected]+sha.4a49b32 has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing Wire
INFO Installing Wire
/Users/user/Downloads/esphome/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
|-- Wire @ 2.0.0
|-- LilyGoEPD47 @ 0.3.0+sha.4a49b32
Compiling .pioenvs/lilygo/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/binary_sensor/automation.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/binary_sensor/binary_sensor.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/binary_sensor/filter.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/display/display.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/display/display_buffer.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/display/rect.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/esphome/ota/ota_esphome.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/gpio/binary_sensor/gpio_binary_sensor.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger_esp32.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger_esp8266.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger_host.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger_libretiny.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/logger/logger_rp2040.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_host.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_libretiny.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/network/util.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend_arduino_libretiny.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/safe_mode/safe_mode.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/socket/lwip_sockets_impl.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/socket/socket.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/t547/t547.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component_libretiny.cpp.o
Compiling .pioenvs/lilygo/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/application.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/bytebuffer.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/color.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/component.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/component_iterator.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/controller.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/log.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/ring_buffer.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/string_ref.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/time.cpp.o
Compiling .pioenvs/lilygo/src/esphome/core/util.cpp.o
Compiling .pioenvs/lilygo/src/main.cpp.o
Building .pioenvs/lilygo/bootloader.bin
Creating esp32s3 image...
Successfully created esp32s3 image.
Generating partitions .pioenvs/lilygo/partitions.bin
Compiling .pioenvs/lilygo/lib233/WiFi/WiFi.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiClient.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/lilygo/lib233/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/lilygo/lib6c9/ESPmDNS/ESPmDNS.cpp.o
Compiling .pioenvs/lilygo/libd8f/Update/HttpsOTAUpdate.cpp.o
Compiling .pioenvs/lilygo/libd8f/Update/Updater.cpp.o
Archiving .pioenvs/lilygo/lib233/libWiFi.a
Indexing .pioenvs/lilygo/lib233/libWiFi.a
Compiling .pioenvs/lilygo/libfdc/Wire/Wire.cpp.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/ed047tc1.c.o
Archiving .pioenvs/lilygo/lib6c9/libESPmDNS.a
Indexing .pioenvs/lilygo/lib6c9/libESPmDNS.a
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/epd_driver.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/font.c.o
Archiving .pioenvs/lilygo/libd8f/libUpdate.a
Indexing .pioenvs/lilygo/libd8f/libUpdate.a
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/i2s_data_bus.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/libjpeg/libjpeg.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/rmt_pulse.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/touch.cpp.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/adler32.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/compress.c.o
Archiving .pioenvs/lilygo/libfdc/libWire.a
Indexing .pioenvs/lilygo/libfdc/libWire.a
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/crc32.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/deflate.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/gzclose.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/gzlib.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/gzread.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/gzwrite.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/infback.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/inffast.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/inflate.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/inftrees.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/trees.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/uncompr.c.o
Compiling .pioenvs/lilygo/libc8d/LilyGoEPD47/zlib/zutil.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/FirmwareMSC.cpp.o
Archiving .pioenvs/lilygo/libc8d/libLilyGoEPD47.a
Indexing .pioenvs/lilygo/libc8d/libLilyGoEPD47.a
Compiling .pioenvs/lilygo/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/HWCDC.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/USB.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/USBCDC.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/USBMSC.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/main.cpp.o
Compiling .pioenvs/lilygo/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/lilygo/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/lilygo/libFrameworkArduino.a
Indexing .pioenvs/lilygo/libFrameworkArduino.a
Linking .pioenvs/lilygo/firmware.elf
RAM:   [=         ]  12.4% (used 40704 bytes from 327680 bytes)
Flash: [====      ]  42.2% (used 774337 bytes from 1835008 bytes)
Building .pioenvs/lilygo/firmware.bin
Creating esp32s3 image...
Successfully created esp32s3 image.
esp32_create_combined_bin([".pioenvs/lilygo/firmware.bin"], [".pioenvs/lilygo/firmware.elf"])
Wrote 0xcd240 bytes to file /Users/user/Downloads/display/.esphome/build/lilygo/.pioenvs/lilygo/firmware.factory.bin, ready to flash to offset 0x0
esp32_copy_ota_bin([".pioenvs/lilygo/firmware.bin"], [".pioenvs/lilygo/firmware.elf"])
======================================================= [SUCCESS] Took 74.87 seconds =======================================================
INFO Successfully compiled program.
Found multiple options for uploading, please choose one:
[1] /dev/cu.usbmodem14201 (USB JTAG/serial debug unit)
[2] Over The Air (lilygo.local)
(number): 1
esptool.py v4.7.0
Serial port /dev/cu.usbmodem14201
Connecting...
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
Crystal is 40MHz
MAC: dc:da:0c:18:ff:68
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 16MB
Flash will be erased from 0x00010000 to 0x000cdfff...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Compressed 774720 bytes to 508841...
Wrote 774720 bytes (508841 compressed) at 0x00010000 in 5.6 seconds (effective 1099.0 kbit/s)...
Hash of data verified.
Warning: Image file at 0x0 is protected with a hash checksum, so not changing the flash size setting. Use the --flash_size=keep option instead of --flash_size=16MB in order to remove this warning, or use the --dont-append-digest option for the elf2image command in order to generate an image file without a hash checksum
Compressed 15040 bytes to 10364...
Wrote 15040 bytes (10364 compressed) at 0x00000000 in 0.2 seconds (effective 508.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 525.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 696.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
INFO Successfully uploaded program.
INFO Starting log output from /dev/cu.usbmodem14201 with baud rate 115200
[16:23:37][   157][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
[16:23:37][I][logger:156]: Log initialized
[16:23:37][C][safe_mode:079]: There have been 0 suspected unsuccessful boot attempts
[16:23:37][D][esp32.preferences:114]: Saving 1 preferences to flash...
[16:23:37][V][esp32.preferences:126]: sync: key: 233825507, len: 4
[16:23:37][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[16:23:37][I][app:029]: Running through setup()...
[16:23:37][V][app:030]: Sorting components by setup priority...
[16:23:37][D][binary_sensor:034]: 'Button 1': Sending initial state OFF
[16:23:37][V][t574:015]: Initialize called
[16:23:37][V][t574:032]: Initialize complete
[16:23:37][C][wifi:048]: Setting up WiFi...
[16:23:37][C][wifi:061]: Starting WiFi...
[16:23:37][C][wifi:062]:   Local MAC: DC:DA:0C:18:FF:68
[16:23:37][V][esp32.preferences:059]: nvs_get_blob('944498872'): ESP_ERR_NVS_NOT_FOUND - the key might not be set yet
[16:23:37][V][wifi_esp32:067]: Enabling STA.
[16:23:37][   189][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
[16:23:37][V][wifi_esp32:486][arduino_events]: Event: WiFi ready
[16:23:37][   224][V][WiFiGeneric.cpp:338] _arduino_event_cb(): STA Started
[16:23:37][   224][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
[16:23:37][V][wifi_esp32:497][arduino_events]: Event: WiFi STA start
[16:23:37][D][wifi:482]: Starting scan...
[16:23:37][V][t574:074]: Display called
[16:23:39][V][t574:082]: Display finished (full) (1784ms)
[16:23:39][W][component:237]: Component display took a long time for an operation (2646 ms).
[16:23:39][W][component:238]: Components should block for at most 30 ms.
[16:23:39][W][component:157]: Component wifi set Warning flag: scanning for networks
[16:23:43][  6239][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 128, Status: 0, Results: 22
[16:23:43][  6240][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[16:23:43][V][wifi_esp32:491][arduino_events]: Event: WiFi Scan Done status=0 number=22 scan_id=128
[16:23:43][D][wifi:497]: Found networks:
[16:23:43][I][wifi:541]: - 'PN5S' (88:C3:97:C7:71:09) ▂▄▆█
[16:23:43][D][wifi:542]:     Channel: 1
[16:23:43][D][wifi:543]:     RSSI: -58 dB
[16:23:43][D][wifi:546]: - '' (C6:06:C3:53:C8:B2) ▂▄▆█
[16:23:43][D][wifi:546]: - 'S&D house' (C0:06:C3:53:C8:B2) ▂▄▆█
[16:23:43][D][wifi:546]: - 'QAmMwGNF' (20:91:48:C6:04:9F) ▂▄▆█
[16:23:43][D][wifi:546]: - 'S&D house' (C0:06:C3:53:BE:26) ▂▄▆█
[16:23:43][D][wifi:546]: - '' (C6:06:C3:53:BE:6E) ▂▄▆█
[16:23:43][D][wifi:546]: - 'S&D house' (C0:06:C3:53:BE:6E) ▂▄[D][wifi:546]: - '' (C6:06:C3:53:BE:26) [D][wifi:546]: - 'BT-ZMAKS3' (E4:75:DC:2D:36:[D][wifi:546]: - 'EE WiFi' (7A:75:DC:2D:36:54[D][wifi:546]: - '' (7A:75:DC:2D:36:57) [D][wifi:546]: - '' (04:17:B6:C9:01:34) [D][wifi:546]: - 'SKYE48WR' (3C:45:7A:C2:6B:3[D][wifi:546]: - 'VM4249154' (CC:58:30:22:33:[D][wifi:546]: - '' (CE:58:30:22:33:CF) [D][wifi:546]: - 'SKYBMY7N' (00:A3:88:A1:63:3[D][wifi:546]: - 'VM4012779' (40:0D:10:16:B3:[D][wifi:546]: - 'EE-8JGT52' (B8:6A:F1:FD:C5:[D][wifi:546]: - 'EE WiFi' (7A:A2:22:74:E0:44[D][wifi:546]: - '' (4A:6A:F1:FD:C5:96) [D][wifi:546]: - 'BT-JCA6QG' (04:A2:22:74:E0:[I][wifi:313]: WiFi Connecting to 'PN5S'...
[16:23:43][V][wifi:315]: Connection Params:
[16:23:43][V][wifi:316]:   SSID: 'PN5S'
[16:23:43][V][wifi:319]:   BSSID: 88:C3:97:C7:71:09
[16:23:43][V][wifi:349]:   Password: '3238f29abf'
[16:23:43][V][wifi:354]:   Channel: 1
[16:23:43][V][wifi:363]:   Using DHCP IP
[16:23:43][V][wifi:365]:   Hidden: NO
[16:23:43][V][esp-idf:000][wifi]: E (13774) wifi:
[16:23:43][V][esp-idf:000][wifi]: Association refused temporarily, comeback time 1024 mSec
[16:23:43][V][esp-idf:000][wifi]: 
[16:23:43]
[16:23:45][  8990][V][WiFiGeneric.cpp:360] _arduino_event_cb(): STA Disconnected: SSID: PN5S, BSSID: 88:c3:97:c7:71:09, Reason: 203
[16:23:45][  8990][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[16:23:45][  8991][W][WiFiGeneric.cpp:950] _eventCallback(): Reason: 203 - ASSOC_FAIL
[16:23:45][  8991][D][WiFiGeneric.cpp:966] _eventCallback(): WiFi Reconnect Running
[16:23:45][  8992][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[16:23:45][W][wifi_esp32:532][arduino_events]: Event: Disconnected ssid='PN5S' bssid=88:C3:97:C7:71:09 reason='Association Failed'
[16:23:45][W][wifi:653]: Error while connecting to network.
[16:23:45][D][wifi:697]: Retrying with hidden networks...
[16:23:45][I][wifi:313]: WiFi Connecting to 'PN5S'...
[16:23:45][V][wifi:315]: Connection Params:
[16:23:45][V][wifi:316]:   SSID: 'PN5S'
[16:23:45][V][wifi:319]:   BSSID: 88:C3:97:C7:71:09
[16:23:45][V][wifi:349]:   Password: '3238f29abf'
[16:23:45][V][wifi:354]:   Channel: 1
[16:23:45][V][wifi:363]:   Using DHCP IP
[16:23:45][V][wifi:365]:   Hidden: NO
[16:23:46][  9698][V][WiFiGeneric.cpp:353] _arduino_event_cb(): STA Connected: SSID: PN5S, BSSID: 88:c3:97:c7:71:09, Channel: 1, Auth: WPA2_WPA3_PSK
[16:23:46][  9698][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[16:23:46][V][wifi_esp32:516][arduino_events]: Event: Connected ssid='PN5S' bssid=88:C3:97:C7:71:09 channel=1, authmode=WPA2/WPA3 PSK
[16:23:47][ 10361][V][WiFiGeneric.cpp:367] _arduino_event_cb(): STA Got New IP:192.168.0.61
[16:23:47][ 10361][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[16:23:47][ 10361][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 192.168.0.61, MASK: 255.255.255.0, GW: 192.168.0.1
[16:23:47][V][wifi_esp32:570][arduino_events]: Event: Got IP static_ip=192.168.0.61 gateway=192.168.0.1
[16:23:47][I][wifi:617]: WiFi Connected!
[16:23:47][C][wifi:428]:   Local MAC: DC:DA:0C:18:FF:68
[16:23:47][C][wifi:433]:   SSID: 'PN5S'
[16:23:47][C][wifi:436]:   IP Address: 192.168.0.61
[16:23:47][C][wifi:440]:   BSSID: 88:C3:97:C7:71:09
[16:23:47][C][wifi:441]:   Hostname: 'lilygo'
[16:23:47][C][wifi:443]:   Signal strength: -58 dB ▂▄▆█
[16:23:47][V][wifi:445]:   Priority: -1.0
[16:23:47][C][wifi:447]:   Channel: 1
[16:23:47][C][wifi:448]:   Subnet: 255.255.255.0
[16:23:47][C][wifi:449]:   Gateway: 192.168.0.1
[16:23:47][C][wifi:450]:   DNS1: 192.168.0.1
[16:23:47][C][wifi:451]:   DNS2: 0.0.0.0
[16:23:47][C][api:025]: Setting up Home Assistant API server...
[16:23:47][I][app:062]: setup() finished successfully!
[16:23:47][W][component:170]: Component wifi cleared Warning flag
[16:23:47][W][component:157]: Component api set Warning flag: unspecified
[16:23:47][I][app:100]: ESPHome version 2024.8.0 compiled on Aug 26 2024, 16:23:17
[16:23:47][C][wifi:600]: WiFi:
[16:23:47][C][wifi:428]:   Local MAC: DC:DA:0C:18:FF:68
[16:23:47][C][wifi:433]:   SSID: 'PN5S'
[16:23:47][C][wifi:436]:   IP Address: 192.168.0.61
[16:23:47][C][wifi:440]:   BSSID: 88:C3:97:C7:71:09
[16:23:47][C][wifi:441]:   Hostname: 'lilygo'
[16:23:47][C][wifi:443]:   Signal strength: -58 dB ▂▄▆█
[16:23:47][V][wifi:445]:   Priority: -1.0
[16:23:47][C][wifi:447]:   Channel: 1
[16:23:47][C][wifi:448]:   Subnet: 255.255.255.0
[16:23:47][C][wifi:449]:   Gateway: 192.168.0.1
[16:23:47][C][wifi:450]:   DNS1: 192.168.0.1
[16:23:47][C][wifi:451]:   DNS2: 0.0.0.0
[16:23:47][C][logger:185]: Logger:
[16:23:47][C][logger:186]:   Level: VERBOSE
[16:23:47][C][logger:188]:   Log Baud Rate: 115200
[16:23:47][C][logger:189]:   Hardware UART: USB_CDC
[16:23:47][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button 1'
[16:23:47][C][gpio.binary_sensor:016]:   Pin: GPIO21
[16:23:47][C][t574:053]: T547
[16:23:47][C][t574:053]:   Rotations: 0 °
[16:23:47][C][t574:053]:   Dimensions: 960px x 540px
[16:23:47][C][t574:054]:   Update Interval: 30.0s
[16:23:47][C][mdns:116]: mDNS:
[16:23:47][C][mdns:117]:   Hostname: lilygo
[16:23:47][V][mdns:118]:   Services:
[16:23:47][V][mdns:120]:   - _esphomelib, _tcp, 6053
[16:23:47][V][mdns:122]:     TXT: version = 2024.8.0
[16:23:47][V][mdns:122]:     TXT: mac = dcda0c18ff68
[16:23:47][V][mdns:122]:     TXT: platform = ESP32
[16:23:47][V][mdns:122]:     TXT: board = esp32s3box
[16:23:47][V][mdns:122]:     TXT: network = wifi
[16:23:47][C][esphome.ota:073]: Over-The-Air updates:
[16:23:47][C][esphome.ota:074]:   Address: lilygo.local:3232
[16:23:47][C][esphome.ota:075]:   Version: 2
[16:23:47][C][esphome.ota:078]:   Password configured
[16:23:47][C][safe_mode:018]: Safe Mode:
[16:23:47][C][safe_mode:020]:   Boot considered successful after 60 seconds
[16:23:47][C][safe_mode:021]:   Invoke after 10 boot attempts
[16:23:47][C][safe_mode:023]:   Remain in safe mode for 300 seconds
[16:23:47][C][api:139]: API Server:
[16:23:47][C][api:140]:   Address: lilygo.local:6053
[16:23:47][C][api:144]:   Using noise encryption: NO
[16:24:03][V][t574:074]: Display called
[16:24:04][V][t574:082]: Display finished (full) (1785ms)
[16:24:04][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:24:04][W][component:238]: Components should block for at most 30 ms.
[16:24:33][V][t574:074]: Display called
[16:24:34][V][t574:082]: Display finished (full) (1785ms)
[16:24:34][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:24:34][W][component:238]: Components should block for at most 30 ms.
[16:24:37][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[16:24:37][D][esp32.preferences:114]: Saving 1 preferences to flash...
[16:24:37][V][esp32.preferences:126]: sync: key: 233825507, len: 4
[16:24:37][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[16:25:03][V][t574:074]: Display called
[16:25:04][V][t574:082]: Display finished (full) (1785ms)
[16:25:04][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:25:04][W][component:238]: Components should block for at most 30 ms.
[16:25:33][V][t574:074]: Display called
[16:25:34][V][t574:082]: Display finished (full) (1785ms)
[16:25:34][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:25:34][W][component:238]: Components should block for at most 30 ms.
[16:25:48][D][binary_sensor:036]: 'Button 1': Sending state ON
[16:25:48][D][main:181]: PhysButton Pressed
[16:25:48][D][binary_sensor:036]: 'Button 1': Sending state OFF
[16:26:03][V][t574:074]: Display called
[16:26:04][V][t574:082]: Display finished (full) (1784ms)
[16:26:04][W][component:237]: Component display took a long time for an operation (2646 ms).
[16:26:04][W][component:238]: Components should block for at most 30 ms.
[16:26:33][V][t574:074]: Display called
[16:26:34][V][t574:082]: Display finished (full) (1784ms)
[16:26:34][W][component:237]: Component display took a long time for an operation (2646 ms).
[16:26:34][W][component:238]: Components should block for at most 30 ms.
[16:27:03][V][t574:074]: Display called
[16:27:04][V][t574:082]: Display finished (full) (1785ms)
[16:27:04][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:27:04][W][component:238]: Components should block for at most 30 ms.
[16:27:33][V][t574:074]: Display called
[16:27:34][V][t574:082]: Display finished (full) (1784ms)
[16:27:34][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:27:34][W][component:238]: Components should block for at most 30 ms.
[16:28:03][V][t574:074]: Display called
[16:28:04][V][t574:082]: Display finished (full) (1784ms)
[16:28:04][W][component:237]: Component display took a long time for an operation (2646 ms).
[16:28:04][W][component:238]: Components should block for at most 30 ms.
[16:28:33][V][t574:074]: Display called
[16:28:34][V][t574:082]: Display finished (full) (1785ms)
[16:28:34][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:28:34][W][component:238]: Components should block for at most 30 ms.

I haven't seen much logs with the warning I am getting (see below). It seems to be present with the original esphome.platformio_options as well. Am I in trouble? Or is it just an inexpensive 'slow display'?

The vendor recommends to turn off power from time to time (epd_powerdown()), and not keep power on all the time to avoid permanent display damage. Does your custom platform code take care of this vendor's recommendation? Or do users have to make some independent arrangements?

[16:28:33][V][t574:074]: Display called
[16:28:34][V][t574:082]: Display finished (full) (1785ms)
[16:28:34][W][component:237]: Component display took a long time for an operation (2647 ms).
[16:28:34][W][component:238]: Components should block for at most 30 ms.
@nickolay
Copy link
Owner

ota syntax error

Yep, the esphome people like to make gratuitously-incompatible changes.

seemingly compatible esp32.board: esp32s3box.

Right. This is similar to what I did last NY, then I wasted a day tracking down the task_wdt crash (esphome/issues#5317). The proper way to fix this is get the mentioned fix into ESPHome, then add the board definition to platformio platformio/platform-espressif32#1269

[16:28:34][W][component:237]: Component display took a long time for an operation (2647 ms).

This component is very simple, so re-drawing the screen blocks the main loop. ESPHome doesn't like it and spams the above warning.

The vendor recommends to turn off power from time to time (epd_powerdown())

Where did you see that? We do epd_poweroff()

@fuef
Copy link
Author

fuef commented Aug 28, 2024

ota syntax error

esphome people like to make gratuitously-incompatible changes.

They call it breaking changes on release notes 🤓.

The updated code still doesn't look right. If we were to apply patch < basic.yaml.patch, the correct result would look like follows:

ota:
- platform: esphome
  password: !secret api_ota_password

seemingly compatible esp32.board: esp32s3box.

Right. This is similar to what I did last NY, then I wasted a day tracking down the task_wdt crash (esphome/issues#5317). The proper way to fix this is get the mentioned fix into ESPHome, then add the board definition to platformio platformio/platform-espressif32#1269

That's exactly my point. There is no need to chase self-inflicted bugs and re-invent already existing platformio boards. Strip down your code and both problems will disappear by magic (please, refer to the compilation and run logs above).

For some strange reason, the internet is full of confusion when it comes to ESP32-S3-WROOM-1-N16R8. @xinyuan themselves state Events Run On and Arduino Runs On as Core1 on README, but define it as ARDUINO_RUNNING_CORE=0 and ARDUINO_EVENT_RUNNING_CORE=0 on the boards file.

There is an opinion that stating version: latest is illegal under esp32 section. I wish I've RTFM. Pinning a particular version results in an unnecessary extra maintenance effort. To pin or not to pin, that is the question. Pin it and you'd have to update the code every time the new version is out. Don't pin it and risk that the build process will fail when the new version is out. Remove artificial version which solves unknown problem and enjoy both low maintenance and guaranteed build ability with no extra effort. This is an illustration when unnecessary extra code results in issues, isn't it?

The vendor recommends to turn off power from time to time (epd_powerdown())

We do epd_poweroff()

👍🏻 Thanks a lot for confirming this!

It's been very surprising to discover that the original thread #1109 has become polluted by s3-related discussions which were meant to be confined within #1960. And yes, there is a mention of a new variant V2.4. It seems to be compatible with your display component, thank you!

EDIT: corrected link to Lilygo T5 ePaper 4.7 ESP32-S3 Development Driver Board variant V2.4.

@nickolay
Copy link
Owner

ota syntax error .. The updated code still doesn't look right

You're right, but it works and I've already spent an infinitely more time on this than I would've hoped for...

Strip down your code

Just to be clear, I'm not in any way affiliated with Lilygo. I'm not getting paid by them or anyone really for this. I just bought their board to play around with, and I'm not even using it anymore.

I might agree with your suggestions if you were talking to lilygo. For example I relayed your notice about the mismatch between the board definition and the README to an issue that sits ignored on their repo.

Myself I'm not interested in testing if their board still works with newer PIO/arduino versions and parameters they have not tested it with! You should feel free to fork this repository and use the simpler code, and I'll happily accept PRs mentioning your approach.

I'm willing to switch the base board: to the one you've found (and change the platformio_options overrides, so that the end result matches the current recommendations from the vendor), but that won't happen anytime soon.

This is an illustration when unnecessary extra code results in issues, isn't it?

No, I think this is an illustration of how you managed to pick a more appropriate base board and that things improve over time.

polluted by .. discussions

Both threads have unfortunately turned into support Q&A. Oh well.

new variant V2.4

Not sure I follow, wrong link maybe?

@fuef
Copy link
Author

fuef commented Aug 29, 2024

new variant V2.4

Not sure I follow, wrong link maybe?

Mine bad! The link has updated. Your repository's 'about' section can potentially be extended to the new variant V2.4 (2024-01-15) as well. Someone else has reported having V2.4 on #1109.

And my apologies! I didn't mean any offence.

@fuef fuef closed this as completed Aug 29, 2024
@fuef
Copy link
Author

fuef commented Aug 29, 2024 via email

@fuef
Copy link
Author

fuef commented Nov 4, 2024

I was about to give up on ESPHome in favour of a plain reference code. The way the reference code does partial refresh seems to be far from perfect though. For some strange reason, the whole screen is visibly darker than the partial refresh's window area when it comes to white. In the other words, the whole screen isn't that white when using the reference code.

I came back to this brilliant implementation which produces a much better contrast clock image. The white is much whiter.

Unlike the reference code, this brilliant implementation doesn't do epd_powerdown(). As a result, both green and blue LEDs are always lit.

Reality check: when I see [t574:082]: Display finished (full) (1783ms) the previous L80 would turn off EPD power epd_poweroff() sure thing, wouldn't it?

Oh! And a typo has been spotted! 🤓 L12 shall read TAG = "t547", and not t574.

esphome run t547plus.yaml
[14:53:51][   168][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
[14:53:51][I][logger:156]: Log initialized
[14:53:51][I][app:029]: Running through setup()...
[14:53:51][V][app:030]: Sorting components by setup priority...
[14:53:51][I][i2c.arduino:218]: Performing I2C bus recovery
[14:53:51][   185][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=18 scl=17 freq=100000
[14:53:51][D][binary_sensor:034]: 'Button 1': Sending initial state OFF
[14:53:51][C][PCF8563:013]: Setting up PCF8563...
[14:53:51][D][PCF8563:092]: Read  14:53:52 2024-11-03  STOP:ON CLKOUT:1
[14:53:51][V][t574:015]: Initialize called
[14:53:51][V][t574:032]: Initialize complete
[14:53:51][C][wifi:048]: Setting up WiFi...
[14:53:51][C][wifi:061]: Starting WiFi...
<snip />
[14:53:51][D][wifi:482]: Starting scan...
[14:53:52][D][PCF8563:092]: Read  14:53:52 2024-11-03  STOP:ON CLKOUT:1
[14:53:52][E][PCF8563:054]: Invalid RTC time, not syncing to system clock.
[14:53:53][V][t574:074]: Display called
[14:53:54][V][t574:082]: Display finished (full) (1782ms)
[14:53:54][W][component:237]: Component display took a long time for an operation (2808 ms).
[14:53:54][W][component:238]: Components should block for at most 30 ms.
[14:53:54][W][component:157]: Component wifi set Warning flag: scanning for networks
[14:53:58][  6257][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 128, Status: 0, Results: 22
[14:53:58][  6258][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[14:53:58][V][wifi_esp32:496][arduino_events]: Event: WiFi Scan Done status=0 number=22 scan_id=128
<snip />
[14:54:01][I][wifi:617]: WiFi Connected!
<snip />
[14:54:02][C][sntp:023]: Setting up SNTP...
[14:54:02][I][app:062]: setup() finished successfully!
[14:54:02][W][component:170]: Component wifi cleared Warning flag
[14:54:02][I][app:100]: ESPHome version 2024.10.2 compiled on Nov  3 2024, 14:52:54
<snip />
[14:54:02][C][logger:185]: Logger:
[14:54:02][C][logger:186]:   Level: VERBOSE
[14:54:02][C][logger:188]:   Log Baud Rate: 115200
[14:54:02][C][logger:189]:   Hardware UART: USB_CDC
[14:54:02][C][i2c.arduino:071]: I2C Bus:
[14:54:02][C][i2c.arduino:072]:   SDA Pin: GPIO18
[14:54:02][C][i2c.arduino:073]:   SCL Pin: GPIO17
[14:54:02][C][i2c.arduino:074]:   Frequency: 100000 Hz
[14:54:02][C][i2c.arduino:086]:   Recovery: bus successfully recovered
[14:54:02][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button 1'
[14:54:02][C][gpio.binary_sensor:016]:   Pin: GPIO21
[14:54:02][C][PCF8563:022]: PCF8563:
[14:54:02][C][PCF8563:023]:   Address: 0x51
[14:54:02][C][PCF8563:027]:   Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[14:54:02][C][**t574**:053]: **T547**
[14:54:02][C][t574:053]:   Rotations: 0 °
[14:54:02][C][t574:053]:   Dimensions: 960px x 540px
[14:54:02][C][t574:054]:   Update Interval: 30.0s
[14:54:02][C][sntp:048]: SNTP Time:
[14:54:02][C][sntp:049]:   Server 1: '0.pool.ntp.org'
[14:54:02][C][sntp:050]:   Server 2: '1.pool.ntp.org'
[14:54:02][C][sntp:051]:   Server 3: '2.pool.ntp.org'
[14:54:02][C][sntp:052]:   Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[14:54:02][C][mdns:116]: mDNS:
[14:54:02][C][mdns:117]:   Hostname: lilygo-t547plus
[14:54:02][V][mdns:118]:   Services:
[14:54:02][V][mdns:120]:   - _http, _tcp, 80
[14:54:02][V][mdns:122]:     TXT: version = 2024.10.2
[14:54:02][D][sntp:073]: Synchronized time: 2024-11-03 14:54:02
[14:54:02][D][PCF8563:105]: Write 14:54:02 2024-11-03  OSC:ON CLKOUT:1
[14:54:16][V][t574:074]: Display called
[14:54:18][V][t574:082]: Display finished (full) (1784ms)
[14:54:18][W][component:237]: Component display took a long time for an operation (2787 ms).
[14:54:18][W][component:238]: Components should block for at most 30 ms.
[14:54:46][V][t574:074]: Display called
[14:54:48][V][t574:082]: Display finished (full) (1783ms)
[14:54:48][W][component:237]: Component display took a long time for an operation (2786 ms).
[14:54:48][W][component:238]: Components should block for at most 30 ms.
[14:55:16][V][t574:074]: Display called
[14:55:18][V][t574:082]: Display finished (full) (1785ms)
[14:55:18][W][component:237]: Component display took a long time for an operation (2790 ms).
[14:55:18][W][component:238]: Components should block for at most 30 ms.
[14:55:23][D][binary_sensor:036]: 'Button 1': Sending state ON
[14:55:23][D][main:179]: Button Pressed
[14:55:24][D][binary_sensor:036]: 'Button 1': Sending state OFF
[14:55:26][D][binary_sensor:036]: 'Button 1': Sending state ON
[14:55:26][D][main:179]: Button Pressed
[14:55:27][D][binary_sensor:036]: 'Button 1': Sending state OFF
[14:55:46][V][t574:074]: Display called
[14:55:48][V][t574:082]: Display finished (full) (1784ms)
[14:55:48][W][component:237]: Component display took a long time for an operation (2788 ms).
[14:55:48][W][component:238]: Components should block for at most 30 ms.
[14:56:16][V][t574:074]: Display called
[14:56:18][V][t574:082]: Display finished (full) (1783ms)
[14:56:18][W][component:237]: Component display took a long time for an operation (2790 ms).
[14:56:18][W][component:238]: Components should block for at most 30 ms.
[14:56:46][V][t574:074]: Display called
[14:56:48][V][t574:082]: Display finished (full) (1784ms)
[14:56:48][W][component:237]: Component display took a long time for an operation (2791 ms).
[14:56:48][W][component:238]: Components should block for at most 30 ms.
[14:57:16][V][t574:074]: Display called
[14:57:18][V][t574:082]: Display finished (full) (1784ms)
[14:57:18][W][component:237]: Component display took a long time for an operation (2782 ms).
[14:57:18][W][component:238]: Components should block for at most 30 ms.
[14:57:46][V][t574:074]: Display called
[14:57:48][V][t574:082]: Display finished (full) (1783ms)
[14:57:48][W][component:237]: Component display took a long time for an operation (2781 ms).
[14:57:48][W][component:238]: Components should block for at most 30 ms.
[14:58:16][V][t574:074]: Display called
[14:58:18][V][t574:082]: Display finished (full) (1782ms)
[14:58:18][W][component:237]: Component display took a long time for an operation (2792 ms).
[14:58:18][W][component:238]: Components should block for at most 30 ms.

@fuef fuef reopened this Nov 4, 2024
@nickolay
Copy link
Owner

nickolay commented Nov 4, 2024

You keep mentioning epd_powerdown reportedly being used upstream, but I just don’t see it:

https://github.com/search?q=repo%3AXinyuan-LilyGO%2FLilyGo-EPD47%20epd_powerdown&type=code

@fuef
Copy link
Author

fuef commented Nov 5, 2024

Mine bad! It's epd_poweroff_all() what switches blue LED off. I've got used to it with the reference code. I'd imagine, it wouldn't be correct to state that turning blue LED off results in white becoming less whiter.

@nickolay
Copy link
Owner

nickolay commented Nov 6, 2024

I don't run this board on battery, as it seems that you're trying to. But I have vague recollection of seeing this effect.

Others noticed similar issues with the older revision esphome/feature-requests#1109 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@nickolay @fuef and others