configuration.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -293,6 +293,41 @@ rest:
|
||||
{{ value_json.allPrintJobs | length }}
|
||||
json_attributes:
|
||||
- "allPrintJobs"
|
||||
- resource: "https://ender5pro.duckdns.org/api/job"
|
||||
method: GET
|
||||
headers:
|
||||
X-Api-Key: !secret octoprint_api_key
|
||||
scan_interval: 30
|
||||
sensor:
|
||||
- name: "OctoPrint Print Progress Live"
|
||||
unique_id: octoprint_print_progress_live
|
||||
unit_of_measurement: "%"
|
||||
state_class: measurement
|
||||
icon: mdi:printer-3d-nozzle
|
||||
value_template: >-
|
||||
{{
|
||||
value_json.progress.completion | float(0) | round(1)
|
||||
}}
|
||||
json_attributes_path: "$.progress"
|
||||
json_attributes:
|
||||
- "filepos"
|
||||
- "printTime"
|
||||
- "printTimeLeft"
|
||||
- "printTimeLeftOrigin"
|
||||
- name: "OctoPrint Print Time Left Live"
|
||||
unique_id: octoprint_print_time_left_live
|
||||
device_class: duration
|
||||
unit_of_measurement: "s"
|
||||
state_class: measurement
|
||||
icon: mdi:timer-outline
|
||||
value_template: >-
|
||||
{{
|
||||
value_json.progress.printTimeLeft | int(-1)
|
||||
}}
|
||||
- name: "OctoPrint Print State Live"
|
||||
unique_id: octoprint_print_state_live
|
||||
icon: mdi:printer-3d
|
||||
value_template: "{{ value_json.state }}"
|
||||
|
||||
# OctoPrint physical position (holds last value when idle; raw discovery sensor zeroes on currentZ:null)
|
||||
mqtt:
|
||||
|
||||
+22
-22
@@ -27,10 +27,10 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"power": 159.1,
|
||||
"current": 1.37,
|
||||
"energy": 28.6,
|
||||
"power_factor": 0.98,
|
||||
"power": 2,
|
||||
"current": 0.11,
|
||||
"energy": 28.61,
|
||||
"power_factor": 0.19,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -45,10 +45,10 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 118.8,
|
||||
"voltage": 118.5,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 55.93,
|
||||
"power_factor": 0.2,
|
||||
"energy": 55.94,
|
||||
"power_factor": 0.9,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -58,8 +58,8 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 134,
|
||||
"power": 0.2,
|
||||
"current": 0.01,
|
||||
"power": 83.3,
|
||||
"current": 0.82,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
"0xb40e060fffe031e3": {
|
||||
@@ -74,12 +74,12 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 117.5,
|
||||
"voltage": 116.6,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 115.05,
|
||||
"power": 108.5,
|
||||
"current": 0.97,
|
||||
"energy": 115.07,
|
||||
"power": 101.9,
|
||||
"current": 0.92,
|
||||
"power_factor": 0.94,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -95,13 +95,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 118.2,
|
||||
"energy": 51.63,
|
||||
"voltage": 118.8,
|
||||
"energy": 51.64,
|
||||
"state": "ON",
|
||||
"power": 54.9,
|
||||
"current": 0.61,
|
||||
"power": 51.3,
|
||||
"current": 0.54,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.86,
|
||||
"power_factor": 0.78,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -119,7 +119,7 @@
|
||||
"energy": 7.22,
|
||||
"current": 0.01,
|
||||
"power": 0.1,
|
||||
"power_factor": 0.13,
|
||||
"power_factor": 0.22,
|
||||
"linkquality": 123,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -136,13 +136,13 @@
|
||||
"0xffffb40e0608864e": {
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 119.1,
|
||||
"voltage": 118.6,
|
||||
"energy": 17.63,
|
||||
"countdown_to_turn_on": 0,
|
||||
"state": "ON",
|
||||
"current": 0.02,
|
||||
"ac_frequency": 60,
|
||||
"power": 0.4,
|
||||
"power": 0.3,
|
||||
"power_factor": 0.15,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -192,7 +192,7 @@
|
||||
},
|
||||
"0xa4c1380d0679ffff": {
|
||||
"battery": 100,
|
||||
"temperature": 27.1,
|
||||
"temperature": 27.2,
|
||||
"temperature_units": "celsius",
|
||||
"temperature_calibration": 0,
|
||||
"update": {
|
||||
|
||||
Reference in New Issue
Block a user