public:home_assistant
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:home_assistant [2026/10/25 21:25] – lukas | public: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: | ||
| + | < | ||
| + | sudo apt install socat minicom | ||
| + | mkdir -p ~/dev | ||
| + | </ | ||
| + | |||
| + | Open Socket: | ||
| + | < | ||
| + | socat pty, | ||
| + | </ | ||
| + | |||
| + | Connect with minicom: | ||
| + | < | ||
| + | minicom -D ~/dev/ttyV0 -b 115200 -C serial_output01.log | ||
| + | </ | ||
| ====== Current_measurement ====== | ====== Current_measurement ====== | ||
| Line 6: | Line 24: | ||
| ====== Home Assistant on 32bit ====== | ====== Home Assistant on 32bit ====== | ||
| https:// | https:// | ||
| + | https:// | ||
| ====== OPOP Integration ====== | ====== OPOP Integration ====== | ||
| Line 18: | Line 37: | ||
| ====== Home Assistant on 32bit arm ====== | ====== Home Assistant on 32bit arm ====== | ||
| - | < | ||
| - | # ========================================== | ||
| - | # STAGE 1: Vývojové prostředí, | ||
| - | # ========================================== | ||
| - | FROM ghcr.io/ | ||
| - | # 1. Instalace závislostí včetně kompilátorů a Rustu | + | ghcr.io/home-assistant/ |
| - | 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: | ||
| + | [[public: | ||
| + | [[public: | ||
| - | # 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:// | + | |
| - | tar -xf Python-3.14.9.tar.xz && \ | + | |
| - | cd Python-3.14.9 && \ | + | |
| - | ./configure --enable-optimizations | + | |
| - | 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: |
| - | RUN ln -sf / | + | |
| - | ln -sf / | + | |
| - | pip3 install --no-cache-dir uv | + | |
| - | # 4. Zkopírování textových souborů závislostí | ||
| - | WORKDIR /tmp | ||
| - | COPY requirements.txt ./ | ||
| - | COPY homeassistant/ | ||
| - | # 5. Spuštění kompilace do specifické složky (nyní již pod Pythonem 3.14) | + | [[public: |
| - | RUN uv pip install \ | + | |
| - | | + | |
| - | --target / | + | |
| - | -r requirements.txt | + | |
| - | LABEL \ | + | https://contributors.home-assistant.io/ |
| - | io.hass.type=" | + | |
| - | org.opencontainers.image.authors=" | + | |
| - | org.opencontainers.image.description=" | + | |
| - | org.opencontainers.image.documentation=" | + | |
| - | org.opencontainers.image.licenses=" | + | |
| - | org.opencontainers.image.title=" | + | |
| - | org.opencontainers.image.url=" | + | |
| - | # Synchronize with homeassistant/ | + | ==== 1. Zapněte podporu QEMU v Dockeru ==== |
| - | ENV \ | + | |
| - | S6_SERVICES_GRACETIME=240000 \ | + | |
| - | UV_SYSTEM_PYTHON=true \ | + | |
| - | UV_NO_CACHE=true | + | |
| - | WORKDIR /usr/src | ||
| - | |||
| - | # Home Assistant S6-Overlay | ||
| - | COPY rootfs / | ||
| - | |||
| - | # Add go2rtc binary | ||
| - | COPY --from=ghcr.io/ | ||
| - | |||
| - | ## Setup Home Assistant Core dependencies | ||
| - | COPY --parents requirements.txt homeassistant/ | ||
| - | RUN \ | ||
| - | # Verify go2rtc can be executed | ||
| - | go2rtc --version \ | ||
| - | # Install uv at the version pinned in the requirements file | ||
| - | && pip3 install --no-cache-dir " | ||
| - | && uv pip install \ | ||
| - | --no-build \ | ||
| - | -r homeassistant/ | ||
| - | |||
| - | COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/ | ||
| - | RUN \ | ||
| - | if ls homeassistant/ | ||
| - | uv pip install homeassistant/ | ||
| - | fi \ | ||
| - | && uv pip install \ | ||
| - | --no-build \ | ||
| - | -r homeassistant/ | ||
| - | |||
| - | ## Setup Home Assistant Core | ||
| - | COPY --parents LICENSE* README* homeassistant/ | ||
| - | RUN \ | ||
| - | uv pip install \ | ||
| - | -e ./ | ||
| - | && python3 -m compileall \ | ||
| - | homeassistant/ | ||
| - | |||
| - | WORKDIR /config | ||
| - | </ | ||
| - | |||
| - | 1. Zapněte podporu QEMU v Dockeru | ||
| < | < | ||
| docker run --rm --privileged multiarch/ | docker run --rm --privileged multiarch/ | ||
| </ | </ | ||
| - | 2. Vytvořte čistý Buildx Builder (Doporučeno) | + | ==== 2. Vytvořte čistý Buildx Builder (Doporučeno) |
| < | < | ||
| # Odstranění starého builderu (pokud existuje) | # Odstranění starého builderu (pokud existuje) | ||
| Line 125: | Line 71: | ||
| </ | </ | ||
| - | 3. Spusťte build znovu s parametrem platformy | + | ==== 3. Spusťte build znovu s parametrem platformy |
| + | |||
| + | for non cache: | ||
| < | < | ||
| - | sudo docker buildx build | + | sudo docker buildx build --platform linux/ |
| + | </ | ||
| + | |||
| + | for cache: | ||
| + | < | ||
| + | mkdir -p .buildx-cache | ||
| + | |||
| + | sudo docker buildx build --platform linux/ | ||
| </ | </ | ||
public/home_assistant.1792963535.txt.gz · Last modified: by lukas
