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

This commit is contained in:
Home Assistant Version Control
2026-08-18 15:11:09 +00:00
parent da8be7afce
commit 11a1655d8b
2 changed files with 24 additions and 22 deletions
+2
View File
@@ -1698,3 +1698,5 @@
{"timestamp": "2026-08-18T14:24:08.957712+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 6.65593147277832, "success": true, "error_message": null, "response_size_bytes": 14584, "user_context": null} {"timestamp": "2026-08-18T14:24:08.957712+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": null, "query": null}, "execution_time_ms": 6.65593147277832, "success": true, "error_message": null, "response_size_bytes": 14584, "user_context": null}
{"timestamp": "2026-08-18T14:24:50.563004+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "\n# Temperatures section is views[0].sections[2]\nsection = config['views'][0]['sections'][2]\n\n# Remove any existing single-entity history-graph cards\nsection['cards'] = [c for c in section['cards'] if not (c.get('type') == 'history-graph')]\n\n# Add combined nozzle temperature chart\nnozzle_chart = {\n 'title': 'Nozzle Temperature',\n 'type': 'history-graph',\n 'entities': [\n {'entity': 'sensor.octoprint_tool_0_temperature', 'name': 'Actual', 'color': '#ef5350'},\n {'entity': 'sensor.octoprint_tool_0_target', 'name': 'Target', 'color': '#ffab91'}\n ],\n 'hours_to_show': 24,\n 'show_names': True,\n 'expand_legend': True,\n 'grid_options': {'columns': 'full'}\n}\n\n# Add combined bed temperature chart\nbed_chart = {\n 'title': 'Bed Temperature',\n 'type': 'history-graph',\n 'entities': [\n {'entity': 'sensor.octoprint_bed_temperature', 'name': 'Actual', 'color': '#42a5f5'},\n {'entity': 'sensor.octoprint_bed_target', 'name': 'Target', 'color': '#90caf9'}\n ],\n 'hours_to_show': 24,\n 'show_names': True,\n 'expand_legend': True,\n 'grid_options': {'columns': 'full'}\n}\n\nsection['cards'].append(nozzle_chart)\nsection['cards'].append(bed_chart)\n", "config_hash": "a42bdda6bd8814fd", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 18.863439559936523, "success": true, "error_message": null, "response_size_bytes": 31310, "user_context": null} {"timestamp": "2026-08-18T14:24:50.563004+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "\n# Temperatures section is views[0].sections[2]\nsection = config['views'][0]['sections'][2]\n\n# Remove any existing single-entity history-graph cards\nsection['cards'] = [c for c in section['cards'] if not (c.get('type') == 'history-graph')]\n\n# Add combined nozzle temperature chart\nnozzle_chart = {\n 'title': 'Nozzle Temperature',\n 'type': 'history-graph',\n 'entities': [\n {'entity': 'sensor.octoprint_tool_0_temperature', 'name': 'Actual', 'color': '#ef5350'},\n {'entity': 'sensor.octoprint_tool_0_target', 'name': 'Target', 'color': '#ffab91'}\n ],\n 'hours_to_show': 24,\n 'show_names': True,\n 'expand_legend': True,\n 'grid_options': {'columns': 'full'}\n}\n\n# Add combined bed temperature chart\nbed_chart = {\n 'title': 'Bed Temperature',\n 'type': 'history-graph',\n 'entities': [\n {'entity': 'sensor.octoprint_bed_temperature', 'name': 'Actual', 'color': '#42a5f5'},\n {'entity': 'sensor.octoprint_bed_target', 'name': 'Target', 'color': '#90caf9'}\n ],\n 'hours_to_show': 24,\n 'show_names': True,\n 'expand_legend': True,\n 'grid_options': {'columns': 'full'}\n}\n\nsection['cards'].append(nozzle_chart)\nsection['cards'].append(bed_chart)\n", "config_hash": "a42bdda6bd8814fd", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 18.863439559936523, "success": true, "error_message": null, "response_size_bytes": 31310, "user_context": null}
{"timestamp": "2026-08-18T14:26:10.912464+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "\n# Temperatures section is views[0].sections[2]\nsection = config['views'][0]['sections'][2]\n\n# Find and update the nozzle chart\nfor card in section['cards']:\n if card.get('title') == 'Nozzle Temperature' and card.get('type') == 'history-graph':\n for entity in card.get('entities', []):\n if entity.get('name') == 'Target':\n entity['color'] = '#4caf50' # Green\n\n# Find and update the bed chart\nfor card in section['cards']:\n if card.get('title') == 'Bed Temperature' and card.get('type') == 'history-graph':\n for entity in card.get('entities', []):\n if entity.get('name') == 'Target':\n entity['color'] = '#4caf50' # Green\n", "config_hash": "e54892f851f38fac", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 25.226831436157227, "success": true, "error_message": null, "response_size_bytes": 30779, "user_context": null} {"timestamp": "2026-08-18T14:26:10.912464+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "\n# Temperatures section is views[0].sections[2]\nsection = config['views'][0]['sections'][2]\n\n# Find and update the nozzle chart\nfor card in section['cards']:\n if card.get('title') == 'Nozzle Temperature' and card.get('type') == 'history-graph':\n for entity in card.get('entities', []):\n if entity.get('name') == 'Target':\n entity['color'] = '#4caf50' # Green\n\n# Find and update the bed chart\nfor card in section['cards']:\n if card.get('title') == 'Bed Temperature' and card.get('type') == 'history-graph':\n for entity in card.get('entities', []):\n if entity.get('name') == 'Target':\n entity['color'] = '#4caf50' # Green\n", "config_hash": "e54892f851f38fac", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 25.226831436157227, "success": true, "error_message": null, "response_size_bytes": 30779, "user_context": null}
{"timestamp": "2026-08-18T15:11:01.809214+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": ["sensor.octoprint_tool_0_temperature", "sensor.octoprint_tool_0_target"], "source": "history", "start_time": "1.5h", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": null, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 0.5362033843994141, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_INVALID_PARAMETER\",\n \"message\": \"Invalid time format: 1.5h. Use ISO format or relative (e.g., '24h', '7d', '2w', '1m')\",\n \"suggestion\": \"Use ISO format: '2025-01-25T00:00:00Z'\",\n \"suggestions\": [\n \"Use ISO format: '2025-01-25T00:00:00Z'\",\n \"Use relative format: '24h', '7d', '2w', '1m'\"\n ]\n },\n \"parameter\": \"start_time\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-18T15:11:08.543844+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": ["sensor.octoprint_tool_0_temperature", "sensor.octoprint_tool_0_target", "sensor.octoprint_bed_temperature", "sensor.octoprint_bed_target"], "source": "history", "start_time": "1h", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": null, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 180.29522895812988, "success": true, "error_message": null, "response_size_bytes": 25551, "user_context": null}
+22 -22
View File
@@ -4,7 +4,7 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 121.5, "voltage": 121,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.11, "power_factor": 0.11,
@@ -22,12 +22,12 @@
}, },
"0xffffb40e0607af27": { "0xffffb40e0607af27": {
"state": "ON", "state": "ON",
"voltage": 113.6, "voltage": 120.1,
"ac_frequency": 60, "ac_frequency": 60,
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"power": 2, "power": 2.6,
"current": 0.12, "current": 0.12,
"energy": 29.92, "energy": 29.92,
"power_factor": 0.15, "power_factor": 0.15,
@@ -45,10 +45,10 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 120.9, "voltage": 120.5,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 60.1, "energy": 60.13,
"power_factor": 0.86, "power_factor": 0.87,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -58,7 +58,7 @@
"latest_release_notes": null "latest_release_notes": null
}, },
"linkquality": 134, "linkquality": 134,
"power": 83.4, "power": 82.8,
"current": 0.79, "current": 0.79,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
@@ -74,11 +74,11 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 120.5, "voltage": 120.1,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 122.4, "energy": 122.41,
"power": 104.6, "power": 97.1,
"current": 0.9, "current": 0.9,
"power_factor": 0.94, "power_factor": 0.94,
"update": { "update": {
@@ -95,11 +95,11 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 119.9, "voltage": 119.7,
"energy": 55.88, "energy": 55.92,
"state": "ON", "state": "ON",
"power": 92.6, "power": 90.3,
"current": 1.01, "current": 0.96,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.79, "power_factor": 0.79,
"update": { "update": {
@@ -119,7 +119,7 @@
"energy": 8.28, "energy": 8.28,
"current": 0.02, "current": 0.02,
"power": 1.1, "power": 1.1,
"power_factor": 0.2, "power_factor": 0.11,
"linkquality": 123, "linkquality": 123,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -136,13 +136,13 @@
"0xffffb40e0608864e": { "0xffffb40e0608864e": {
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 121.9, "voltage": 121.7,
"energy": 18.71, "energy": 18.71,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"state": "ON", "state": "ON",
"current": 0.02, "current": 0.02,
"ac_frequency": 60, "ac_frequency": 60,
"power": 0.3, "power": 0.4,
"power_factor": 0.14, "power_factor": 0.14,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -172,7 +172,7 @@
"0xffffb40e060893d8": { "0xffffb40e060893d8": {
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"voltage": 122.4, "voltage": 121.9,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 3.14, "energy": 3.14,
@@ -187,8 +187,8 @@
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota", "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 "latest_release_notes": null
}, },
"power_factor": 0.12, "power_factor": 0.13,
"power": 0.2 "power": 0.8
}, },
"0xa4c1380d0679ffff": { "0xa4c1380d0679ffff": {
"battery": 100, "battery": 100,
@@ -245,7 +245,7 @@
}, },
"0xb40e060fffe717c5": { "0xb40e060fffe717c5": {
"battery": 100, "battery": 100,
"occupancy": false, "occupancy": true,
"tamper": false, "tamper": false,
"battery_low": false, "battery_low": false,
"linkquality": 72, "linkquality": 72,
@@ -260,7 +260,7 @@
}, },
"0xb40e060fffe7180a": { "0xb40e060fffe7180a": {
"battery": 100, "battery": 100,
"occupancy": true, "occupancy": false,
"tamper": false, "tamper": false,
"battery_low": false, "battery_low": false,
"linkquality": 134, "linkquality": 134,