Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
@peyanski
peyanski / AI Analyse Camera Snapshot.yaml
Created November 17, 2025 06:33
Takes a snapshot from the top street camera and uses AI to identify cars and people.
alias: AI Analyse Top Street Camera Snapshot
description: >-
Takes a snapshot from the top street camera and uses AI to identify cars and
people.
triggers:
- trigger: state
entity_id:
- binary_sensor.top_street_motion
to:
- "on"
alias: Compare Ollama LLM Models
mode: single
fields:
test_prompt:
name: Prompt
description: The prompt/question to send to each model.
example: Summarize the current weather and energy usage.
required: true
selector:
text: null
# Automation 3: Don't Forget Your Stuff Reminder
# Reminds you to grab work essentials on workday mornings
alias: Work Essentials Reminder
description: >-
Reminds you in the morning if you open the door and your phone is still
charging.
triggers:
- entity_id:
- lock.front_door # CHANGE THIS to your door lock or sensor
to: unlocked
alias: Check if tomorrow is workday and notify
description: "Sends evening notification about tomorrow's work status"
triggers:
- trigger: time
at: "20:00:00"
actions:
# Step 1: Check if tomorrow is a workday
- action: workday.check_date
metadata: {}
data:
# Automation 1: Smart Real Workday Light Alarm
# This turns on bedroom lights only on real work mornings
description: >-
Gently turns on the bedroom light on workdays at 06:30 AM with a gradual
transition.
triggers:
- trigger: time
at: "06:30:00"
conditions:
- condition: state
alias: Weather and comfort report
sequence:
- action: ai_task.generate_data
data:
task_name: weather comfort report
instructions: |
Based on the current conditions:
- Outdoor temperature: {{ states('sensor.outdoor_temperature') }}°C
- Indoor temperature: {{ states('sensor.family_room_temperature') }}°C
- Indoor humidity: {{ states('sensor.family_room_humidity') }}%