.ha_mcp/logs/mcp_usage.jsonl, configuration.yaml
This commit is contained in:
@@ -962,3 +962,4 @@
|
||||
{"timestamp": "2026-08-08T03:04:53.570820+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": "history", "mode": null, "query": null}, "execution_time_ms": 5.239248275756836, "success": true, "error_message": null, "response_size_bytes": 4020, "user_context": null}
|
||||
{"timestamp": "2026-08-08T03:06:42.390063+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_current_z", "fields": null, "attribute_keys": null}, "execution_time_ms": 7.74383544921875, "success": true, "error_message": null, "response_size_bytes": 765, "user_context": null}
|
||||
{"timestamp": "2026-08-08T03:06:42.531414+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.octoprint_z_position", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.25975227355957, "success": true, "error_message": null, "response_size_bytes": 825, "user_context": null}
|
||||
{"timestamp": "2026-08-08T03:06:57.201434+00:00", "tool_name": "ha_reload_core", "parameters": {"target": "templates", "entry_id": null}, "execution_time_ms": 124.84455108642578, "success": true, "error_message": null, "response_size_bytes": 116, "user_context": null}
|
||||
|
||||
@@ -224,23 +224,6 @@ template:
|
||||
{% set lengths = state_attr('sensor.octoprint_filament_used_total', 'filamentLength') %}
|
||||
{{ lengths[-1] | float | round(2) if lengths else 0 }}
|
||||
|
||||
# OCTOPRINT Z: Holds the last non-zero Z value (raw currentZ reports 0 when idle)
|
||||
- triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.octoprint_current_z
|
||||
- trigger: time_pattern
|
||||
minutes: "/1"
|
||||
sensor:
|
||||
- name: "OctoPrint Z Position"
|
||||
unique_id: octoprint_z_position_held
|
||||
unit_of_measurement: "mm"
|
||||
device_class: distance
|
||||
state_class: measurement
|
||||
icon: mdi:axis-z-arrow
|
||||
state: >-
|
||||
{% set z = states('sensor.octoprint_current_z') | float(0) %}
|
||||
{{ z if z > 0 else this.state }}
|
||||
|
||||
# Legacy and Integration Sensor Section
|
||||
sensor:
|
||||
- platform: torque
|
||||
|
||||
Reference in New Issue
Block a user