core: M5 Atom Echo connection issues - [Errno 104] Connection reset by peer

The problem

I’ve updated my M5 Atom Echo to the latest firmware in order to use Openwakeword which was added with year of voice chapter 4. It works one or two times. Then the device chrashes somehow and loses the connection. Its then no longer possible to wake up the device

Bildschirmfoto 2023-10-13 um 08 33 45

What version of Home Assistant Core has the issue?

core-2023.10.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

esphome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome

Diagnostics information

config_entry-esphome-a720417348d184f6b2a67e824c354c52.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Error1
INFO ESPHome 2023.9.3
INFO Reading configuration /config/esphome/m5stack-atom-echo-8041b0.yaml...
INFO Updating https://github.com/esphome/esphome.git@pull/5229/head
INFO Starting log output from m5stack-atom-echo-8041b0.local using esphome API
WARNING m5stack-atom-echo-8041b0.local: Connection error occurred: [Errno 104] Connection reset by peer
WARNING Can't connect to ESPHome API for m5stack-atom-echo-8041b0.local: Connection closed (APIConnectionError)
INFO Trying to connect to m5stack-atom-echo-8041b0.local in the background
WARNING m5stack-atom-echo-8041b0.local: Connection error occurred: [Errno 104] Connection reset by peer

Logger: aioesphomeapi.connection
Source: runner.py:186
First occurred: October 12, 2023 at 23:38:38 (20 occurrences)
Last logged: 08:32:28

Error2
m5stack-atom-echo-8041b0 @ 192.168.178.226: Connection error occurred: Ping response not received after 90.0 seconds

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 20 (6 by maintainers)

Most upvoted comments

that is not the official firmware though, and should not be used as a permanent fix? Jesse wrote this in Discord https://discord.com/channels/429907082951524364/1263109167825158254/1265572325743526009

packages:
  m5stack.atom-echo-voice-assistant:
    url: https://github.com/esphome/firmware.git
    file: voice-assistant/m5stack-atom-echo.adopted.yaml
    ref: main
    refresh: 0s

and that actually solved the issues.

it still is pointing the firmware to a temporary endpoint I guess, so we will need an update to that at some point.

my complete yaml now is:

substitutions:
  name: m5stack-atom-echo-a82d10
  friendly_name: M5Stack Atom Echo a82d10
packages:
  m5stack.atom-echo-voice-assistant:
    url: https://github.com/esphome/firmware.git
    file: voice-assistant/m5stack-atom-echo.adopted.yaml
    ref: main
    refresh: 0s
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: jCb/oWvredacted1RWMmY=

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

sensor:
  # Uptime sensor.
  - platform: uptime
    id: sensor_uptime_echo_library
    name: ${name} wifi uptime
  - platform: template
    id: sensor_free_memory_echo_library
    name: ${name} Free Memory
    lambda: return heap_caps_get_free_size(MALLOC_CAP_INTERNAL);
    unit_of_measurement: B
    state_class: measurement

and working just fine

It seems the latest ESP home update fixed the issue on my setup.

Edit: I had one issue again where I need to restart the openWakeWord addon to get it back on track.

I am on HomeAssistant 2023.10.2 and ESPHome 2023.10.0b2 and am also seeing this issue. After a few times the atom echo seems to be confused (or HA is), and this can be solved by turning off wake-word and turning it on again.

Just rebooting the atom echo does not solve the issue for me, I always need to flick the wake-word button as well.