.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-26 04:27:12 +00:00
parent 90f52a50b6
commit 6a090145e9
+1
View File
@@ -2128,3 +2128,4 @@
{"timestamp": "2026-08-26T04:25:37.891565+00:00", "tool_name": "ha_search", "parameters": {"query": "Manual Meeting Status Busy Light", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 5, "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": 10558.692932128906, "success": true, "error_message": null, "response_size_bytes": 1398, "user_context": null}
{"timestamp": "2026-08-26T04:27:02.645028+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.alert_thread_node_offline", "python_transform": "\ndef r(o, m):\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\n if isinstance(o, list): return [r(i,m) for i in o]\n if isinstance(o, str):\n for k,v in m.items(): o=o.replace(k,v)\n return o\nm={\"sensor.night_light_illuminance\":\"sensor.night_light_illuminance_2\",\"binary_sensor.night_light_occupancy\":\"binary_sensor.night_light_occupancy_2\",\"sensor.bedroom_switch_battery\":\"sensor.bedroom_switch_battery_2\",\"light.bedroom_lamp\":\"light.bedroom_lamp_2\",\"light.office_lamp\":\"light.office_lamp_2\",\"light.night_light\":\"light.night_light_2\"}\nfor k in [\"triggers\",\"actions\",\"conditions\",\"variables\"]: \n if k in config: config[k]=r(config[k],m)\n", "config_hash": "ed171d2737dbee8d", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 343.5361385345459, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression validation failed: Forbidden node type: FunctionDef \\u2014 use a list comprehension or inline the logic\",\n \"suggestion\": \"Check expression syntax\",\n \"suggestions\": [\n \"Check expression syntax\",\n \"Ensure only allowed operations are used\",\n \"See tool description for allowed operations\",\n \"Expression: \\ndef r(o, m):\\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\\n if isinstance(o,...\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.alert_thread_node_offline\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-26T04:27:04.861903+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_desk_lamp_meeting_alert", "python_transform": "\ndef r(o, m):\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\n if isinstance(o, list): return [r(i,m) for i in o]\n if isinstance(o, str):\n for k,v in m.items(): o=o.replace(k,v)\n return o\nm={\"sensor.night_light_illuminance\":\"sensor.night_light_illuminance_2\",\"binary_sensor.night_light_occupancy\":\"binary_sensor.night_light_occupancy_2\",\"sensor.bedroom_switch_battery\":\"sensor.bedroom_switch_battery_2\",\"light.bedroom_lamp\":\"light.bedroom_lamp_2\",\"light.office_lamp\":\"light.office_lamp_2\",\"light.night_light\":\"light.night_light_2\"}\nfor k in [\"triggers\",\"actions\",\"conditions\",\"variables\"]: \n if k in config: config[k]=r(config[k],m)\n", "config_hash": "b3ca17bbb2fa10ed", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 110.9929084777832, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression validation failed: Forbidden node type: FunctionDef \\u2014 use a list comprehension or inline the logic\",\n \"suggestion\": \"Check expression syntax\",\n \"suggestions\": [\n \"Check expression syntax\",\n \"Ensure only allowed operations are used\",\n \"See tool description for allowed operations\",\n \"Expression: \\ndef r(o, m):\\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\\n if isinstance(o,...\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.office_desk_lamp_meeting_alert\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-26T04:27:11.323766+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_teams_webhook_busy_ligh", "python_transform": "\ndef r(o, m):\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\n if isinstance(o, list): return [r(i,m) for i in o]\n if isinstance(o, str):\n for k,v in m.items(): o=o.replace(k,v)\n return o\nm={\"sensor.night_light_illuminance\":\"sensor.night_light_illuminance_2\",\"binary_sensor.night_light_occupancy\":\"binary_sensor.night_light_occupancy_2\",\"sensor.bedroom_switch_battery\":\"sensor.bedroom_switch_battery_2\",\"light.bedroom_lamp\":\"light.bedroom_lamp_2\",\"light.office_lamp\":\"light.office_lamp_2\",\"light.night_light\":\"light.night_light_2\"}\nfor k in [\"triggers\",\"actions\",\"conditions\",\"variables\"]: \n if k in config: config[k]=r(config[k],m)\n", "config_hash": "09b42740ea112d26", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1543.0819988250732, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression validation failed: Forbidden node type: FunctionDef \\u2014 use a list comprehension or inline the logic\",\n \"suggestion\": \"Check expression syntax\",\n \"suggestions\": [\n \"Check expression syntax\",\n \"Ensure only allowed operations are used\",\n \"See tool description for allowed operations\",\n \"Expression: \\ndef r(o, m):\\n if isinstance(o, dict): return {r(k,m):r(v,m) for k,v in o.items()}\\n if isinstance(o,...\",\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 \"action\": \"python_transform\",\n \"identifier\": \"automation.office_teams_webhook_busy_ligh\"\n}", "response_size_bytes": null, "user_context": null}