.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-09-01 19:26:32 +00:00
parent b0f86d56e2
commit 53d3cb9fc6
2 changed files with 35 additions and 0 deletions
+34
View File
@@ -2505,6 +2505,10 @@
id: front
to: 'on'
trigger: state
- trigger: state
entity_id: binary_sensor.blink_garage_side_motion
to: 'on'
id: garage
actions:
- action: shell_command.cleanup_blink_snapshots
- choose:
@@ -2598,6 +2602,36 @@
entity_id: camera.blink_front
data:
filename: /config/www/{{ snapshot_filename }}
- conditions:
- condition: trigger
id: garage
sequence:
- action: switch.turn_on
target:
entity_id: switch.garage_side_refresh_snapshot
- delay:
seconds: 20
- action: homeassistant.update_entity
target:
entity_id: camera.garage_side
- delay:
seconds: 3
- variables:
snapshot_filename: blink_garage_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
- variables:
notification_id: blink_garage_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
- variables:
title: Motion Detected - Garage Side
- action: camera.snapshot
target:
entity_id: camera.blink_garage_side
data:
filename: /media/{{ snapshot_filename }}
- action: camera.snapshot
target:
entity_id: camera.blink_garage_side
data:
filename: /config/www/{{ snapshot_filename }}
default:
- delay:
seconds: 2