.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -162,3 +162,5 @@
|
|||||||
{"timestamp": "2026-07-28T19:35:14.714688+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "camera.hallway_hallway_camera", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.452632904052734, "success": true, "error_message": null, "response_size_bytes": 1009, "user_context": null}
|
{"timestamp": "2026-07-28T19:35:14.714688+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "camera.hallway_hallway_camera", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.452632904052734, "success": true, "error_message": null, "response_size_bytes": 1009, "user_context": null}
|
||||||
{"timestamp": "2026-07-28T19:35:31.890141+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "camera", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 38.99884223937988, "success": true, "error_message": null, "response_size_bytes": 1383, "user_context": null}
|
{"timestamp": "2026-07-28T19:35:31.890141+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "camera", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 38.99884223937988, "success": true, "error_message": null, "response_size_bytes": 1383, "user_context": null}
|
||||||
{"timestamp": "2026-07-28T19:37:18.971586+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 81.84099197387695, "success": true, "error_message": null, "response_size_bytes": 2183, "user_context": null}
|
{"timestamp": "2026-07-28T19:37:18.971586+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 81.84099197387695, "success": true, "error_message": null, "response_size_bytes": 2183, "user_context": null}
|
||||||
|
{"timestamp": "2026-07-28T19:37:25.252601+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.hallway_camera_motion_snapshot", "python_transform": "config['actions'][1] = {'action': 'shell_command.download_camera_image', 'data': {'media_path': '/media/{{ snapshot_filename }}', 'www_path': '/config/www/{{ snapshot_filename }}'}}\ndel config['actions'][2]\ndel config['actions'][2]", "config_hash": "1c5689dd43bc005f", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 258.79406929016113, "success": true, "error_message": null, "response_size_bytes": 587, "user_context": null}
|
||||||
|
{"timestamp": "2026-07-28T19:37:28.416232+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.hallway_camera_motion_snapshot"}, "execution_time_ms": 48.69842529296875, "success": true, "error_message": null, "response_size_bytes": 2021, "user_context": null}
|
||||||
|
|||||||
+3
-11
@@ -3059,18 +3059,10 @@
|
|||||||
- variables:
|
- variables:
|
||||||
snapshot_filename: hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
|
snapshot_filename: hallway_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
|
||||||
notification_id: hallway_motion_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
|
notification_id: hallway_motion_{{ now().strftime('%Y%m%d_%H%M%S_%f') }}
|
||||||
- action: camera.snapshot
|
- action: shell_command.download_camera_image
|
||||||
target:
|
|
||||||
entity_id: camera.hallway_hallway_camera
|
|
||||||
data:
|
data:
|
||||||
filename: /media/{{ snapshot_filename }}
|
media_path: /media/{{ snapshot_filename }}
|
||||||
- action: camera.snapshot
|
www_path: /config/www/{{ snapshot_filename }}
|
||||||
target:
|
|
||||||
entity_id: camera.hallway_hallway_camera
|
|
||||||
data:
|
|
||||||
filename: /config/www/{{ snapshot_filename }}
|
|
||||||
- delay:
|
|
||||||
seconds: 2
|
|
||||||
- action: ai_task.generate_data
|
- action: ai_task.generate_data
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
response_variable: ai_profile
|
response_variable: ai_profile
|
||||||
|
|||||||
Reference in New Issue
Block a user