update: esphome to install and run ESPHome Device Builder (#15195)

This commit is contained in:
Jesse Hills
2026-06-23 08:06:36 +12:00
committed by GitHub
parent 70e14ef238
commit 9b619969ad
2 changed files with 26 additions and 22 deletions
+6 -6
View File
@@ -26,8 +26,8 @@ cd /opt/esphome
$STD uv venv --clear /opt/esphome/.venv
$STD /opt/esphome/.venv/bin/python -m ensurepip --upgrade
$STD /opt/esphome/.venv/bin/python -m pip install --upgrade pip
$STD /opt/esphome/.venv/bin/python -m pip install esphome tornado esptool
msg_ok "Setup and Installed ESPHome"
$STD /opt/esphome/.venv/bin/python -m pip install esphome esphome-device-builder esptool
msg_ok "Setup and Installed ESPHome Device Builder"
msg_info "Linking esphome to /usr/local/bin"
rm -f /usr/local/bin/esphome
@@ -36,13 +36,13 @@ msg_ok "Linked esphome binary"
msg_info "Creating Service"
mkdir -p /root/config
cat <<EOF >/etc/systemd/system/esphomeDashboard.service
cat <<EOF >/etc/systemd/system/esphome-device-builder.service
[Unit]
Description=ESPHome Dashboard
Description=ESPHome Device Builder
After=network.target
[Service]
ExecStart=/opt/esphome/.venv/bin/esphome dashboard /root/config/
ExecStart=/opt/esphome/.venv/bin/esphome-device-builder /root/config/
Restart=always
User=root
@@ -50,7 +50,7 @@ User=root
WantedBy=multi-user.target
EOF
systemctl enable -q --now esphomeDashboard
systemctl enable -q --now esphome-device-builder
msg_ok "Created Service"
motd_ssh