configuration.yaml, zigbee2mqtt/state.json
This commit is contained in:
@@ -293,6 +293,41 @@ rest:
|
|||||||
{{ value_json.allPrintJobs | length }}
|
{{ value_json.allPrintJobs | length }}
|
||||||
json_attributes:
|
json_attributes:
|
||||||
- "allPrintJobs"
|
- "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)
|
# OctoPrint physical position (holds last value when idle; raw discovery sensor zeroes on currentZ:null)
|
||||||
mqtt:
|
mqtt:
|
||||||
|
|||||||
+22
-22
@@ -27,10 +27,10 @@
|
|||||||
"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": 159.1,
|
"power": 2,
|
||||||
"current": 1.37,
|
"current": 0.11,
|
||||||
"energy": 28.6,
|
"energy": 28.61,
|
||||||
"power_factor": 0.98,
|
"power_factor": 0.19,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -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": 118.8,
|
"voltage": 118.5,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 55.93,
|
"energy": 55.94,
|
||||||
"power_factor": 0.2,
|
"power_factor": 0.9,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -58,8 +58,8 @@
|
|||||||
"latest_release_notes": null
|
"latest_release_notes": null
|
||||||
},
|
},
|
||||||
"linkquality": 134,
|
"linkquality": 134,
|
||||||
"power": 0.2,
|
"power": 83.3,
|
||||||
"current": 0.01,
|
"current": 0.82,
|
||||||
"power_on_behavior": "on"
|
"power_on_behavior": "on"
|
||||||
},
|
},
|
||||||
"0xb40e060fffe031e3": {
|
"0xb40e060fffe031e3": {
|
||||||
@@ -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": 117.5,
|
"voltage": 116.6,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 115.05,
|
"energy": 115.07,
|
||||||
"power": 108.5,
|
"power": 101.9,
|
||||||
"current": 0.97,
|
"current": 0.92,
|
||||||
"power_factor": 0.94,
|
"power_factor": 0.94,
|
||||||
"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": 118.2,
|
"voltage": 118.8,
|
||||||
"energy": 51.63,
|
"energy": 51.64,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 54.9,
|
"power": 51.3,
|
||||||
"current": 0.61,
|
"current": 0.54,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.86,
|
"power_factor": 0.78,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
"energy": 7.22,
|
"energy": 7.22,
|
||||||
"current": 0.01,
|
"current": 0.01,
|
||||||
"power": 0.1,
|
"power": 0.1,
|
||||||
"power_factor": 0.13,
|
"power_factor": 0.22,
|
||||||
"linkquality": 123,
|
"linkquality": 123,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -136,13 +136,13 @@
|
|||||||
"0xffffb40e0608864e": {
|
"0xffffb40e0608864e": {
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 119.1,
|
"voltage": 118.6,
|
||||||
"energy": 17.63,
|
"energy": 17.63,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"current": 0.02,
|
"current": 0.02,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power": 0.4,
|
"power": 0.3,
|
||||||
"power_factor": 0.15,
|
"power_factor": 0.15,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
},
|
},
|
||||||
"0xa4c1380d0679ffff": {
|
"0xa4c1380d0679ffff": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"temperature": 27.1,
|
"temperature": 27.2,
|
||||||
"temperature_units": "celsius",
|
"temperature_units": "celsius",
|
||||||
"temperature_calibration": 0,
|
"temperature_calibration": 0,
|
||||||
"update": {
|
"update": {
|
||||||
|
|||||||
Reference in New Issue
Block a user