From b72f51f90d28cd8d59f09928f5113940235feedc Mon Sep 17 00:00:00 2001 From: alvis Date: Fri, 22 May 2026 14:14:50 +0000 Subject: [PATCH] docs(ha): relocated to lizacer; remove KVM-on-Agap install instructions --- Home-Assistant.md | 88 ++++++++++++++--------------------------------- 1 file changed, 25 insertions(+), 63 deletions(-) diff --git a/Home-Assistant.md b/Home-Assistant.md index 63282ff..bb737a0 100644 --- a/Home-Assistant.md +++ b/Home-Assistant.md @@ -1,63 +1,25 @@ -# Home Assistant - -Runs as a KVM virtual machine on Agap. - -## Install libvirt - -```bash -sudo apt update -sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager -``` - -## Download Image - -[Download HAOS for KVM](https://www.home-assistant.io/installation/linux/) - -Extract and move: - -```bash -xz -d haos_ova-*.qcow2.xz -mv haos_ova-*.qcow2 /var/lib/libvirt/images/ -``` - -## Install VM - -```bash -virt-install \ - --name haos \ - --description "Home Assistant OS" \ - --os-variant=ubuntu24.04 \ - --ram=4096 \ - --vcpus=2 \ - --disk /var/lib/libvirt/images/haos_ova-16.2.qcow2,bus=scsi \ - --controller type=scsi,model=virtio-scsi \ - --import \ - --graphics none \ - --boot uefi \ - --network bridge=br0 -``` - -## Post-install - -- If boot fails, disable Secure Boot in UEFI firmware settings ([reference](https://www.reddit.com/r/homeassistant/comments/198yg1a/trying_to_install_ha_as_a_virtual_machine_in/)) -- Find assigned IP at router admin panel - -## Zabbix Alerting - -HA pushes alerts to Zabbix via `rest_command` → Zabbix `history.push` API (trapper items). - -### Water Leak Sensors - -3x HOBEIAN ZG-222Z Zigbee moisture sensors: - -| Entity | Room | -|--------|------| -| `binary_sensor.hobeian_zg_222z` | Kitchen | -| `binary_sensor.hobeian_zg_222z_2` | Bathroom | -| `binary_sensor.hobeian_zg_222z_3` | Laundry | - -- Sensor ON → automation sends room name to Zabbix trapper item `water.leak` on host "HA Agap" -- Zabbix trigger fires Disaster alert: "Water leak detected in {room}" -- All sensors OFF → automation sends "ok" to clear - -Config: `rest_command` entries in `configuration.yaml`, automations `water_leak_alert` and `water_leak_clear`. +# Home Assistant + +**Relocated to lizacer on 2026-05-22.** Home Assistant no longer runs on Agap. + +## Current location + +- **Host:** lizacer (`192.168.1.4`) +- **Form:** Docker container (`ghcr.io/home-assistant/home-assistant:stable`) +- **API:** `http://192.168.1.4:8123` +- **Public URL:** `https://haos.alogins.net` + +Co-located on lizacer: + +- `zigbee2mqtt` — Zigbee bridge (replaces the previous Sonoff dongle / ZHA setup) +- `mosquitto` — MQTT broker for zigbee2mqtt ↔ HA + +## What was on Agap + +A HAOS KVM VM (`haos_ova-17.1.qcow2`, 4 GB RAM, 2 vCPU, br0 bridge, UEFI). The VM and its disk image were removed via `virsh undefine haos --nvram --remove-all-storage` on 2026-05-22. + +## Zabbix alerting + +HA still pushes alerts to Zabbix via `rest_command` → trapper items on the Zabbix host **HA Agap** (host name is legacy — not renamed yet). Water leak, motion, and device-availability automations are owned by the HA config on lizacer. + +Entity IDs that started as ZHA (`binary_sensor.0xa4c1...`, `binary_sensor.hobeian_zg_222z*`) may have changed after the zigbee2mqtt migration. Verify before relying on names in new automations or Zabbix items.