Hello! From your automation screenshot, it seems you want to directly turn off your 3D Printer after the job finished. You may want to cool down the printer bed before turning it off as it can cause issues such as printer jamming.
You can take a look at this Octoprint setup by krash-
Thanks for your replies everyone. I take your point about the screenshot.
My issue is really that I’m assuming the automation will wait for both conditions to be TRUE.
So in this case my expectation was that first it will pass 99.9% and then some time after it will turn to “Off” and hence run my actions. I live in a world of PLC control so that’s my issue I suppose. Fundamentally I didn’t understand the execution of the the automation.
Your automation has one trigger and one condition.
It triggers at the moment when the value of sensor.octoprint_ender-3_v2_job_percentage increases above 99.9
It immediately proceeds to check if the value of binary_sensor.octoprint_ender_3__v2_printing is off. If it is, it proceeds to execute the action, if it isn’t then the automation exits without executing the action.
The automation will not execute again until the value of sensor.octoprint_ender-3_v2_job_percentage first decreases below 99.9 then increases above it again. That’s how Numeric State Triggers work (they only trigger at the moment the value crosses the threshold).
In your case, if the binary_sensor is still on at the moment the sensor value rises above 99.9 then it exits and will not trigger no matter if the value reaches 100 or if the binary_sensor changes to off.
In addition, there’s a typo in your example. A binary_sensor’s states are lowercase on and off whereas your example specifies titlecase Off which will not match off.