.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-08-31 16:51:51 +00:00
parent ee0626728b
commit ca6150762b
2 changed files with 19 additions and 17 deletions
+2
View File
@@ -3416,3 +3416,5 @@
{"timestamp": "2026-08-31T15:48:45.537770+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "dashboard-home", "config": null, "python_transform": "cards = config['views'][0]['sections'][1]['cards']; idx = next(i for i,c in enumerate(cards) if c.get('entity')=='sensor.filter_current_consumption'); cards.insert(idx+1, {\"type\":\"tile\",\"entity\":\"sensor.printer_power\",\"vertical\":False,\"features\":[{\"type\":\"trend-graph\"}],\"features_position\":\"bottom\"})", "config_hash": "9cb8751baebf7c79", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 5.425691604614258, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression raised at runtime: NameError: name 'next' is not defined\",\n \"suggestion\": \"Verify referenced keys/indices exist in the input\",\n \"suggestions\": [\n \"Verify referenced keys/indices exist in the input\",\n \"Check that types match (e.g. dict vs list operations)\",\n \"Use .get(key, default) to handle missing keys\",\n \"Expression: cards = config['views'][0]['sections'][1]['cards']; idx = next(i for i,c in enumerate(cards) if c.ge...\",\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 \"url_path\": \"dashboard-home\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-31T15:49:20.421981+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "dashboard-home", "config": null, "python_transform": "cards = config['views'][0]['sections'][1]['cards']; idx = -1; i = 0\nfor c in cards:\n if c.get('entity') == 'sensor.filter_current_consumption':\n idx = i\n break\n i += 1\ncards.insert(idx+1, {\"type\":\"tile\",\"entity\":\"sensor.printer_power\",\"vertical\":False,\"features\":[{\"type\":\"trend-graph\"}],\"features_position\":\"bottom\"})", "config_hash": "9cb8751baebf7c79", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 118.62778663635254, "success": true, "error_message": null, "response_size_bytes": 30705, "user_context": null}
{"timestamp": "2026-08-31T16:50:13.023964+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_filament_cost_last_job", "fields": null, "attribute_keys": null}, "execution_time_ms": 51.45978927612305, "success": true, "error_message": null, "response_size_bytes": 792, "user_context": null}
{"timestamp": "2026-08-31T16:51:44.805609+00:00", "tool_name": "ha_search", "parameters": {"query": "octoprint filament cost", "domain_filter": "sensor", "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": 39.18099403381348, "success": true, "error_message": null, "response_size_bytes": 1709, "user_context": null}
{"timestamp": "2026-08-31T16:51:50.988631+00:00", "tool_name": "ha_set_entity", "parameters": {"entity_id": "sensor.octoprint_filament_cost_last_job", "area_id": null, "name": null, "icon": null, "device_class": null, "options": {"sensor": {"display_precision": 2}}, "enabled": null, "hidden": null, "aliases": null, "categories": null, "labels": null, "label_operation": "set", "expose_to": null, "new_entity_id": null, "new_device_name": null}, "execution_time_ms": 20.471811294555664, "success": true, "error_message": null, "response_size_bytes": 608, "user_context": null}
+17 -17
View File
@@ -4,10 +4,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 121.8,
"voltage": 121.4,
"countdown_to_turn_on": 0,
"ac_frequency": 60,
"power_factor": 0.61,
"power_factor": 0.13,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -15,7 +15,7 @@
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
"latest_release_notes": null
},
"power": 3.5,
"power": 0.5,
"linkquality": 112,
"current": 0.07,
"power_on_behavior": "on"
@@ -27,10 +27,10 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"power": 2,
"power": 1.9,
"current": 0.1,
"energy": 35.41,
"power_factor": 0.16,
"power_factor": 0.18,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -45,10 +45,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 121.5,
"voltage": 120.7,
"countdown_to_turn_on": 0,
"energy": 70.92,
"power_factor": 0.2,
"power_factor": 0.89,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null
},
"linkquality": 109,
"power": 0.4,
"current": 0.03,
"power": 87.1,
"current": 0.84,
"power_on_behavior": "on"
},
"0xb40e060fffe031e3": {
@@ -74,10 +74,10 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 120.4,
"voltage": 120.2,
"state": "ON",
"ac_frequency": 60,
"energy": 143.95,
"energy": 143.96,
"power": 99.2,
"current": 0.86,
"power_factor": 0.94,
@@ -95,11 +95,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 121.7,
"voltage": 120.8,
"energy": 68.18,
"state": "ON",
"power": 50.4,
"current": 0.54,
"power": 42.5,
"current": 0.48,
"ac_frequency": 60,
"power_factor": 0.75,
"update": {
@@ -114,12 +114,12 @@
},
"0xffffb40e060895b3": {
"state": "ON",
"voltage": 121.8,
"voltage": 121.2,
"ac_frequency": 60,
"energy": 9.55,
"current": 0.01,
"power": 0.2,
"power_factor": 0,
"power_factor": 0.11,
"linkquality": 112,
"update": {
"state": "idle",
@@ -136,7 +136,7 @@
"0xffffb40e0608864e": {
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 122,
"voltage": 121.4,
"energy": 21.92,
"countdown_to_turn_on": 0,
"state": "ON",