mydocker/homeassistant
blasebast fe55c5d6d1 fix(ha): remove duplicate attic fan automation (YAML)
YAML automation 'attic.fan.thermal.control' and pyscript
attic_fan_manager.py were both firing on the same temperature
triggers, sending two notifications per event. Pyscript version
is more complete (fail-safe handling of None sensor values,
periodic watchdog every 5min, startup trigger) - YAML was
redundant. Drop YAML.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:05:01 +02:00
..
config fix(ha): remove duplicate attic fan automation (YAML) 2026-06-04 09:05:01 +02:00
README.md docs: improve all README files, add uptime-kuma 2026-04-12 20:11:50 +02:00

README.md

Home Assistant - Home Automation

Central home automation engine managing heating, lighting, security, sensors and IoT devices.

Access

Endpoint Details
Public URL https://ha.sebson.space
Internal Port 8123 (network_mode: host)

Configuration

  • Image: homeassistant/home-assistant:stable
  • Network: network_mode: host (required for mDNS, Bluetooth, device discovery)
  • ZigBee: /dev/ttyACM0 (Sonoff ZBT-2 coordinator)
  • Bluetooth: /dev/vhci
  • Database: PostgreSQL 18 (postgres18:5432, database: homeassistant)
  • Config directory: ./homeassistant/config/
  • Timezone: Europe/Prague

Architecture

Home Assistant
  ├── PostgreSQL 18      - state & history database (replaces SQLite)
  ├── Mosquitto (MQTT)   - communication with ESPHome, Frigate, Tasmota, Shelly
  ├── ESPHome            - ESP8266/ESP32 device management
  ├── Frigate            - camera object detection notifications
  ├── ZigBee (ZBT-2)     - Aqara sensors, IKEA switches, Sonoff ZBMINI
  └── Netatmo, Mazda API - external integrations (weather, car)

Pyscript Scripts (config/pyscript/)

Scripts run directly in the HA context (access to entity states, MQTT, services).

Script Description
house_manager.py Heating control - day/night/eco modes, schedules, multiple AC units
vigilant_switch_manager.py "Vigilant" mode - detects occupancy via motion sensors and GPS distance
terrace_light_manager.py Terrace lighting - triggers on Frigate person detection, auto-off with timeout
ikea_remote_entrance.py IKEA remote at entrance - outdoor lights, gate, Spotify
domofon_manager.py Hikvision DS-KD8003Y intercom integration - RFID chip management, Stefi mode
stefi_custody_days_calculator.py Calculates Stefi custody schedule (alternating weeks, holidays)
stefi_custody_calendar_generator.py Generates Google Calendar events for custody schedule
stefi_morning_wakeup_playbook.py Stefi morning routine - scenic lighting + Spotify (conditional: school day, not holiday)
stefi_lights_scening.py Automatic lighting scenes in Stefi's room
stefi_media_control.py Symfonisk player control in Stefi's room
garage_charging_coordinator.py Car charging scheduler in garage (every 3 days, with temperature threshold)
kitchen_manager.py Kitchen lighting automations
tv_manager.py TV-related automations
attic_fan_manager.py Attic fan management
christmas_lights_manager.py Outdoor Christmas lighting control
driveway_lights_on_dark.py Driveway lights after dusk
set_outside_lights_timeouts.py Configures outdoor light timeouts
outside_lights_watchdog.py Watchdog - turns off forgotten outdoor lights
small_hall_light_watchdog.py Small hallway light watchdog
late_lamps_off_office_n_living_room.py Turns off office and living room lamps late at night
purifiers_lifecycle_manager.py Air purifier filter lifetime tracking
windows_monitor.py Open window monitoring, notifications
camera_snapshots.py Fetches Frigate camera snapshots into HA
camera_person_snapshots.py Person detection snapshots from cameras
camera_hik4_robo_snapshot.py Auto snapshot from Hikvision intercom on "robo" zone detection
low_battery_digest.py Low battery device report (scans all sensor.battery_*)
zombie_hunter.py.off (disabled) Scans for "unavailable" entities

Useful Commands

# Restart Home Assistant
docker compose restart homeassistant

# Follow logs
docker compose logs -f homeassistant

# Validate config before restart
docker compose exec homeassistant ha core check

# Enter container shell
docker compose exec homeassistant bash