Initial Home Assistant commit

This commit is contained in:
2026-06-05 22:34:31 -04:00
commit 6a58b10e6c
4494 changed files with 297833 additions and 0 deletions
@@ -0,0 +1,48 @@
########################################################################################
# AI Suggestions - New Entity Detection
########################################################################################
# This automation triggers the AI Automation Suggester whenever new entities are added to
# your Home Assistant instance.
#
# CUSTOMIZATION OPTIONS:
# 1. Trigger Events:
# - Currently monitors both 'create' and 'update' events
# - Remove the second trigger if you only want new entity detection
#
# 2. Throttling:
# - Uses a cooldown of 1 hour to prevent excessive API calls
# - Adjust the hours value in the condition template if needed
########################################################################################
alias: "AI Suggestions - New Entity Detection"
description: "Generates automation suggestions whenever new entities are registered in Home Assistant"
trigger:
# Trigger when a new entity is created
- platform: event
event_type: entity_registry_updated
event_data:
action: create
# Optional: Trigger when an entity is updated
- platform: event
event_type: entity_registry_updated
event_data:
action: update
condition:
# Simple throttling based on last trigger time
- condition: template
value_template: >-
{% set automation = states.automation.ai_suggestions_new_entity_detection %}
{% if automation and automation.attributes.last_triggered %}
{% set hours_since = ((now() - as_datetime(automation.attributes.last_triggered)).total_seconds() / 3600) | float %}
{{ hours_since > 1.0 }}
{% else %}
true
{% endif %}
action:
- service: ai_automation_suggester.generate_suggestions
target: {}
data: {}
@@ -0,0 +1,39 @@
########################################################################################
# AI Suggestions - Weekly System Review
########################################################################################
# This automation performs a comprehensive weekly review of your Home Assistant setup
# to suggest new automation opportunities and improvements.
#
# CUSTOMIZATION OPTIONS:
# 1. Schedule:
# - Currently runs at 3 AM on Sundays
# - Modify the 'at' field to change the time
# - Change the weekday condition to run on different days
########################################################################################
alias: "AI Suggestions - Weekly Review"
description: "Performs a weekly scan of all entities to suggest new automation opportunities"
trigger:
# Runs at 3 AM
- platform: time
at: "03:00:00"
condition:
# Only runs on Sundays
- condition: time
weekday:
- sun
action:
# Generate suggestions using the configured provider(s), scanning all entities
- service: ai_automation_suggester.generate_suggestions
data:
all_entities: true
# Create a notification
- service: persistent_notification.create
data:
title: "Weekly Automation Review"
message: "The AI Automation Suggester has completed its weekly review. Check the suggestions sensor for new automation ideas!"
notification_id: "weekly_automation_review"