From 5a391d4c2e7877ed5830817c57e221bbf794b35d Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Sat, 15 Aug 2026 22:04:41 +0000 Subject: [PATCH] configuration.yaml --- configuration.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/configuration.yaml b/configuration.yaml index dc624ee2..638b5703 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -14,6 +14,37 @@ utility_meter: shell_command: cleanup_blink_snapshots: "find /media /config/www -name 'blink_*.jpg' -mmin +360 -delete" +# Rest Commands (OctoPrint nozzle extrusion and Z moves) +rest_command: + octoprint_set_tool_target: + url: "https://ender5pro.duckdns.org/api/printer/tool" + method: POST + content_type: "application/json" + headers: + X-Api-Key: !secret octoprint_api_key + payload: '{"targets": {"tool0": 220}}' + octoprint_extrude_10: + url: "https://ender5pro.duckdns.org/api/printer/command" + method: POST + content_type: "application/json" + headers: + X-Api-Key: !secret octoprint_api_key + payload: '{"commands": ["G91", "G1 E10 F300", "G90"]}' + octoprint_z_down_10: + url: "https://ender5pro.duckdns.org/api/printer/command" + method: POST + content_type: "application/json" + headers: + X-Api-Key: !secret octoprint_api_key + payload: '{"commands": ["G91", "G1 Z-10 F600", "G90"]}' + octoprint_z_down_20: + url: "https://ender5pro.duckdns.org/api/printer/command" + method: POST + content_type: "application/json" + headers: + X-Api-Key: !secret octoprint_api_key + payload: '{"commands": ["G91", "G1 Z-20 F600", "G90"]}' + # Load ffmpeg ffmpeg: