configuration.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-09-06 04:58:01 +00:00
parent 6315b9649a
commit 8b28f09bab
2 changed files with 34 additions and 9 deletions
+26 -1
View File
@@ -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: