Commit Graph

8 Commits

Author SHA1 Message Date
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
blasebast e39aafdbbe fix(ha): stefi evening lights now turn on at 20:30 even in summer
Routine_turn_on had two triggers (sunset and 20:30) but both were
gated by is_dark() which requires sun.sun == below_horizon. In summer
sunset in Prague is ~21:10, so the 20:30 trigger fired uselessly while
sun still above horizon, and the scene only activated at actual sunset.

Drop is_dark() from routine_turn_on - both triggers should activate
the scene unconditionally (sunset = already dark; 20:30 = user wants
lights on by then regardless of remaining daylight).

Arrival_handler and motion_shutdown keep is_dark() since context there
is different (don't snap lights on/off based on presence at noon).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-02 10:23:42 +02:00
blasebast eb58e9c736 fix(ha): cushion check - eliminate hallucinations + add quiet hours
Prompt fixes after Gemini was flagging empty terraces as having
cushions (count=4 on bare metal rattan chairs):
- Correct scene description: camera on left wall of house, terrace
  visible on right side (was incorrectly described as bird's-eye view)
- Explicit anti-hallucination guidance: don't assume textiles are
  there by default, empty terraces are common
- Add "DEFINITIVELY NOT TEXTILES" list (built-in rattan seats/backs,
  metal frames, shadows) - prior prompt only mentioned them indirectly
- Lead examples with "empty terrace" case so AI uses it as anchor
- Tiebreaker rule: when uncertain, default to has_loose_cushions=false

Quiet hours: no notify between 22:00-07:00 to avoid waking up. Snapshot
and AI evaluation still run and log, just no push/telegram during the
window.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 12:27:09 +02:00
blasebast 6328a7c275 feat(ha): cushion rain check via Gemini vision
New pyscript automation that snaps reolink_5_main when rain is incoming,
asks Gemini (ai_task.google_ai_task) whether loose cushions/cushions
are still on the terrace sofa, and alerts on mobile_app_is17 + Telegram
sendPhoto when has_loose_cushions=True with confidence >= 70%.

Triggers (all respect 3h cooldown):
- period 30min: forecast precipitation > 0.5mm in next 2h
- state: sensor.home_precipitation_intensity >= 0.1mm/h
- state: weather.forecast_home transitions into rainy/pouring/snowy/hail
- service: pyscript.cushion_check_now (manual)

Adds TELEGRAM_BOT_TOKEN/TELEGRAM_CHAT_ID to HA container environment
(HA scrubs env_file vars but honors hardcoded environment entries).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-30 07:18:47 +02:00
blasebast 9b069a15c4 docs: improve all README files, add uptime-kuma 2026-04-12 20:11:50 +02:00
blasebast 6c41855991 WIP: ha-dashboard, Prowlarr indexers, HA pyscript, log-ingester, watchdog
- Drop stale backups: frigate/config.yml.bak, timelapse_maker.py.bak (cleanup)
- ha-dashboard: app + niepalenie/rzucanie templates and bin helpers
- homeassistant: stefi_custody_days_calculator
- prowlarr: indexer YAML updates + scenetime-api
- log-ingester: state snapshot
- watchdog.sh
2026-04-09 12:03:08 +02:00
blasebast ac94bb4759 .gitignore, documentation, other improvements 2026-04-04 21:45:48 +02:00
blasebast 8394b3d4ce Initial commit: Home Assistant configuration
- Added Home Assistant config files (automations, scripts, pyscripts, etc.)
- Created .gitignore to exclude sensitive files (secrets, tokens, API keys)
- Excluded binary files and database files
- Excluded Home Assistant runtime directories (.storage, .cloud, etc.)
- Configuration reflects latest updates to Frigate, vacuum automations, etc.
2026-03-26 19:12:18 +01:00