From 3559cb5bf59c8ed234ba451768665dd645c9d9fd Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Sun, 23 Aug 2026 05:23:55 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 32b2516d..4fcc4e79 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -1787,3 +1787,4 @@ {"timestamp": "2026-08-23T05:18:42.932497+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.3d_print_complete_snapshot", "run_id": null, "limit": 1, "deduplicate": true, "detailed": false, "sections": "actions", "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 5.420923233032227, "success": true, "error_message": null, "response_size_bytes": 447, "user_context": null} {"timestamp": "2026-08-23T05:20:26.570093+00:00", "tool_name": "ha_get_camera_image", "parameters": {"entity_id": "camera.endercamera_duckdns_org", "width": 640, "height": 480}, "execution_time_ms": 685.5568885803223, "success": true, "error_message": null, "response_size_bytes": null, "user_context": null} {"timestamp": "2026-08-23T05:23:42.139820+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_print_complete_snapshot", "python_transform": "payload = {\"title\": \"3D print complete\", \"message\": \"Print finished successfully at {{ now().strftime('%H:%M') }}.\", \"data\": {\"image\": \"/local/octoprint_snapshot.jpg\"}}; targets = [\"notify.mobile_app_sm_f956w\", \"notify.mobile_app_motorola_one_vision\", \"notify.mobile_app_francos_ipad\", \"notify.mobile_app_sm_t387w\"]; config[\"actions\"] = [{\"action\": \"camera.snapshot\", \"target\": {\"entity_id\": \"camera.endercamera_duckdns_org\"}, \"data\": {\"filename\": \"/config/www/octoprint_snapshot.jpg\"}}, {\"parallel\": [{\"action\": t, \"data\": payload} for t in targets]}]", "config_hash": "ae6860c7a9dcfcde", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1341.2485122680664, "success": true, "error_message": null, "response_size_bytes": 900, "user_context": null} +{"timestamp": "2026-08-23T05:23:48.728791+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_print_early_layers_snapshot", "python_transform": "payload = {\"title\": \"3D print early check\", \"message\": \"Print passed the first few layers (Z crossed 1 mm).\", \"data\": {\"image\": \"/local/octoprint_snapshot.jpg\"}}; targets = [\"notify.mobile_app_sm_f956w\", \"notify.mobile_app_motorola_one_vision\", \"notify.mobile_app_francos_ipad\", \"notify.mobile_app_sm_t387w\"]; config[\"actions\"] = [{\"action\": \"camera.snapshot\", \"target\": {\"entity_id\": \"camera.endercamera_duckdns_org\"}, \"data\": {\"filename\": \"/config/www/octoprint_snapshot.jpg\"}}, {\"parallel\": [{\"action\": t, \"data\": payload} for t in targets]}]", "config_hash": "f41172500d0587e2", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 287.9049777984619, "success": true, "error_message": null, "response_size_bytes": 899, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 52a6002f..aa825573 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3340,29 +3340,34 @@ entity_id: binary_sensor.octoprint_printing state: 'on' actions: + - action: camera.snapshot + target: + entity_id: camera.endercamera_duckdns_org + data: + filename: /config/www/octoprint_snapshot.jpg - parallel: - action: notify.mobile_app_sm_f956w data: title: 3D print early check message: Print passed the first few layers (Z crossed 1 mm). data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_motorola_one_vision data: title: 3D print early check message: Print passed the first few layers (Z crossed 1 mm). data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_francos_ipad data: title: 3D print early check message: Print passed the first few layers (Z crossed 1 mm). data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg - action: notify.mobile_app_sm_t387w data: title: 3D print early check message: Print passed the first few layers (Z crossed 1 mm). data: - entity_id: camera.endercamera_duckdns_org + image: /local/octoprint_snapshot.jpg mode: single