configuration.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -224,6 +224,21 @@ template:
|
|||||||
{% set lengths = state_attr('sensor.octoprint_filament_used_total', 'filamentLength') %}
|
{% set lengths = state_attr('sensor.octoprint_filament_used_total', 'filamentLength') %}
|
||||||
{{ lengths[-1] | float | round(2) if lengths else 0 }}
|
{{ 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
|
||||||
|
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
|
# Legacy and Integration Sensor Section
|
||||||
sensor:
|
sensor:
|
||||||
- platform: torque
|
- platform: torque
|
||||||
|
|||||||
+18
-18
@@ -4,10 +4,10 @@
|
|||||||
"state": "ON",
|
"state": "ON",
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 117.8,
|
"voltage": 118.5,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.15,
|
"power_factor": 0.12,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"power": 232.8,
|
"power": 232.8,
|
||||||
"current": 2.05,
|
"current": 2.05,
|
||||||
"energy": 27.21,
|
"energy": 27.23,
|
||||||
"power_factor": 0.98,
|
"power_factor": 0.98,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -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": 117.4,
|
"voltage": 117.5,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 50.69,
|
"energy": 50.69,
|
||||||
"power_factor": 0.21,
|
"power_factor": 0.2,
|
||||||
"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": 116.4,
|
"voltage": 116.9,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 103.34,
|
"energy": 103.34,
|
||||||
"power": 93.9,
|
"power": 97.2,
|
||||||
"current": 0.85,
|
"current": 0.9,
|
||||||
"power_factor": 0.95,
|
"power_factor": 0.95,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -95,13 +95,13 @@
|
|||||||
"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": 116.1,
|
"voltage": 116.8,
|
||||||
"energy": 44.44,
|
"energy": 44.45,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 63.5,
|
"power": 68.3,
|
||||||
"current": 0.7,
|
"current": 0.75,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.76,
|
"power_factor": 0.74,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
},
|
},
|
||||||
"0xffffb40e060895b3": {
|
"0xffffb40e060895b3": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"voltage": 117.8,
|
"voltage": 118,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 6.4,
|
"energy": 6.4,
|
||||||
"current": 0.01,
|
"current": 0.01,
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
"0xffffb40e0608864e": {
|
"0xffffb40e0608864e": {
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 118.3,
|
"voltage": 119.1,
|
||||||
"energy": 17.35,
|
"energy": 17.35,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
"0xffffb40e060893d8": {
|
"0xffffb40e060893d8": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"voltage": 118.7,
|
"voltage": 119,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 3.04,
|
"energy": 3.04,
|
||||||
@@ -187,8 +187,8 @@
|
|||||||
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
|
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
|
||||||
"latest_release_notes": null
|
"latest_release_notes": null
|
||||||
},
|
},
|
||||||
"power_factor": 0.13,
|
"power_factor": 0.08,
|
||||||
"power": 0.2
|
"power": 0.4
|
||||||
},
|
},
|
||||||
"0xa4c1380d0679ffff": {
|
"0xa4c1380d0679ffff": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
|
|||||||
Reference in New Issue
Block a user