r/Esphome•
smeuse

Olimex BT proxy upgrade issue

My Olimex BT proxy devices are having an issues getting the upgrade. The error is:

"Hostnames can only be 24 characters long"

The issue is that the original deployment of these devices used hostnames like:

my-bluetooth-proxy-dedbef, 25 characters.

I can use new hostnames, but since this seems to use mdns to connect to the existing host, when I change it in a file it compains about not being about to find the new hostname (obviously).

Do I need to start from scratch here? Is there an upgrade path other than physically bringing them all back and reflashing them?

Posted Jul 1, 2024, 3:57 PM UTC

14
ipha•

From the overview page, there's a "Rename hostname" option under the 3-dot menu.

1
smeuseOP•

That seems to just rename it within ESPHome, but when you try to push the config with the new hostname, the device still thinks it's the old hostname.

1
ipha•

That should: update the hostname, rebuild, then push the update to the old hostname.

If it's not working, you still have a few options. If you have the webserver enabled you can download the bin and upload it manually or if you have a static IP configured in the yaml it will use that instead of mDNS.

1
smeuseOP•

ok, I'll go dig through the dhcp logs and try to force it. Thanks for the suggestions.

1