#ERROR:asyncio:Task exception was never
1 messages ยท Page 1 of 1 (latest)
Logger: homeassistant.components.esphome.manager
Source: components/esphome/manager.py:353
Integration: ESPHome (documentation, issues)
First occurred: 10:50:49 AM (6 occurrences)
Last logged: 4:33:31 PM
Voice assistant UDP server was not stopped
how are you running HA
Logger: aioesphomeapi.connection
Source: runner.py:188
First occurred: 10:49:57 AM (26 occurrences)
Last logged: 4:39:19 PM
esp32-s3-box-3-5acd84 @ 192.168.1.241: Connection error occurred: [Errno 104] Connection reset by peer
esp32-s3-box-3-5acd84 @ 192.168.1.241: Connection error occurred: esp32-s3-box-3-5acd84 @ 192.168.1.241: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (Home Assistant 2024.2.5).
It's running on HaOS inside of KVM on a Ubuntu box, I believe it has 4GB of ram allocated to it
(What's curious is this whole pipeline works fine inside the browser)
it looks like it needs adding to HA and the encryption key adding. Have you added the device to the ESPhome dashboard ?
this is where it's tricky. the ESPHome dashboard is glitched. It never worked because mDNS doesn't work, however, I found a different bug, which is due to running it with Cloudflared, which requires me to manually flash everything using the web flasher: https://github.com/esphome/issues/issues/5552
[flashing used to work but stopped last week, and uninstalling/reinstalling esphome dashboard didn't fix it]
the easiest thing to do is to delete the device from HA integration, re-flash the device without encryption and add it back to HA
how would I disable encryption? are we talking about tls/ssl?
I'm having general issues with ESPhome devices (except my ratgdo) where I have to add/remove it from ESPHome devices in my Devices & Services or reload it
I assumed it was my bad soldering or a flaky board, now I'm wondering if something is buggered
no just in the device yaml - api: will have encryption and key: just need to leave api: and delete the encryption lines
oh, I already did that the last time I flashed, there's no encryption key, I remove/re-add the device just by specifying the IP
ok , then the error was most likely from prior to that
I'm trying to get the wav file recording to work, but the file editor doesn't mention base path anynmore, and won't let me leave /homeassistant/ ... I'm trying to use a relative path now and I've created share/assist_pipeline
interesting, the .wav was 44 bytes
"'utf-8' codec can't decode byte 0x80 in position 24: invalid start byte"
[that may be an error from the editor, but no way is the wav 44 bytes]
eh, that error is from the editor, len = 71
are the files silent ?
they have a duration of 00:00
It crashes Audacity, VLC says it's empty, iTunes ignores it
is the esp and HA on the same VLAN and does HA have access through all UDP ports
yep, no funky network stuff, all Ubiquti, edgemax router, 6E enterprise access point
RIFF$^@^@^@WAVEfmt ^P^@^@^@^A^@^A^@?>^@^@^@}^@^@^B^@^P^@data^@^@^@^@ <~~ yeah, just the file header is in the wav file, no content
I'm verifying there's nothing interesting in my Unifi/Wifi config
but it's all one subnet (192.168.1.0), no VLAN right now
does the browser use TCP and the device is using UDP? I'm not sure if I need to do anything with the KVM instance to allow all traffic, I forget how the network passthru is setup
i would certainly look at the network setup with the kvm as a possible cause, yes all streams between the device and HA are by randomly generated UDP port created at the time of stream, so all UDP's have to be open
virsh # net-dumpxml default
<network connections='1'>
<name>default</name>
<uuid>675ec53e-181f-47b9-add4-fb724cd45f98</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:de:bb:fb'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
... so the browser could work but not the device?
yes
ok... so it doesn't look like NAT based networking is going to work for folks as you'd need to set up rules for ports and it's going to be random
I think you have to use bridged networking
... I had a really hard time getting this to work right on the latest Ubuntu because it changed how bridges were managed to use systemd or something
i think there are a lot of overly complicated home network setups out there ! keep things simple is my approach
I'm hoping DHCP will just kick in and I can do a static mapping. Switched over to bridged networking... if I really have to I can run HASS on bare metal but I'd rather not if I don't have to ๐
if mDNS is not playing nicely on your network I would also add the following line to your device yaml
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
use_address: xxx.xxx.xxx.xxx ## ADD THIS LINE WITH IP OF DEVICE ##
setting up kvm with bridged networking isn't as easy as you'd think
when i finished working in the IT world, KVM was a physical thing that we plugged into servers in a rack , i'm affraid I am not at all familiar with much in the way of todays containered or VM environments. I have had no need for them ๐
I blame Ubuntu honestly, I've been doing linux for 20 years and I don't understand how they could change/complicate something as simple as bridged networking that half the tutorials on the internet don't work anymore ๐ฆ
I was originally using Postgres for my HA DB but that gave me some issues during upgrades, now all I have is Zigbee2MQTT and UptimeKuma running on this box (both which I think can run as an HAOS add-on)... so maybe the answer is to just install this on bare metal
... so I lost access to the host box, but HA now has its own IP
yes uptime kuma and z2m both have add-ons ๐ if HA has an IP you might get things working
yep! that fixed it @grand mulch love to send you a beer. if you PM me venmo/cashapp/paypal
this seems to have fixed the mDNS issues too
I'll figure out how to get access to my box again one of these days ๐
oh thats all good and you are welcome... ๐ glad you are up and running
hm... just need to figure out how to get zigbee2mqtt to work again