.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-02 17:24:18 +00:00
parent 9042b52ca8
commit 864565c6e0
+1
View File
@@ -450,3 +450,4 @@
{"timestamp": "2026-08-02T17:21:48.264656+00:00", "tool_name": "ha_search", "parameters": {"query": "previous_brightness", "domain_filter": "input_text", "area_filter": null, "search_types": null, "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 167.25802421569824, "success": true, "error_message": null, "response_size_bytes": 780, "user_context": null}
{"timestamp": "2026-08-02T17:23:22.344877+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_text", "name": "Living Room Previous Brightness", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": null, "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": null, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 82.7934741973877, "success": true, "error_message": null, "response_size_bytes": 336, "user_context": null}
{"timestamp": "2026-08-02T17:23:35.660193+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.basement_switch_toggles_dining_room_switch_light", "python_transform": "config['use_blueprint']['input']['button2_single'] = [{\"action\": \"choose\", \"choose\": [{\"conditions\": [{\"condition\": \"template\", \"value_template\": \"{{ states('input_text.living_room_previous_brightness') == '' }}\"}], \"sequence\": [{\"action\": \"light.turn_on\", \"target\": {\"entity_id\": \"light.living_room_living_room_home_living_room\"}}, {\"action\": \"input_text.set_value\", \"target\": {\"entity_id\": \"input_text.living_room_previous_brightness\"}, \"data\": {\"value\": \"{{ state_attr('light.living_room_living_room_home_living_room', 'brightness') }}\"}}, {\"action\": \"light.turn_on\", \"target\": {\"entity_id\": \"light.living_room_living_room_home_living_room\"}, \"data\": {\"brightness_pct\": 50}}]}], \"default\": [{\"action\": \"light.turn_on\", \"target\": {\"entity_id\": \"light.living_room_living_room_home_living_room\"}, \"data\": {\"brightness\": \"{{ states('input_text.living_room_previous_brightness') | int }}\"}}, {\"action\": \"input_text.set_value\", \"target\": {\"entity_id\": \"input_text.living_room_previous_brightness\"}, \"data\": {\"value\": \"\"}}]}]", "config_hash": "29bc6cd79b023565", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 58.333396911621094, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Invalid automation configuration: API error: 400 - Message malformed: extra keys not allowed @ data['actions'][1]['choose'][4]['sequence'][0]['action']\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\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 \"identifier\": \"automation.basement_switch_toggles_dining_room_switch_light\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-02T17:24:12.515351+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.basement_switch_toggles_dining_room_switch_light"}, "execution_time_ms": 102.70380973815918, "success": true, "error_message": null, "response_size_bytes": 785, "user_context": null}