.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json
This commit is contained in:
@@ -1700,3 +1700,5 @@
|
|||||||
{"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: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}
|
{"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}
|
||||||
|
{"timestamp": "2026-08-18T15:52:14.441984+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": 33.17141532897949, "success": true, "error_message": null, "response_size_bytes": 21033, "user_context": null}
|
||||||
|
{"timestamp": "2026-08-18T15:52:14.568017+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "binary_sensor.octoprint_printing", "fields": null, "attribute_keys": null}, "execution_time_ms": 4.783391952514648, "success": true, "error_message": null, "response_size_bytes": 712, "user_context": null}
|
||||||
|
|||||||
+26
-26
@@ -7,7 +7,7 @@
|
|||||||
"voltage": 121,
|
"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.14,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -22,15 +22,15 @@
|
|||||||
},
|
},
|
||||||
"0xffffb40e0607af27": {
|
"0xffffb40e0607af27": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"voltage": 120.1,
|
"voltage": 119.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.6,
|
"power": 2.3,
|
||||||
"current": 0.12,
|
"current": 0.12,
|
||||||
"energy": 29.92,
|
"energy": 29.97,
|
||||||
"power_factor": 0.15,
|
"power_factor": 0.17,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 120.5,
|
"voltage": 120.5,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 60.13,
|
"energy": 60.18,
|
||||||
"power_factor": 0.87,
|
"power_factor": 0.87,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"update": {
|
"update": {
|
||||||
@@ -58,13 +58,13 @@
|
|||||||
"latest_release_notes": null
|
"latest_release_notes": null
|
||||||
},
|
},
|
||||||
"linkquality": 134,
|
"linkquality": 134,
|
||||||
"power": 82.8,
|
"power": 82.6,
|
||||||
"current": 0.79,
|
"current": 0.79,
|
||||||
"power_on_behavior": "on"
|
"power_on_behavior": "on"
|
||||||
},
|
},
|
||||||
"0xb40e060fffe031e3": {
|
"0xb40e060fffe031e3": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"contact": false,
|
"contact": true,
|
||||||
"tamper": false,
|
"tamper": false,
|
||||||
"battery_low": false,
|
"battery_low": false,
|
||||||
"linkquality": 134,
|
"linkquality": 134,
|
||||||
@@ -74,12 +74,12 @@
|
|||||||
"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.1,
|
"voltage": 121.9,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 122.41,
|
"energy": 122.46,
|
||||||
"power": 97.1,
|
"power": 102.6,
|
||||||
"current": 0.9,
|
"current": 0.87,
|
||||||
"power_factor": 0.94,
|
"power_factor": 0.94,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -95,13 +95,13 @@
|
|||||||
"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.7,
|
"voltage": 120.2,
|
||||||
"energy": 55.92,
|
"energy": 55.98,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 90.3,
|
"power": 91.2,
|
||||||
"current": 0.96,
|
"current": 0.9,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.79,
|
"power_factor": 0.8,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -114,12 +114,12 @@
|
|||||||
},
|
},
|
||||||
"0xffffb40e060895b3": {
|
"0xffffb40e060895b3": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"voltage": 121.3,
|
"voltage": 121,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 8.28,
|
"energy": 8.28,
|
||||||
"current": 0.02,
|
"current": 0.01,
|
||||||
"power": 1.1,
|
"power": 0.2,
|
||||||
"power_factor": 0.11,
|
"power_factor": 0.22,
|
||||||
"linkquality": 123,
|
"linkquality": 123,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -136,14 +136,14 @@
|
|||||||
"0xffffb40e0608864e": {
|
"0xffffb40e0608864e": {
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 121.7,
|
"voltage": 121.2,
|
||||||
"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.4,
|
"power": 0.4,
|
||||||
"power_factor": 0.14,
|
"power_factor": 0.15,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -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.13,
|
"power_factor": 0.06,
|
||||||
"power": 0.8
|
"power": 0.6
|
||||||
},
|
},
|
||||||
"0xa4c1380d0679ffff": {
|
"0xa4c1380d0679ffff": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
@@ -245,7 +245,7 @@
|
|||||||
},
|
},
|
||||||
"0xb40e060fffe717c5": {
|
"0xb40e060fffe717c5": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"occupancy": true,
|
"occupancy": false,
|
||||||
"tamper": false,
|
"tamper": false,
|
||||||
"battery_low": false,
|
"battery_low": false,
|
||||||
"linkquality": 72,
|
"linkquality": 72,
|
||||||
|
|||||||
Reference in New Issue
Block a user