Files
openclaw-workspace/memory/2026-01-28.md
2026-04-11 09:45:12 -05:00

4.2 KiB

2026-01-28

Home Assistant Skill Created

  • Built skills/home-assistant/SKILL.md with REST API documentation
  • Created helper scripts (scripts/ha-api.sh) for quick commands
  • Added references with common command examples

Network Architecture Discovery

  • Clawdbot runs through Google Cloud infrastructure (exit IP: 216.73.144.16)
  • Tested firewall blocking from Corey's PC - blocks visibility but not actual connectivity
  • Privacy note: HA entity states pass through Google's infrastructure during API calls
  • Local tailnet access (192.168.0.39) works directly; external APIs route through cloud

HA Sensor Audit

  • Total sensors found: ~300 entities
  • Categories: environmental, energy monitors, device trackers, presence, lights, air purifiers, thermostats, media, utility, security

Battery Status Check (Door/Motion Sensors)

  • CRITICAL: sensor.hue_motion_sensor_3_battery (Master Hallway) at 1%
  • Front Door (Ring): 100%
  • Hue Motion Sensor 2 (Kitchen): 100%
  • Guest Bath Motion: 91%
  • Office Motion: 76%
  • Motion Sensor Battery state: unavailable (broken entity)
  • Entity names to verify: pantry_door, garage_entrance_door, office_door, master_closet_door, shower_door, master_bath_motion, master_pooper

Frigate Fix (NVIDIA GPU Decoder)

  • Problem: Cannot load libnvcuvid.so.1, Frigate cameras crashing
  • Root cause: Missing NVIDIA decode library for TensorRT
  • Attempted fix: Install libnvidia-decode-580-server package, rebooted
  • Status: STILL BROKEN - Will start fresh installation tomorrow

Voice Assistant - Local AI Replacement for Alexa

  • Stack working:

    • Wake Word: HA Voice Preview Edition built-in
    • STT: Whisper (local, verify not cloud)
    • LLM: Ollama + minimax-m2.1 (270b parameters, local)
    • TTS: Needs Piper or Qwen3-TTS (currently cloud TTS - slow)
    • Control: Lights, climate, media all working
  • System Prompt (for Ollama conversation agent):

You are a helpful smart home assistant for a Home Assistant installation.
- Control smart home devices (lights, climate, media, etc.)
- Keep responses SHORT — 1-2 sentences for voice
- Confirm actions: "Turned on the living room lights"
- Don't discuss pricing or external products
  • Optimization needed:
    • STT latency (Whisper model size - try 'base' model for speed)
    • Switch TTS to local Piper or Qwen3-TTS

Room Presence with Pi Zeros (Bluetooth Tracking)

  • Project files created:

    • room-assistant-config.yml - Base config template
    • setup-room-assistant.sh - Automated install script
    • ROOM_ASSISTANT_SETUP.md - Full documentation
  • What it does:

    • Pi Zero W BLE scans for known phones
    • Reports to HA via MQTT
    • Creates device_tracker entities per room
    • Multi-Pi setup gives room-level presence
  • Setup workflow:

    1. Flash Pi OS Lite to SD card
    2. Enable SSH + WiFi via Pi Imager
    3. Copy config files to Pi
    4. Run sudo ./setup-room-assistant.sh
    5. Script prompts for: room name, MQTT creds, phone MACs
  • Phone MAC discovery:

    • iPhone: Settings → About → Bluetooth
    • Android: Settings → About Phone → Status → Bluetooth address
  • Key config values:

    • rssiThreshold: -70 (adjust closer/farther detection)
    • trackOnlyKnown: true (only tracks listed devices)

Brave Search API

  • API Key: BSAVjWnVKGI5ZeU-mEBirztyCDmHhcI (Corey's account)
  • Configured via system environment variable (needs Clawdbot restart)
  • Used for web research when needed

Action Items

  • Replace battery in Master Hallway motion sensor (1% level) - remind Corey when heading home
  • Verify Whisper STT is local (not cloud) for voice assistant
  • Add Piper or Qwen3-TTS for local TTS (faster voice response)
  • Flash Pi SD cards for room presence project
  • Find phone MAC addresses for room-assistant config

Files Created This Session

  • skills/home-assistant/ - HA skill documentation
  • skills/home-assistant/scripts/ha-api.sh - API helper script
  • skills/home-assistant/references/commands.md - Quick reference
  • openwakeword-mqtt.py - Openwakeword to MQTT publisher (not needed with VPE)
  • room-assistant-config.yml - BLE presence config template
  • setup-room-assistant.sh - Automated Pi setup script
  • ROOM_ASSISTANT_SETUP.md - Complete setup documentation