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

This commit is contained in:
Home Assistant Version Control
2026-09-18 13:31:48 +00:00
parent 708d8064f1
commit 9f1571dc29
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -3675,3 +3675,5 @@
{"timestamp": "2026-09-18T13:29:50.277566+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "rest_command", "service": "reload", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 118.27826499938965, "success": true, "error_message": null, "response_size_bytes": 173, "user_context": null}
{"timestamp": "2026-09-18T13:29:52.985571+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "rest_command", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": ["services"]}, "execution_time_ms": 22.521257400512695, "success": true, "error_message": null, "response_size_bytes": 445, "user_context": null}
{"timestamp": "2026-09-18T13:30:51.899119+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"id": "1771000000001", "alias": "3D PRINTER: IKEA BILRESA E2489 Dual Button (Matter) - Cancel & Park", "description": "Button 1 single press cancels the active OctoPrint print, waits 5s, then parks the nozzle via rest_command.", "use_blueprint": {"path": "censay/ikea-bilresa-e2489-matter-smart-button.yaml", "input": {"target_device": "c2a0b26ffccdfc1fcde0c1b4700d1d0f", "button1_event": "event.3d_printer_control_button_1", "button2_event": "event.3d_printer_control_button_2", "button1_single": [{"action": "button.press", "target": {"entity_id": "[REDACTED]"}}, {"delay": "00:00:05"}, {"action": "rest_command.octoprint_park_nozzle"}]}}}, "identifier": null, "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 0.14328956604003906, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Config contains 'id' field ('1771000000001') but no identifier was provided. This would create a duplicate automation instead of updating the existing one.\",\n \"details\": \"To update, pass identifier='1771000000001' (or the automation's entity_id). To create a genuinely new automation, remove the 'id' field from the config.\",\n \"suggestion\": \"Check the parameter values and format against the tool documentation\",\n \"suggestions\": [\n \"Check the parameter values and format against the tool documentation\",\n \"Review the message and details fields for the specific constraint that failed\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"parameter\": \"identifier\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-09-18T13:31:41.895576+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"id": "1771000000001", "alias": "3D PRINTER: IKEA BILRESA E2489 Dual Button (Matter) - Cancel & Park", "description": "Button 1 single press cancels the active OctoPrint print, waits 5s, then parks the nozzle via rest_command.", "use_blueprint": {"path": "censay/ikea-bilresa-e2489-matter-smart-button.yaml", "input": {"target_device": "c2a0b26ffccdfc1fcde0c1b4700d1d0f", "button1_event": "event.3d_printer_control_button_1", "button2_event": "event.3d_printer_control_button_2", "button1_single": [{"action": "button.press", "target": {"entity_id": "[REDACTED]"}}, {"delay": "00:00:05"}, {"action": "rest_command.octoprint_park_nozzle"}]}}}, "identifier": "1771000000001", "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 510.6813907623291, "success": true, "error_message": null, "response_size_bytes": 183, "user_context": null}
{"timestamp": "2026-09-18T13:31:45.975561+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "1771000000001"}, "execution_time_ms": 387.07971572875977, "success": true, "error_message": null, "response_size_bytes": 834, "user_context": null}
+16
View File
@@ -4002,3 +4002,19 @@
target:
entity_id: input_boolean.3d_printer_running
mode: single
- id: '1771000000001'
alias: '3D PRINTER: IKEA BILRESA E2489 Dual Button (Matter) - Cancel & Park'
description: Button 1 single press cancels the active OctoPrint print, waits 5s,
then parks the nozzle via rest_command.
use_blueprint:
path: censay/ikea-bilresa-e2489-matter-smart-button.yaml
input:
target_device: c2a0b26ffccdfc1fcde0c1b4700d1d0f
button1_event: event.3d_printer_control_button_1
button2_event: event.3d_printer_control_button_2
button1_single:
- action: button.press
target:
entity_id: button.octoprint_cancel_print
- delay: 00:00:05
- action: rest_command.octoprint_park_nozzle