configuration.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -243,6 +243,15 @@ template:
|
|||||||
{% set total = fm.get('total', {}) if fm else {} %}
|
{% set total = fm.get('total', {}) if fm else {} %}
|
||||||
{{ total.get('usedLength', 0) | float | round(2) }}
|
{{ 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
|
# Legacy and Integration Sensor Section
|
||||||
sensor:
|
sensor:
|
||||||
- platform: torque
|
- platform: torque
|
||||||
|
|||||||
+13
-13
@@ -27,7 +27,7 @@
|
|||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"power": 2.1,
|
"power": 2.2,
|
||||||
"current": 0.1,
|
"current": 0.1,
|
||||||
"energy": 38.66,
|
"energy": 38.66,
|
||||||
"power_factor": 0.18,
|
"power_factor": 0.18,
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
"state": "ON",
|
"state": "ON",
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 121.3,
|
"voltage": 121.2,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 75.35,
|
"energy": 75.35,
|
||||||
"power_factor": 0.2,
|
"power_factor": 0.3,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -74,12 +74,12 @@
|
|||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"voltage": 120.2,
|
"voltage": 120.3,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 153.51,
|
"energy": 153.53,
|
||||||
"power": 96.7,
|
"power": 101.9,
|
||||||
"current": 0.88,
|
"current": 0.93,
|
||||||
"power_factor": 0.95,
|
"power_factor": 0.95,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -96,12 +96,12 @@
|
|||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"voltage": 121.2,
|
"voltage": 121.2,
|
||||||
"energy": 74.14,
|
"energy": 74.15,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 49.9,
|
"power": 49.1,
|
||||||
"current": 0.59,
|
"current": 0.48,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.78,
|
"power_factor": 0.87,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
"energy": 10.48,
|
"energy": 10.48,
|
||||||
"current": 0.02,
|
"current": 0.02,
|
||||||
"power": 0.1,
|
"power": 0.1,
|
||||||
"power_factor": 0.13,
|
"power_factor": 0.11,
|
||||||
"linkquality": 109,
|
"linkquality": 109,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
},
|
},
|
||||||
"0xb40e060fffe717c5": {
|
"0xb40e060fffe717c5": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"occupancy": false,
|
"occupancy": true,
|
||||||
"tamper": false,
|
"tamper": false,
|
||||||
"battery_low": false,
|
"battery_low": false,
|
||||||
"linkquality": 80,
|
"linkquality": 80,
|
||||||
|
|||||||
Reference in New Issue
Block a user