Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions apps/esphome/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ARG VERSION

ENV \
HOME="/config" \
PLATFORMIO_CORE_DIR=/cache/pio \
ESPHOME_BUILD_PATH=/cache/build \
ESPHOME_DATA_DIR=/cache/data
PLATFORMIO_CORE_DIR=/tmp/pio \
ESPHOME_BUILD_PATH=/tmp/build \
ESPHOME_DATA_DIR=/tmp/data

USER root
WORKDIR /app
Expand All @@ -26,7 +26,8 @@ RUN set -eux; \
pip install uv; \
uv pip install \
setuptools \
"esphome[displays]==${VERSION}"; \
"esphome[displays]==${VERSION}" \
"esphome-device-builder==1.6.8"; \
rm -rf /tmp/*

# Copy application code
Expand Down
2 changes: 1 addition & 1 deletion apps/esphome/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ variable "APP" {

variable "VERSION" {
// renovate: datasource=pypi depName=esphome
default = "2026.6.5"
default = "2026.7.1"
}

variable "LICENSE" {
Expand Down
14 changes: 10 additions & 4 deletions apps/esphome/start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

PLATFORMIO_CORE_DIR=${PLATFORMIO_CORE_DIR:-/cache/pio}
ESPHOME_BUILD_PATH=${ESPHOME_BUILD_PATH:-/cache/build}
ESPHOME_DATA_DIR=${ESPHOME_DATA_DIR:-/cache/data}
PLATFORMIO_CORE_DIR=${PLATFORMIO_CORE_DIR:-/tmp/pio}
ESPHOME_BUILD_PATH=${ESPHOME_BUILD_PATH:-/tmp/build}
ESPHOME_DATA_DIR=${ESPHOME_DATA_DIR:-/tmp/data}

# Make sure cache folders exist
mkdir -p "${PLATFORMIO_CORE_DIR}"
Expand All @@ -12,5 +12,11 @@ mkdir -p "${ESPHOME_DATA_DIR}"
# Prune PIO files
pio system prune --force

# Launch ESPHome
# Route the default dashboard command to Device Builder, but keep the rest
# of the ESPHome CLI available for compile/run/logs.
if [[ "${1:-}" == "dashboard" ]]; then
shift
exec /usr/local/bin/esphome-device-builder "$@"
fi

exec /usr/local/bin/esphome "$@"
Loading