configuration.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-09-06 06:21:04 +00:00
parent 279c4508a8
commit 23f6da39a9
2 changed files with 22 additions and 13 deletions
+9
View File
@@ -243,6 +243,15 @@ template:
{% set total = fm.get('total', {}) if fm else {} %}
{{ total.get('usedLength', 0) | float | round(2) }}
# OCTOPRINT HEIGHT WIDGET: clean rounded state + total attribute for companion widget
- name: "OctoPrint Height Progress Clean"
unique_id: octoprint_height_progress_clean
unit_of_measurement: "mm"
device_class: distance
state: "{{ states('sensor.octoprint_height_progress') | float(0) | round(1) }}"
attributes:
total: "{{ (state_attr('sensor.octoprint_height_progress', 'total') | float(0)) | round(1) }}"
# Legacy and Integration Sensor Section
sensor:
- platform: torque