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

This commit is contained in:
Home Assistant Version Control
2026-10-11 17:19:17 +00:00
parent f0541b8166
commit 45511311c9
2 changed files with 14 additions and 12 deletions
+2
View File
@@ -4426,3 +4426,5 @@
{"timestamp": "2026-10-11T17:14:03.323485+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": ["input_number.sparkx_i7_spoolman_length_checkpoint", "sensor.sparkx_i7_used_material_length"], "source": "history", "start_time": "2d", "end_time": null, "minimal_response": true, "significant_changes_only": false, "limit": null, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 3512.8872394561768, "success": true, "error_message": null, "response_size_bytes": 18407, "user_context": null}
{"timestamp": "2026-10-11T17:15:12.738954+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_1", "sensor.spoolman_spool_2", "sensor.spoolman_spool_3", "sensor.spoolman_spool_4", "sensor.spoolman_spool_5", "sensor.spoolman_spool_6", "sensor.spoolman_spool_7", "sensor.spoolman_spool_8"], "fields": ["entity_id", "state", "attributes", "last_changed"], "attribute_keys": ["location", "used_weight", "remaining_weight", "last_used", "filament_name", "filament_density", "filament_price", "filament_color_hex"]}, "execution_time_ms": 19.77229118347168, "success": true, "error_message": null, "response_size_bytes": 3702, "user_context": null}
{"timestamp": "2026-10-11T17:15:12.797608+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "logbook", "limit": 40, "search": null, "order": "newest", "hours_back": 24, "entity_id": "automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete", "end_time": null, "offset": 0, "compact": true, "level": null, "structured": false, "top_n": null, "slug": null}, "execution_time_ms": 77.82101631164551, "success": true, "error_message": null, "response_size_bytes": 3498, "user_context": null}
{"timestamp": "2026-10-11T17:19:11.064205+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": null, "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "mode": "search", "query": "sparkx_i7_filament_g_cm"}, "execution_time_ms": 43.134212493896484, "success": true, "error_message": null, "response_size_bytes": 1322, "user_context": null}
{"timestamp": "2026-10-11T17:19:11.070679+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for e in states.sensor if e.entity_id | match('^sensor\\.spoolman_spool_\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 52.34670639038086, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"TemplateAssertionError: No filter named 'match'.\",\n \"suggestion\": \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"suggestions\": [\n \"Fix the template at the reported line, if one is given, then evaluate it again\",\n \"Use default values for missing data: {{ states('sensor.temp') | float(0) }}\",\n \"Verify entity_ids exist using ha_get_state() or ha_search()\",\n \"Pass values the template expects through 'variables'\"\n ]\n },\n \"template\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\\n{% endfor %}\",\n \"line\": 1,\n \"source_line\": \"{% for e in states.sensor if e.entity_id | match('^sensor\\\\.spoolman_spool_\\\\d+$') %}{{ e.entity_id }} | {{ state_attr(e.entity_id,'filament_name') }} | density={{ state_attr(e.entity_id,'filament_density') }} | dia={{ state_attr(e.entity_id,'filament_diameter') }} | price={{ state_attr(e.entity_id,'filament_price') }} | loc={{ state_attr(e.entity_id,'location') }} | rem={{ e.state }}\"\n}", "response_size_bytes": null, "user_context": null}
+12 -12
View File
@@ -4,7 +4,7 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 120.6,
"voltage": 120.4,
"countdown_to_turn_on": 0,
"ac_frequency": 60,
"power_factor": 0.14,
@@ -22,15 +22,15 @@
},
"0xffffb40e0607af27": {
"state": "ON",
"voltage": 120.9,
"voltage": 120.7,
"ac_frequency": 60,
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"power": 1.9,
"power": 2,
"current": 0.09,
"energy": 54.79,
"power_factor": 0.17,
"power_factor": 0.25,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -47,8 +47,8 @@
"countdown_to_turn_off": 0,
"voltage": 120.5,
"countdown_to_turn_on": 0,
"energy": 106.23,
"power_factor": 0.2,
"energy": 106.24,
"power_factor": 0.89,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null
},
"linkquality": 145,
"power": 82.9,
"current": 0.83,
"power": 85.6,
"current": 0.85,
"power_on_behavior": "on"
},
"0xb40e060fffe031e3": {
@@ -95,11 +95,11 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 120.7,
"voltage": 120.2,
"energy": 101.96,
"state": "ON",
"power": 23.9,
"current": 0.34,
"current": 0.31,
"ac_frequency": 60,
"power_factor": 0.61,
"update": {
@@ -119,7 +119,7 @@
"energy": 14.73,
"current": 0.01,
"power": 0.1,
"power_factor": 0.13,
"power_factor": 0.16,
"linkquality": 116,
"update": {
"state": "idle",
@@ -224,7 +224,7 @@
},
"0xb40e060fffe717c5": {
"battery": 100,
"occupancy": false,
"occupancy": true,
"tamper": false,
"battery_low": false,
"linkquality": 145,