Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in the logs + OTA button vanished #49

Open
ZenoBell opened this issue Jun 22, 2024 · 1 comment
Open

Errors in the logs + OTA button vanished #49

ZenoBell opened this issue Jun 22, 2024 · 1 comment

Comments

@ZenoBell
Copy link

ZenoBell commented Jun 22, 2024

Hello,

i tried today to update from version 1+ to the 4 of upsky desky but the OTA was constantly failing probabaly due to the old ESPhome version.

So what i did was trying to update first the ESP firmware :

i tried using this config from the FAQ

substitutions:
  name: upsy-desky-cf32ec
packages:

  tj_horner.upsy_desky: github://tjhorner/upsy-desky/firmware/[email protected]
esphome:
  name: ${name}
  name_add_mac_suffix: false
api:
  encryption:
    key: key here 

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

but it was constantly failing with " Failed config ota.unknown: [source /data/packages/dabdcd5d/firmware/stock.yaml:32] 'ota' requires a 'platform' key but it was not specified. password: "

i managed somehow to fix the above error and then i got the " Failed config output.gpio: [source /data/packages/dabdcd5d/firmware/addons/presets.yaml:2] Pin 21 is used in multiple places. platform: gpio inverted: True id: button_bit1 "

At this point i tried changing the configuration to this one firmware/stock.yaml and seems after a restart of both the esp and HA , it got successfully installed.

substitutions:
  name: upsy-desky-580338
  friendly_name: Upsy Desky
packages:
  tj_horner.upsy_desky: github://tjhorner/upsy-desky/firmware/stock.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key:  key here


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

It seems all the preset and buttons works as suppose to but i have the following errors in the logs plus the OTA update button vanished and the various fields arent populated in the gui.

Only application/x-www-form-urlencoded supported for POST request

In the Current Upsy Desky packages version , sometimes is written 4.0.0 sometimes unknown but the OTA button version vanished completely.

Awesome software by the way ! thank you in advance!

@DavidS
Copy link

DavidS commented Aug 8, 2024

Hey, I ran into the same error message and was able to fix it by changing

tj_horner.upsy_desky: github://tjhorner/upsy-desky/firmware/[email protected]

to

tj_horner.upsy_desky: github://tjhorner/upsy-desky/firmware/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants