user-img

h202

  • 4 Projects
  • 1 Followers
  • Jun 09,2026
+ Follow

animated voice assitant for homeassistant

animated va running under esphome

animated voice assitant for homeassistant
 
  • thumbnail-img
 

Story

I have modified the code for crow panel 7" advance v1.3 All credits to the author https://github.com/RealDeco/xiaozhi-esphome-animated

Code
  • https://github.com/hruba202/xiaozhi-esphome-animated
    View
Schematic and Layout
  • https://github.com/hruba202/xiaozhi-esphome-animated
    View

animated voice assitant for homeassistant

animated va running under esphome

123.7k
 
13
3
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 3 )
  • Like( 13 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
  • xiaozhi esphome animated patched yaml on github
    Jul 16,2026 0 comments
    Reply
  • 1. Display crash during long responses (cache access error / IllegalInstruction) In the `replying_page` and `request_page` display lambdas, `it.printf(..., TextAlign::CENTER, ..., text.c_str())` renders text into a fixed 120–200 px box without limiting the text length. Short responses (e.g., "22°C, clear") fit fine, but longer strings—particularly HA error messages like "Something went wrong: Action X not found" when the assistant fails to recognize a command—overflow the box and render outside the framebuffer boundaries. Our RGB LCD backend (`rpi_dpi_rgb`) does not check for this, resulting in a write to unmapped memory and a cache access fault, which causes core 1 to crash mid-render. Fix: truncate the text before calling `printf`, e.g.: cppstd::string safe_text = id(text_response).state; if (safe_text.length() > 24) { size_t cut = 21; while (cut > 0 && (safe_text[cut] & 0xC0) == 0x80) cut--; // neříznout uprostřed UTF-8 znaku safe_text
    Jul 16,2026 0 comments
    Reply
  • 2. Invalid UTF-8 sent to Home Assistant, causing an API disconnection loop Separately, the `text_sensor` `text_request`/`text_response` components feature an `on_value` lambda that truncates the state to 32 characters using `esphome::str_truncate()`. This helper function (`alloc_helpers.cpp`) performs a raw byte-based substring operation and does not account for UTF-8 encoding. For any text containing diacritics or non-English characters, truncating at a fixed byte offset can split a multi-byte UTF-8 sequence in half. The resulting invalid string is then transmitted via the API; the Home Assistant protobuf parser rejects it (reporting "String field had bad UTF-8"), causing the connection to enter a disconnect/reconnect loop. Fix: Apply the same UTF-8 character-boundary-aware truncation used above within the `on_value` lambda before assigning the value to `.state`. Zpětná vazba Překladač Google
    Jul 16,2026 0 comments
    Reply

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport