-
Notifications
You must be signed in to change notification settings - Fork 139
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
Presence Sensors not installing ESPHome 2024.5.1 #59
Comments
The binary size jumped from 612k to 660k between 2024.5.0 and 2024.5.1 My Workaround
This has worked for my sensors. |
At present, the fastest and most convenient solution is to download the firmware locally to the computer, and then use your own data cable to flash the firmware directly. You only need to connect the data cable. |
We may need to add
The chip is 2MB, while the default configuration is 1MB example
|
Very good idea, but where could I download the ESP-Firmware? |
Within ESPHome, click on the three dots of the device to update, select install, then manual download. |
@tarontop did this work for you? It didn't help. It's still showing 1mb with the following config
|
I had to do this in two steps.
Second ota update:
This works for me. I couldn't update in one go. I assume that the existing firmware was compiled for a 1 Mb chip so rejected the modified upgrade. I could be wrong! Sorry about the multiple edits, struggling with formatting (rtfm!) |
Sorry for asking, but could you explain how I've to do this steps:
Thank you very much! |
I use ESPHome within HomeAssistant, so I can only help you from that. I hope that makes sense. |
Yes, that make sense and I'm using also HA. I'll try and report here! Update: |
I had that initially, then I commented out the "packages" entries and added
and installed it wirelessly - that's the "minimal" firmware that worked for me. 2nd step was to uncomment the "packages" entries and comment out my additions, then install that. You will need to set the encryption key to your setting not "xxxxxx" (similarly with the device name) |
Only to make it clear: Frist I should use this yaml (replaced with my specific key): substitutions: esp8266: api: wifi: than second installation with: substitutions: '#'esp8266: api: wifi: right? (formation this post is an extra challenge! |
On the first, do not comment out
because that is what is needed to access more memory (I think). You seem to have quotes round the # marks for some reason - they should not be there. HTH |
Formatting:
to get the pretty formatting (they are back-ticks) |
Okay than like this: first:
second:
If this is correct, I'll try again. |
No, second attempt uncomment the packages and platformio sections
The indentations have disappeared - they need to be correct too |
Thank you, now it work's for me! |
Yay! |
So I did a build using the 2 step method above and it worked, however any attempt to send another build fails with this error
Unless I reboot the device first. I also noticed that it's still saying I obnly have 1M of flash despite the
What am I missing? Config I'm using: substitutions:
name: athom-presence-sensor-9cee44
friendly_name: Athom Presence Dining Room
packages:
Athom_Technology.Presence_Sensor: github://athom-tech/athom-configs/athom-presence-sensor.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
platformio_options:
board_build.ldscript: eagle.flash.2m.ld
api:
encryption:
key: xxxxxxxxxxxx
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password |
I'm getting the same reported 1M flash, and initially got errors on subsequent install attempts. |
Looks like this worked for me. Guess we'll know for sure at the next ESPHome update, right? BTW, don't forget to backup your code before editing and validate your new code before trying to install. Great way to make sure that any copy/paste functions didn't hose you indentations. |
Also for the new ESP-Update 2024.5.3 I've to do the two steps from above! |
My update went through without any problems. |
How look's your yaml-code before you click "Update all"? Like this:
|
No, you need to uncomment the following lines
so they are
and keep them like that for all subsequent builds otherwise it will revert to the 1M setting (I believe) |
Okay, thank you, but I think I've had this like you replay - so we'll see at next Update of ESPhome. ;-) |
Just a data point. OTA updates for 2024.5.4 worked flawlessly for me with the revised YAML code. |
Same here! :-) |
It seems that this is the problem |
|
i had the same problem updating to version 2024.8.0. The solution worked for me but i had to add the ota plattform, otherwise it wouldnt compile 1st Flashsubstitutions:
name: athom-presence-<MAC>
friendly_name: athom-presence-<LOCATION>
#packages:
# Athom_Technology.Presence_Sensor: github://athom-tech/athom-configs/athom-presence-sensor.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
platformio_options:
board_build.ldscript: eagle.flash.2m.ld
esp8266:
board: esp8285
ota:
platform: esphome
logger:
api:
encryption:
key: mykey
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .my.home 2nd flashsubstitutions:
name: athom-presence-<MAC>
friendly_name: athom-presence-<LOCATION>
packages:
Athom_Technology.Presence_Sensor: github://athom-tech/athom-configs/athom-presence-sensor.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
platformio_options:
board_build.ldscript: eagle.flash.2m.ld
#esp8266:
# board: esp8285
#ota:
# platform: esphome
#logger:
api:
encryption:
key: mykey
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .my.home |
This solution worked perfectly for me as well. Thank you! |
This still did not work for me. I had to flash the stock firmware first, and then it allowed me to flash the latest. However, I am still having to flash the stock firmware each time I want to update. |
I did an update with the usb cable which worked perfectly a couple of months ago. I thought after that the new updates would work perfectly again. But the next time the normal ota update would fail with the same error as above. I am still confused as why this happens. Does the size of the package only fail on the ota update proces? Would be nice if this was actually fixed! |
So i tried the way hevel86 mentioned and it does indeed work for a single update. |
When trying to install the latest ESPHome, I get the following message:
ERROR Error binary size: Error: ESP does not have enough space to store OTA file. Please try flashing a minimal firmware (remove everything except ota)
I'm using a super-basic config:
The text was updated successfully, but these errors were encountered: