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
+13 -13
View File
@@ -27,7 +27,7 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"power": 2.1,
"power": 2.2,
"current": 0.1,
"energy": 38.66,
"power_factor": 0.18,
@@ -45,10 +45,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 121.3,
"voltage": 121.2,
"countdown_to_turn_on": 0,
"energy": 75.35,
"power_factor": 0.2,
"power_factor": 0.3,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -74,12 +74,12 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 120.2,
"voltage": 120.3,
"state": "ON",
"ac_frequency": 60,
"energy": 153.51,
"power": 96.7,
"current": 0.88,
"energy": 153.53,
"power": 101.9,
"current": 0.93,
"power_factor": 0.95,
"update": {
"state": "idle",
@@ -96,12 +96,12 @@
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"voltage": 121.2,
"energy": 74.14,
"energy": 74.15,
"state": "ON",
"power": 49.9,
"current": 0.59,
"power": 49.1,
"current": 0.48,
"ac_frequency": 60,
"power_factor": 0.78,
"power_factor": 0.87,
"update": {
"state": "idle",
"installed_version": 268513381,
@@ -119,7 +119,7 @@
"energy": 10.48,
"current": 0.02,
"power": 0.1,
"power_factor": 0.13,
"power_factor": 0.11,
"linkquality": 109,
"update": {
"state": "idle",
@@ -224,7 +224,7 @@
},
"0xb40e060fffe717c5": {
"battery": 100,
"occupancy": false,
"occupancy": true,
"tamper": false,
"battery_low": false,
"linkquality": 80,