tjhorner / upsy-desky

Make your standing desk smarter
https://upsy-desky.tjhorner.dev
Other
478 stars 24 forks source link

Errors in the logs + OTA button vanished #49

Open ZenoBell opened 2 weeks ago

ZenoBell commented 2 weeks ago

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/stock.yaml@v1.0.3
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!