.ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
@@ -2132,3 +2132,4 @@
|
||||
{"timestamp": "2026-08-26T04:27:13.558222+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_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": "9df44eab3a8eedb5", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 236.79280281066895, "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_manual_meeting_status_busy_ligh\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:27:15.746663+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_light_working_hours", "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": "92a53d9976cc3182", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 197.00288772583008, "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_manual_meeting_status_busy_light_working_hours\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:27:19.220695+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_test_meeting_status_light", "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": "e248161a8b4445ed", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 71.43974304199219, "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_test_meeting_status_light\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:27:23.641289+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_lamp_and_lights_control", "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": "96c25121db475c01", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 105.1630973815918, "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_lamp_and_lights_control\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
|
||||
Reference in New Issue
Block a user