User Tools

Site Tools


public:home_assistant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:home_assistant [2026/10/25 21:01] – lukaspublic:home_assistant [2026/11/11 06:24] (current) – [Remote Console] lukas
Line 1: Line 1:
 +====== Remote Console ======
 +minicom can use it by connecting through a virtual serial port created with socat. On the computer where you’ll run minicom.\\
 +
 +Prepareation:
 +<code>
 +sudo apt install socat minicom
 +mkdir -p ~/dev
 +</code>
 +
 +Open Socket:
 +<code>
 +socat pty,link=$HOME/dev/ttyV0,rawer,echo=0,waitslave tcp:10.10.1.111:6638
 +</code>
 +
 +Connect with minicom:
 +<code>
 +minicom -D ~/dev/ttyV0 -b 115200 -C serial_output01.log
 +</code>
 ====== Current_measurement ====== ====== Current_measurement ======
  
Line 6: Line 24:
 ====== Home Assistant on 32bit ====== ====== Home Assistant on 32bit ======
 https://community.home-assistant.io/t/hass-hassos-on-an-old-32-bit-laptop/400235\\ https://community.home-assistant.io/t/hass-hassos-on-an-old-32-bit-laptop/400235\\
 +https://blog.lesterpig.com/post/install-home-assistant-core-2025.12-on-armv7/\\
  
 ====== OPOP Integration ====== ====== OPOP Integration ======
Line 18: Line 37:
  
 ====== Home Assistant on 32bit arm ====== ====== Home Assistant on 32bit arm ======
-<code> 
-# ========================================== 
-# STAGE 1: Vývojové prostředí, kde vše zkompilujeme 
-# ========================================== 
-FROM ghcr.io/home-assistant/armv7-homeassistant-base:latest AS builder 
  
-# 1. Instalace závislostí včetně kompilátorů a Rustu +ghcr.io/home-assistant/qemuarm-homeassistant:2025.11
-RUN apk add --no-cache \ +
-    build-base libffi-dev openssl-dev bzip2-dev zlib-dev \ +
-    readline-dev sqlite-dev xz-dev wget musl-dev rust cargo \ +
-    jpeg-dev openjpeg-dev tiff-dev freetype-dev lcms2-dev libwebp-dev+
  
 +====== Build Home Assistant on 32bit arm ======
 +[[public:home_assistant-docker-cache|Home Assistant Docker Cache]]\\
 +[[public:home_assistant-docker-no-cache|Home Assistant Docker No Cache]]\\
 +[[public:home_assistant-docker-beter-division|Home Assistant Docker Better Division]]\\
  
-# 2. Stažení z PŘÍMÉHO odkazu a kompilace Pythonu 3.14 +[[public:home_assistant-docker-merge-last-armv7-image|Home Assistant Docker merge last armv7 image with actual one]]\\
-RUN wget https://www.python.org/ftp/python/3.14.9/Python-3.14.9.tar.xz && \ +
-    tar -xf Python-3.14.9.tar.xz && \ +
-    cd Python-3.14.9 && \ +
-    ./configure --enable-optimizations --with-ensurepip=install && \ +
-    make -j$(nproc) && \ +
-    make altinstall && \ +
-    cd .. && rm -rf Python-3.14.9*+
  
-# 3. Přesměrování výchozích příkazů na nový Python 3.14 a instalace uv +[[public:home_assistant-docker-builded-image|Home Assistant Docker builded image armv7]]\\
-RUN ln -sf /usr/local/bin/python3.14 /usr/local/bin/python3 && \ +
-    ln -sf /usr/local/bin/pip3.14 /usr/local/bin/pip3 && \ +
-    pip3 install --no-cache-dir uv+
  
-# 4. Zkopírování textových souborů závislostí 
-WORKDIR /tmp 
-COPY requirements.txt ./ 
-COPY homeassistant/*.txt ./homeassistant/ 
  
-# 5. Spuštění kompilace do specifické složky (nyní již pod Pythonem 3.14) +[[public:home_assistant-docker-build-wheels|Home Assistant Docker build wheels for armv7]]\\
-RUN uv pip install \ +
-    --index-strategy unsafe-best-match \ +
-    --target /compiled-packages \ +
-    -r requirements.txt+
  
-LABEL \ +https://contributors.home-assistant.io/core/development/environment/#manual-setup\\
-    io.hass.type="core" \ +
-    org.opencontainers.image.authors="The Home Assistant Authors" \ +
-    org.opencontainers.image.description="Open-source home automation platform running on Python 3" \ +
-    org.opencontainers.image.documentation="https://www.home-assistant.io/docs/" \ +
-    org.opencontainers.image.licenses="Apache-2.0" \ +
-    org.opencontainers.image.title="Home Assistant" \ +
-    org.opencontainers.image.url="https://www.home-assistant.io/"+
  
-# Synchronize with homeassistant/core.py:async_stop +==== 1. Zapněte podporu QEMU v Dockeru ====
-ENV \ +
-    S6_SERVICES_GRACETIME=240000 \ +
-    UV_SYSTEM_PYTHON=true \ +
-    UV_NO_CACHE=true+
  
-WORKDIR /usr/src+<code> 
 +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes 
 +</code>
  
-# Home Assistant S6-Overlay +==== 2. Vytvořte čistý Buildx Builder (Doporučeno) ====
-COPY rootfs /+
  
-# Add go2rtc binary +<code> 
-COPY --from=ghcr.io/alexxit/go2rtc:1.9.14@sha256:675c318b23c06fd862a61d262240c9a63436b4050d177ffc68a32710d9e05bae /usr/local/bin/go2rtc /bin/go2rtc+# Odstranění starého builderu (pokud existuje) 
 +docker buildx rm bpi-builder || true
  
-## Setup Home Assistant Core dependencies +# Vytvoření a aktivace nového 
-COPY --parents requirements.txt homeassistant/package_constraints.txt homeassistant/ +docker buildx create --use --name bpi-builder 
-RUN \ +docker buildx inspect --bootstrap 
-    # Verify go2rtc can be executed +</code>
-    go2rtc --version \ +
-    # Install uv at the version pinned in the requirements file +
-    && pip3 install --no-cache-dir "uv==$(awk -F'==' '/^uv==/{print $2}' homeassistant/requirements.txt)" \ +
-    && uv pip install \ +
-        --no-build \ +
-        -r homeassistant/requirements.txt+
  
-COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/ +==== 3. Spusťte build znovu s parametrem platformy ====
-RUN \ +
-    if ls homeassistant/home_assistant_*.whl 1> /dev/null 2>&1; then \ +
-        uv pip install homeassistant/home_assistant_*.whl; \ +
-    fi \ +
-    && uv pip install \ +
-        --no-build \ +
-        -r homeassistant/requirements_all.txt+
  
-## Setup Home Assistant Core +for non cache: 
-COPY --parents LICENSE* README* homeassistant/ pyproject.toml homeassistant/ +<code> 
-RUN \ +sudo docker buildx build --platform linux/arm/v7 --build-arg BUILD_FROM="ghcr.io/home-assistant/armv7-homeassistant-base:latest" --build-arg BUILD_ARCH="armhf" --file Dockerfile --no-cache -t local-qemuarm-homeassistant:latest .
-    uv pip install \ +
-        -e ./homeassistant \ +
-    && python3 -m compileall \ +
-        homeassistant/homeassistant +
- +
-WORKDIR /config+
 </code> </code>
  
 +for cache:
 <code> <code>
-sudo docker buildx build   --platform linux/arm/v7   --build-arg BUILD_FROM="ghcr.io/home-assistant/armv7-homeassistant-base:latest"   --build-arg BUILD_ARCH="armhf"   --file Dockerfile   --no-cache   -t local-qemuarm-homeassistant:latest .+mkdir -p .buildx-cache 
 + 
 +sudo docker buildx build --platform linux/arm/v7 --build-arg BUILD_FROM="ghcr.io/home-assistant/armv7-homeassistant-base:latest" --build-arg BUILD_ARCH="armhf" --file Dockerfile --cache-from type=local,src=.buildx-cache --cache-to type=local,dest=.buildx-cache,mode=max -t local-qemuarm-homeassistant:latest --load .
 </code> </code>
  
  
public/home_assistant.1792962119.txt.gz · Last modified: by lukas