configuration.yaml, zigbee2mqtt/state.json
This commit is contained in:
+26
-1
@@ -319,6 +319,31 @@ rest:
|
||||
{{ value_json.allPrintJobs | length }}
|
||||
json_attributes:
|
||||
- "allPrintJobs"
|
||||
# OctoPrint DisplayLayerProgress - layer/height progress from https://ender5pro.duckdns.org
|
||||
- resource: "https://ender5pro.duckdns.org/plugin/DisplayLayerProgress/values"
|
||||
method: GET
|
||||
headers:
|
||||
X-Api-Key: !secret octoprint_api_key
|
||||
scan_interval: 30
|
||||
sensor:
|
||||
- name: "OctoPrint Layer Progress"
|
||||
unique_id: octoprint_layer_progress
|
||||
icon: mdi:layers
|
||||
value_template: "{{ value_json.layer.current | int(0) }}"
|
||||
json_attributes_path: "$.layer"
|
||||
json_attributes:
|
||||
- "current"
|
||||
- "total"
|
||||
- name: "OctoPrint Height Progress"
|
||||
unique_id: octoprint_height_progress
|
||||
unit_of_measurement: "mm"
|
||||
device_class: distance
|
||||
icon: mdi:axis-z-arrow
|
||||
value_template: "{{ value_json.height.current | float(0) | round(1) }}"
|
||||
json_attributes_path: "$.height"
|
||||
json_attributes:
|
||||
- "current"
|
||||
- "total"
|
||||
- resource: "https://ender5pro.duckdns.org/api/job"
|
||||
method: GET
|
||||
headers:
|
||||
@@ -417,4 +442,4 @@ emulated_hue:
|
||||
nest_snapshot:
|
||||
|
||||
# G-code proxy for the 3D toolpath viewer card (www/gcode_viewer_card.js)
|
||||
octoprint_gcode_proxy:
|
||||
octoprint_gcode_proxy:
|
||||
|
||||
Reference in New Issue
Block a user