Skip to content

Instantly share code, notes, and snippets.

View Nasawa's full-sized avatar

Christopher Johnson Nasawa

View GitHub Profile
@Nasawa
Nasawa / 3D Print - AI Health Check.yaml
Created August 10, 2025 01:33
Home Assistant Blueprint for monitoring a 3D printer using an AI Task
blueprint:
name: AI 3D Printer Status Check
description: |
Monitors a camera on a repeating cadence **while** a state sensor equals a target value (case‑insensitive).
Each cycle runs a Home Assistant **AI Task** on a frame and exposes the AI result + snapshot path to an optional
user script for platform‑specific notifications.
• Local AI = attach **camera** directly to the AI Task (fast, high quality).
• Remote AI = attach **snapshot** file via Local Media (requires allowlisted media path; see inputs).
• Optional confidence threshold (fixed number or entity) gates the built‑in text alert.