Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6033c93
Add Home Assistant Supervisor documentation
MehmetEmreee Feb 21, 2026
1728840
Add homeassistant project to documentation
MehmetEmreee Feb 21, 2026
e5d259e
Add info.md with initial content
MehmetEmreee Feb 21, 2026
39e1e27
Add files via upload
MehmetEmreee Feb 21, 2026
4b50c7a
Update homeassistant.mdx
MehmetEmreee Feb 21, 2026
6458b06
Change command to monitor hassio_supervisor logs
MehmetEmreee Feb 21, 2026
ccebc65
Add files via upload
MehmetEmreee Feb 24, 2026
dfebc17
Add files via upload
MehmetEmreee Feb 24, 2026
2de6f90
Add sensor integration guide for Deneyap Kart
MehmetEmreee Feb 24, 2026
b498a92
Document Home Assistant installation and setup process
MehmetEmreee Feb 24, 2026
1c1d7c6
Fix formatting in homeassistant.mdx
MehmetEmreee Feb 27, 2026
6c18346
Initial plan
Copilot Mar 6, 2026
ecaec1c
Rename homeassistant images and update MDX links
Copilot Mar 6, 2026
1aa77a3
Merge pull request #2 from MehmetEmreee/copilot/rename-images-for-hom…
MehmetEmreee Mar 6, 2026
4ac9c2d
Initial plan
Copilot Mar 6, 2026
118c7f6
Add Home Assistant installation script
MehmetEmreee Mar 6, 2026
943cea3
Fix TR homeassistant docs: T3 Gemstone O1 name format and image captions
Copilot Mar 6, 2026
33aa74d
Merge pull request #3 from MehmetEmreee/copilot/update-t3-gemstone-fo…
MehmetEmreee Mar 6, 2026
b940095
Add files via upload
MehmetEmreee Mar 6, 2026
6773d6c
Update ZIP_URL to point to new repository location
MehmetEmreee Mar 6, 2026
b42a738
Update download script URL in homeassistant.mdx
MehmetEmreee Mar 6, 2026
83d4cfe
Update installation script references in homeassistant.mdx
MehmetEmreee Mar 6, 2026
d992be7
Initial plan
Copilot Mar 6, 2026
be6f54c
Apply Turkish HA docs changes to English version
Copilot Mar 6, 2026
2ddd9d1
Merge pull request #5 from MehmetEmreee/copilot/update-home-assistant…
MehmetEmreee Mar 6, 2026
0f76941
Add English version note to info.md
MehmetEmreee Mar 6, 2026
b70d022
Add files via upload
MehmetEmreee Mar 6, 2026
44165c0
Initial plan
Copilot Mar 6, 2026
df6cd73
Update image link from on-hazirlik.png to en/Pre-preparation.png in h…
Copilot Mar 6, 2026
e19e408
Merge pull request #6 from MehmetEmreee/copilot/rename-images-homeass…
MehmetEmreee Mar 6, 2026
229e61b
Initial plan
Copilot Mar 6, 2026
0e8759b
Update image links to include /en/ path in homeassistant.mdx
Copilot Mar 6, 2026
9f3fc68
Merge pull request #7 from MehmetEmreee/copilot/update-image-links-fo…
MehmetEmreee Mar 6, 2026
94d9b62
Add files via upload
MehmetEmreee Mar 10, 2026
3671878
Add files via upload
MehmetEmreee Mar 10, 2026
45d1534
Merge branch 'main' into main
MehmetEmreee Mar 10, 2026
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
4 changes: 4 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@
"tr/projects/ardupilot",
"tr/projects/vtol",
"tr/projects/swupdate",
"tr/projects/mediabox"
"tr/projects/homeassistant"
"tr/projects/mediabox",
{
"group": "Teknofest",
Expand Down Expand Up @@ -334,6 +336,8 @@
"en/projects/ardupilot",
"en/projects/vtol",
"en/projects/swupdate",
"en/projects/mediabox"
"en/projects/homeassistant"
"en/projects/mediabox",
{
"group": "Teknofest",
Expand Down
329 changes: 329 additions & 0 deletions en/projects/homeassistant.mdx

Large diffs are not rendered by default.

217 changes: 217 additions & 0 deletions homeassistant.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
#!/usr/bin/env bash
set -euo pipefail

#----------------------------------------
# Basit log fonksiyonları
#----------------------------------------
log() { echo -e "\e[1;32m[INFO]\e[0m $*"; }
warn() { echo -e "\e[1;33m[WARN]\e[0m $*" >&2; }
err() { echo -e "\e[1;31m[ERROR]\e[0m $*" >&2; exit 1; }

#----------------------------------------
# ROOT kontrolü
#----------------------------------------
if [[ "${EUID}" -ne 0 ]]; then
err "Bu script root olarak çalıştırılmalı. (sudo su - && bash $0)"
fi

export DEBIAN_FRONTEND=noninteractive

#----------------------------------------
# AYARLANABİLİR DEĞİŞKENLER
#----------------------------------------

DOC_ROOT="${DOC_ROOT:-/home/gemstone/Documents}"
DOC_DIR="${DOC_ROOT}/iptablesgemstone"

ZIP_URL="https://github.com/MehmetEmreee/gemstonedocs/raw/refs/heads/main/ip6table-packages.zip"
ZIP_PATH="${DOC_DIR}/ip6table-packages.zip"

OS_AGENT_VERSION="1.8.0"
OS_AGENT_ARCH="aarch64"
OS_AGENT_DEB_NAME="os-agent_${OS_AGENT_VERSION}_linux_${OS_AGENT_ARCH}.deb"
OS_AGENT_URL="https://github.com/home-assistant/os-agent/releases/download/${OS_AGENT_VERSION}/${OS_AGENT_DEB_NAME}"
OS_AGENT_TMP="/tmp/os-agent.deb"

HA_SUP_TMP="/tmp/homeassistant-supervised.deb"
HA_SUP_URL="https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb"

PATCH_DIR="/tmp/ha-supervised"
PATCHED_DEB="/tmp/homeassistant-supervised-patched.deb"

#----------------------------------------
# APT update ve temel paketler
#----------------------------------------
log "apt update çalıştırılıyor..."
apt update -y

log "unzip ve curl kuruluyor (script için)..."
apt install -y unzip curl debconf-utils

#----------------------------------------
# Documents klasörü + zip çekme
#----------------------------------------
log "Documents klasörleri hazırlanıyor: ${DOC_DIR}"
mkdir -p "${DOC_DIR}"

log "Zip dosyası GitHub'dan indiriliyor: ${ZIP_URL}"
curl -fL -o "${ZIP_PATH}" "${ZIP_URL}"

#----------------------------------------
# Zip’in açılması
#----------------------------------------
log "Zip çıkarılıyor: ${ZIP_PATH} -> ${DOC_DIR}"
unzip -q -o "${ZIP_PATH}" -d "${DOC_DIR}"

#----------------------------------------
# kernel-module-** paketlerinin kurulması
#----------------------------------------
log "kernel-module-*.deb paketleri bulunup kuruluyor..."

shopt -s nullglob
mapfile -t deb_files < <(printf '%s\n' "${DOC_DIR}"/kernel-module-*.deb)
shopt -u nullglob

if (( ${#deb_files[@]} == 0 )); then
err "${DOC_DIR} içinde kernel-module-*.deb bulunamadı."
fi

for deb in "${deb_files[@]}"; do
log "dpkg -i ${deb}"
dpkg -i "${deb}" || warn "dpkg -i sırasında hata: ${deb} (apt -f install ile düzeltilecek)"
done

log "Bağımlılık düzeltmesi için apt -f install çalıştırılıyor..."
apt -f install -y || warn "apt -f install bazı şeyleri düzeltemedi, ama devam ediyorum."

#----------------------------------------
# NetworkManager ve systemd-resolved kurulumu
#----------------------------------------
log "network-manager ve systemd-resolved kuruluyor..."
apt install -y \
network-manager \
systemd-resolved

log "Ağ servisi migration komutları çalıştırılıyor..."

systemctl restart systemd-resolved.service || warn "systemd-resolved restart başarısız görünüyor."

if systemctl list-unit-files | grep -q "^networking.service"; then
systemctl disable --now networking.service || warn "networking.service devre dışı bırakılamadı."
fi

if [[ -f /etc/network/interfaces ]]; then
mv /etc/network/interfaces /etc/network/interfaces.disabled
log "/etc/network/interfaces -> /etc/network/interfaces.disabled taşındı."
fi

systemctl restart NetworkManager || warn "NetworkManager restart başarısız olabilir, elle kontrol et."

#----------------------------------------
# curl ve udisks2 kurulumu
#----------------------------------------
log "curl ve udisks2 kuruluyor..."
apt install -y \
curl \
udisks2

#----------------------------------------
# Docker kurulumu (get.docker.com) + bekleme + retry
#----------------------------------------
log "Docker kurulumu öncesi 3 saniye bekleniyor..."
sleep 3

log "DNS/network kontrolü başlıyor (max 10 deneme, 3 sn aralık)..."

attempt=1
max_attempts=10

while (( attempt <= max_attempts )); do
if ping -c1 -W1 8.8.8.8 >/dev/null 2>&1; then
log "Network/DNS hazır görünüyor (deneme ${attempt}/${max_attempts})"
break
fi

warn "Network/DNS henüz hazır değil (deneme ${attempt}/${max_attempts})"
attempt=$((attempt+1))
sleep 3
done

if (( attempt > max_attempts )); then
err "DNS hala hazır değil, Docker kurulumu iptal edildi!"
fi

log "Docker kuruluyor (get.docker.com)..."
curl -fsSL https://get.docker.com | sh

#----------------------------------------
# OS Agent 1.8.0 (aarch64) indirilip kuruluyor
#----------------------------------------
log "OS Agent paketi indiriliyor: ${OS_AGENT_URL}"
curl -fL -o "${OS_AGENT_TMP}" "${OS_AGENT_URL}"

log "OS Agent dpkg -i ile kuruluyor..."
dpkg -i "${OS_AGENT_TMP}" || {
warn "dpkg -i os-agent sırasında hata, apt -f install ile devam ediliyor..."
apt -f install -y
}

#----------------------------------------
# Home Assistant Supervised deb paketinin indirilmesi
#----------------------------------------
log "homeassistant-supervised.deb indiriliyor (latest release)..."
curl -fL -o "${HA_SUP_TMP}" "${HA_SUP_URL}"

#----------------------------------------
# Debian 12 unsupported check patch'i
#----------------------------------------
log "homeassistant-supervised.deb Debian 12 kontrolü için patch'leniyor..."

rm -rf "${PATCH_DIR}"
mkdir -p "${PATCH_DIR}"

dpkg-deb -x "${HA_SUP_TMP}" "${PATCH_DIR}"
dpkg-deb -e "${HA_SUP_TMP}" "${PATCH_DIR}/DEBIAN"

if [[ -f "${PATCH_DIR}/DEBIAN/preinst" ]]; then
log "preinst script bulundu, exit 1 patch uygulanıyor..."
cp "${PATCH_DIR}/DEBIAN/preinst" "${PATCH_DIR}/DEBIAN/preinst.original" || true
sed -i 's/exit 1/true/g' "${PATCH_DIR}/DEBIAN/preinst"
else
warn "preinst scripti bulunamadı; Debian 12 OS kontrolü patch edilemedi. Orijinal paket kurulacak ve hata verebilir."
cp "${HA_SUP_TMP}" "${PATCHED_DEB}"
fi

if [[ -d "${PATCH_DIR}/DEBIAN" ]]; then
dpkg-deb -b "${PATCH_DIR}" "${PATCHED_DEB}"
fi

#----------------------------------------
# ÖNEMLİ DÜZELTME: DEBCONF PRE-SEEDING
#----------------------------------------
log "Debconf ayarları qemuarm-64 olarak ayarlanıyor..."
echo "homeassistant-supervised ha/machine-type select qemuarm-64" | debconf-set-selections
echo "homeassistant-supervised ha/machine-type seen true" | debconf-set-selections
#----------------------------------------
# Home Assistant Supervised kurulumu (patched paket)
#----------------------------------------
log "Home Assistant Supervised (patched) kuruluyor..."
apt install -y "${PATCHED_DEB}"

#----------------------------------------
# BİTİŞ
#----------------------------------------
log "Tüm adımlar tamamlandı."

echo
echo "Home Assistant Supervisor kurulduysa, arayüz genelde şu adresten açılır:"
echo " http://<cihaz-ip-adresi>:8123/"
echo
echo "İlk açılışta 'Preparing Home Assistant' ekranı 10-20 dakika sürebilir."
echo "Supervisor loglarını izlemek için: docker logs -f hassio_supervisor"
echo
echo "Önerilen son adım: reboot"
echo " sudo reboot"
echo
echo "Zip ve kernel paketleri burada duruyor:"
echo " ${DOC_DIR}"
Binary file added images/homeassistant/arayuz-kurulumu-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/arayuz-kurulumu-giris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/Pre-preparation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/arayuz-kurulumu-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/homeassistant/en/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
english version
Binary file added images/homeassistant/en/kurulum-adimi-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/kurulum-adimi-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/kurulum-adimi-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/kurulum-adimi-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/sensor-adim-a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/sensor-adim-b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/sensor-adim-c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/homeassistant/en/sensor-adim-d.png
Binary file added images/homeassistant/en/sensor-adim-e.png
Binary file added images/homeassistant/en/sensor-adim-f.png
Binary file added images/homeassistant/en/sensor-adim-g.png
Binary file added images/homeassistant/en/sensor-adim-h.png
Binary file added images/homeassistant/en/sensor-adim-i.png
Binary file added images/homeassistant/en/sensor-adim-j.png
Binary file added images/homeassistant/en/sensor-adim-k.png
Binary file added images/homeassistant/en/sensor-adim-l.png
Binary file added images/homeassistant/en/sensor-adim-m.png
Binary file added images/homeassistant/en/sensor-adim-n.png
Binary file added images/homeassistant/en/sensor-adim-u.png
Binary file added images/homeassistant/en/sensor-adim-v.png
Binary file added images/homeassistant/en/sensor-adim-y.png
Binary file added images/homeassistant/en/sensor-adim-z.png
Binary file added images/homeassistant/homeassistant-supervisor.png
1 change: 1 addition & 0 deletions images/homeassistant/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Resimler
Binary file added images/homeassistant/kurulum-adimi-1.png
Binary file added images/homeassistant/kurulum-adimi-2.png
Binary file added images/homeassistant/kurulum-adimi-3.png
Binary file added images/homeassistant/kurulum-adimi-4.png
Binary file added images/homeassistant/on-hazirlik.png
Binary file added images/homeassistant/sensor-adim-a.png
Binary file added images/homeassistant/sensor-adim-b.png
Binary file added images/homeassistant/sensor-adim-c.png
Binary file added images/homeassistant/sensor-adim-d.png
Binary file added images/homeassistant/sensor-adim-e.png
Binary file added images/homeassistant/sensor-adim-f.png
Binary file added images/homeassistant/sensor-adim-g.png
Binary file added images/homeassistant/sensor-adim-h.png
Binary file added images/homeassistant/sensor-adim-i.png
Binary file added images/homeassistant/sensor-adim-j.png
Binary file added images/homeassistant/sensor-adim-k.png
Binary file added images/homeassistant/sensor-adim-l.png
Binary file added images/homeassistant/sensor-adim-m.png
Binary file added images/homeassistant/sensor-adim-n.png
Binary file added images/homeassistant/sensor-adim-u.png
Binary file added images/homeassistant/sensor-adim-v.png
Binary file added images/homeassistant/sensor-adim-y.png
Binary file added images/homeassistant/sensor-adim-z.png
Binary file added images/homeassistant/yukleme-sureci-adim-a1.png
Binary file added images/homeassistant/yukleme-sureci-adim-b1.png
Binary file added images/homeassistant/yukleme-sureci-adim-c1.png
Binary file added images/homeassistant/yukleme-sureci-adim-d1.png
Binary file added images/homeassistant/yukleme-sureci-adim-e1.png
Binary file added images/homeassistant/yukleme-sureci-adim-f1.png
Binary file added ip6table-packages.zip
Binary file not shown.
Loading