Closed nreymundo closed 1 year ago
It looks like ESPHome has made changes to their internal API that are incompatible with the underlying custom component, so I will need to make some changes there. I'll update the thread here when those changes are complete so you can re-compile on ESPHome 2023.5.
Regarding your connection issues:
upsy-desky-58032c.local
resolve to the correct IP?Reading failed: BAD_INDICATOR
message in the logs.Ok, the issue was in the runtime-config
addon — I just fixed it, please try compiling again. You might need to clean the build files so that it grabs the latest version of the package from the repo (or target the commit 274ec9ac9464bb23481422de32094e18a66e6d3f
in the YAML).
Hey! Thanks for the quick reply.
So some... progress?. Targeting 1.0.1
worked perfectly and it built but now it seems stuck in a connect/disconnect loop?. I tried another factory reset as well as removing it both from ESPHome as well as from the Home Assistant integration.
Putting some screenshots here. Am I missing anything still?.
ESPHome when trying to get the logs:
Upsy Desky captive portal:
Home Assistant integration screen:
Reverting to 1.0.0
fixed the issue in the screenshots above and allows HA to connect to the device again.
That's strange — the only difference between 1.0.0 and 1.0.1 is this small change which shouldn't affect anything connection-related 🤔 . Can I see your entire YAML config?
And did you revert to 1.0.0 via flashing stock firmware or by targeting it in your YAML?
Totally, pretty bog-standard really.
I reverted by flashing straight from the device's captive portal as switching the YAML to target 1.0.0
I assumed would have ended in a compilation error. That's also why in the YAML below you still see 1.0.1
.
substitutions:
name: upsy-desky-58032c
friendly_name: office-desk-upsy-desky
packages:
tj_horner.upsy_desky: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.1
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key: <rando encryption key here>
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Gotcha, makes sense. Can you try these steps?
Since the connection works with the stock firmware, and that doesn't have an encryption key set, I think Home Assistant is attempting to connect without one, which means it never successfully connects to your version with an encryption key set, resulting in all the failures in your log. Re-adding the integration with your encryption key should solve this.
Already tried that before with no luck, I guess there's a part of the config sticking around somewhere? It's weird honestly.
Here are the steps I tried:
I'm still getting the failure to connect message but poking around the UI or the file system I can't find a place where to edit the key or remove past configs?. Heck, I even re-added it with a different name just to be sure and still the same issue.
If I remove the encryption key and flash again everything goes perfectly and connects great ¯_(ツ)_/¯.
Thanks for the quick assistance though!.
Thanks for the additional information. I'll do some more testing on my end and get back to you.
Since the original problem you opened this issue for is resolved, I'll close this and we can move discussion to #32.
I'm facing an issue when trying to update the device using the ESPHome addon in Home Assistant.
Here's the error message I get on the ESPHome console:
At first I thought it could be some incompatibility issue or some other local problem so I removed it from ESPHome, downloaded FW version 1.0 from this repo and flashed it again. When adopting it back the device gets properly added to Home Assistant but I run into the same error compiling the update.
Also tried a fresh factory reset. Same issue.
On top of that ESPHome seems to be unable to connect to it to read the logs.
This is what I get from the ESPHome site when I click on the
Logs
option for the Upsy Desky.And this is the counterpart, from the logs in the Upsy Desky captive portal while ESPHome is trying to connect