.ha_mcp/logs/mcp_usage.jsonl, .storage/lovelace.printer_stats

This commit is contained in:
Home Assistant Version Control
2026-08-07 04:20:15 +00:00
parent f22d25b79f
commit 830d23faa5
2 changed files with 454 additions and 0 deletions
+1
View File
@@ -597,3 +597,4 @@
{"timestamp": "2026-08-07T04:18:40.824870+00:00", "tool_name": "ha_get_device", "parameters": {"device_id": null, "entity_id": "sensor.octoprint_print_progress", "integration": null, "area_id": null, "manufacturer": null, "limit": 50, "offset": 0, "detail_level": "summary"}, "execution_time_ms": 196.15817070007324, "success": true, "error_message": null, "response_size_bytes": 5753, "user_context": null} {"timestamp": "2026-08-07T04:18:40.824870+00:00", "tool_name": "ha_get_device", "parameters": {"device_id": null, "entity_id": "sensor.octoprint_print_progress", "integration": null, "area_id": null, "manufacturer": null, "limit": 50, "offset": 0, "detail_level": "summary"}, "execution_time_ms": 196.15817070007324, "success": true, "error_message": null, "response_size_bytes": 5753, "user_context": null}
{"timestamp": "2026-08-07T04:19:14.738653+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "history_stats", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 47.770023345947266, "success": true, "error_message": null, "response_size_bytes": 234, "user_context": null} {"timestamp": "2026-08-07T04:19:14.738653+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "history_stats", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 47.770023345947266, "success": true, "error_message": null, "response_size_bytes": 234, "user_context": null}
{"timestamp": "2026-08-07T04:19:28.481651+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_print_progress", "sensor.octoprint_print_time", "sensor.octoprint_tool_0_temperature", "sensor.octoprint_bed_temperature", "sensor.octoprint_soc_temperature"], "fields": ["attributes"], "attribute_keys": ["state_class", "unit_of_measurement", "device_class", "icon"]}, "execution_time_ms": 18.136024475097656, "success": true, "error_message": null, "response_size_bytes": 1034, "user_context": null} {"timestamp": "2026-08-07T04:19:28.481651+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_print_progress", "sensor.octoprint_print_time", "sensor.octoprint_tool_0_temperature", "sensor.octoprint_bed_temperature", "sensor.octoprint_soc_temperature"], "fields": ["attributes"], "attribute_keys": ["state_class", "unit_of_measurement", "device_class", "icon"]}, "execution_time_ms": 18.136024475097656, "success": true, "error_message": null, "response_size_bytes": 1034, "user_context": null}
{"timestamp": "2026-08-07T04:20:08.266129+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": {"views": [{"title": "Print", "path": "print", "type": "sections", "max_columns": 4, "sections": [{"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}]}, {"title": "History", "path": "history", "type": "sections", "max_columns": 2, "sections": [{"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"type": "grid", "cards": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}]}]}, "python_transform": null, "config_hash": null, "title": "3D Printer", "icon": "mdi:printer-3d-nozzle", "require_admin": null, "show_in_sidebar": true, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 26.775121688842773, "success": true, "error_message": null, "response_size_bytes": 564, "user_context": null}
+453
View File
@@ -0,0 +1,453 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace.printer_stats",
"data": {
"config": {
"views": [
{
"title": "Print",
"path": "print",
"type": "sections",
"max_columns": 4,
"sections": [
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Printer Status",
"icon": "mdi:printer-3d-nozzle"
},
{
"type": "tile",
"entity": "binary_sensor.octoprint_printing",
"name": "Printing",
"icon": "mdi:printer-3d",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "binary_sensor.octoprint_connected",
"name": "Connected",
"icon": "mdi:lan-connect",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_print_status",
"name": "Status",
"icon": "mdi:state-machine",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_last_event",
"name": "Last Event",
"icon": "mdi:history",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_print_file",
"name": "File",
"icon": "mdi:file-code",
"grid_options": {
"columns": "full"
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Print Progress",
"icon": "mdi:progress-clock"
},
{
"type": "gauge",
"entity": "sensor.octoprint_print_progress",
"name": "Progress",
"min": 0,
"max": 100,
"unit": "%",
"severity": {
"green": 0,
"yellow": 40,
"red": 90
},
"grid_options": {
"columns": 6,
"rows": 2
}
},
{
"type": "tile",
"entity": "sensor.octoprint_print_time",
"name": "Elapsed",
"icon": "mdi:clock-start",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_print_time_left",
"name": "Remaining",
"icon": "mdi:clock-end",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_approximate_completion_time",
"name": "Est. Finish",
"icon": "mdi:calendar-clock",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_current_z",
"name": "Current Z",
"icon": "mdi:axis-z-arrow",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_approximate_total_print_time",
"name": "Total Est.",
"icon": "mdi:timer-outline",
"grid_options": {
"columns": 6
}
},
{
"type": "sensor",
"entity": "sensor.octoprint_print_progress",
"name": "Progress History",
"graph": "line",
"hours_to_show": 24,
"detail": 1,
"grid_options": {
"columns": "full"
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Temperatures",
"icon": "mdi:thermometer"
},
{
"type": "gauge",
"entity": "sensor.octoprint_tool_0_temperature",
"name": "Nozzle",
"min": 0,
"max": 260,
"unit": "°C",
"severity": {
"green": 0,
"yellow": 180,
"red": 240
},
"grid_options": {
"columns": 4
}
},
{
"type": "gauge",
"entity": "sensor.octoprint_bed_temperature",
"name": "Bed",
"min": 0,
"max": 120,
"unit": "°C",
"severity": {
"green": 0,
"yellow": 60,
"red": 100
},
"grid_options": {
"columns": 4
}
},
{
"type": "gauge",
"entity": "sensor.octoprint_soc_temperature",
"name": "SoC",
"min": 0,
"max": 100,
"unit": "°C",
"severity": {
"green": 0,
"yellow": 70,
"red": 90
},
"grid_options": {
"columns": 4
}
},
{
"type": "tile",
"entity": "sensor.octoprint_tool_0_target",
"name": "Nozzle Target",
"icon": "mdi:printer-3d-nozzle",
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "sensor.octoprint_bed_target",
"name": "Bed Target",
"icon": "mdi:radiator",
"grid_options": {
"columns": 6
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Controls",
"icon": "mdi:gesture-tap-button"
},
{
"type": "tile",
"entity": "switch.octoprint_pause_print",
"name": "Pause",
"icon": "mdi:pause",
"grid_options": {
"columns": 4
}
},
{
"type": "tile",
"entity": "switch.octoprint_connect_to_printer",
"name": "Connect",
"icon": "mdi:lan-connect",
"grid_options": {
"columns": 4
}
},
{
"type": "tile",
"entity": "switch.octoprint_camera_snapshot",
"name": "Snapshot",
"icon": "mdi:camera",
"grid_options": {
"columns": 4
}
},
{
"type": "tile",
"entity": "button.octoprint_cancel_print",
"name": "Cancel Print",
"icon": "mdi:cancel",
"tap_action": {
"action": "perform-action",
"perform_action": "button.press",
"target": {
"entity_id": "button.octoprint_cancel_print"
}
},
"grid_options": {
"columns": 6
}
},
{
"type": "tile",
"entity": "button.octoprint_emergency_stop",
"name": "Emergency Stop",
"icon": "mdi:stop-circle",
"tap_action": {
"action": "perform-action",
"perform_action": "button.press",
"target": {
"entity_id": "button.octoprint_emergency_stop"
}
},
"grid_options": {
"columns": 6
}
}
]
}
]
},
{
"title": "History",
"path": "history",
"type": "sections",
"max_columns": 2,
"sections": [
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Temperature History",
"icon": "mdi:chart-line-variant"
},
{
"type": "history-graph",
"title": "Temperatures (24h)",
"hours_to_show": 24,
"show_names": true,
"expand_legend": true,
"entities": [
{
"entity": "sensor.octoprint_tool_0_temperature",
"name": "Nozzle",
"color": "#ef5350"
},
{
"entity": "sensor.octoprint_tool_0_target",
"name": "Nozzle Target",
"color": "#ffab91"
},
{
"entity": "sensor.octoprint_bed_temperature",
"name": "Bed",
"color": "#42a5f5"
},
{
"entity": "sensor.octoprint_bed_target",
"name": "Bed Target",
"color": "#90caf9"
}
],
"grid_options": {
"columns": "full"
}
},
{
"type": "history-graph",
"title": "Temperatures (7 days)",
"hours_to_show": 168,
"show_names": true,
"expand_legend": true,
"entities": [
{
"entity": "sensor.octoprint_tool_0_temperature",
"name": "Nozzle",
"color": "#ef5350"
},
{
"entity": "sensor.octoprint_bed_temperature",
"name": "Bed",
"color": "#42a5f5"
}
],
"grid_options": {
"columns": "full"
}
}
]
},
{
"type": "grid",
"cards": [
{
"type": "heading",
"heading": "Print Activity",
"icon": "mdi:chart-box-outline"
},
{
"type": "history-graph",
"title": "Print Progress (24h)",
"hours_to_show": 24,
"show_names": true,
"entities": [
{
"entity": "sensor.octoprint_print_progress",
"name": "Progress",
"color": "#66bb6a"
}
],
"grid_options": {
"columns": "full"
}
},
{
"type": "history-graph",
"title": "Print Duration (24h)",
"hours_to_show": 24,
"show_names": true,
"entities": [
{
"entity": "sensor.octoprint_print_time",
"name": "Elapsed",
"color": "#26c6da"
},
{
"entity": "sensor.octoprint_print_time_left",
"name": "Remaining",
"color": "#ffa726"
}
],
"grid_options": {
"columns": "full"
}
},
{
"type": "history-graph",
"title": "Z Position (24h)",
"hours_to_show": 24,
"show_names": true,
"entities": [
{
"entity": "sensor.octoprint_current_z",
"name": "Current Z",
"color": "#ab47bc"
}
],
"grid_options": {
"columns": "full"
}
},
{
"type": "history-graph",
"title": "Printing State (7 days)",
"hours_to_show": 168,
"show_names": true,
"entities": [
{
"entity": "binary_sensor.octoprint_printing",
"name": "Printing",
"color": "#66bb6a"
}
],
"grid_options": {
"columns": "full"
}
}
]
}
]
}
]
}
}
}